/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_print.c | 431 &buf, &buflen)); in ns_sprintrrf() 480 &buf, &buflen)); in ns_sprintrrf() 544 &buf, &buflen)); in ns_sprintrrf() 600 &buf, &buflen)); in ns_sprintrrf() 602 &buf, &buflen)); in ns_sprintrrf() 891 &buf, &buflen)); in ns_sprintrrf() 893 &buf, &buflen)); in ns_sprintrrf() 983 &buf, &buflen)); in ns_sprintrrf() 985 &buf, &buflen)); in ns_sprintrrf() 1203 *buflen -= len; in addlen() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | uni_common.c | 31 size_t buflen; 42 if (buflen < 4) 50 if (buflen < 2) 64 size_t buflen; 75 if (buflen < 4) 83 if (buflen < 2) 97 size_t buflen; 108 if (buflen < 8) 118 if (buflen < 4) 134 size_t buflen; [all …]
|
/illumos-gate/usr/src/lib/libdisasm/common/ |
H A D | dis_riscv.c | 1175 size_t buflen) in dis_riscv_decode_4byte() argument 1390 buflen); in dis_riscv_c_lwsp() 1402 imm, buf, buflen); in dis_riscv_c_ldsp() 1414 imm, buf, buflen); in dis_riscv_c_flwsp() 1426 imm, buf, buflen); in dis_riscv_c_fldsp() 1437 buf, buflen); in dis_riscv_c_swsp() 1448 buf, buflen); in dis_riscv_c_sdsp() 1459 buf, buflen); in dis_riscv_c_fswsp() 1470 buf, buflen); in dis_riscv_c_fsdsp() 1778 size_t buflen) in dis_riscv_decode_2byte() argument [all …]
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm_devs.c | 124 if (snprintf(buf, buflen, "%x", psdo->psdo_bus) >= buflen) { in pcieadm_show_devs_ofmt_cb() 147 if (strlcat(buf, psdo->psdo_path, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb() 155 buflen) { in pcieadm_show_devs_ofmt_cb() 163 buflen) { in pcieadm_show_devs_ofmt_cb() 168 if (strlcat(buf, psdo->psdo_vendor, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb() 173 if (strlcat(buf, psdo->psdo_device, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb() 181 buflen) { in pcieadm_show_devs_ofmt_cb() 189 buflen) { in pcieadm_show_devs_ofmt_cb() 220 if (strlcat(buf, ",", buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb() 226 if (strlcat(buf, str, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb() [all …]
|
/illumos-gate/usr/src/lib/libzutil/common/ |
H A D | zutil_nicenum.c | 49 zfs_nicenum_format(uint64_t num, char *buf, size_t buflen, in zfs_nicenum_format() argument 78 (void) snprintf(buf, buflen, "%s", "-"); in zfs_nicenum_format() 91 (void) snprintf(buf, buflen, "-"); in zfs_nicenum_format() 124 if (snprintf(buf, buflen, "%d%s", in zfs_nicenum_format() 129 if (snprintf(buf, buflen, "%.*f%s", i, in zfs_nicenum_format() 141 zfs_nicenum(uint64_t num, char *buf, size_t buflen) in zfs_nicenum() argument 143 zfs_nicenum_format(num, buf, buflen, ZFS_NICENUM_1024); in zfs_nicenum() 151 zfs_nicetime(uint64_t num, char *buf, size_t buflen) in zfs_nicetime() argument 160 zfs_niceraw(uint64_t num, char *buf, size_t buflen) in zfs_niceraw() argument 162 zfs_nicenum_format(num, buf, buflen, ZFS_NICENUM_RAW); in zfs_niceraw() [all …]
|
/illumos-gate/usr/src/lib/print/libprint/common/ |
H A D | nss_convert.c | 78 (void) memset(buf, 0, buflen); in _cvt_printer_to_entry() 83 if (snprintf(buf, buflen, "%s", printer->name) >= buflen) { in _cvt_printer_to_entry() 84 (void) memset(buf, 0, buflen); in _cvt_printer_to_entry() 93 (void) strlcat(buf, "|", buflen); in _cvt_printer_to_entry() 99 if (strlcat(buf, ":", buflen) >= buflen) { in _cvt_printer_to_entry() 100 (void) memset(buf, 0, buflen); in _cvt_printer_to_entry() 112 (void) strlcat(buf, "\\\n\t:", buflen); in _cvt_printer_to_entry() 114 (void) strlcat(buf, "=", buflen); in _cvt_printer_to_entry() 116 if (strlcat(buf, ":", buflen) >= buflen) { in _cvt_printer_to_entry() 122 (void) memset(buf, 0, buflen); in _cvt_printer_to_entry() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nfs4.c | 1595 int blen = buflen, len; in sumarg_open() 1639 snprintf(buf, buflen, "CD=%s", in sumarg_openattr() 1990 snprintf(buf, buflen, "%s", in sumarg_secinfo() 2175 remaining = buflen - curlen; in sum_attr_bitmap() 2450 int len, blen = buflen; in sumres_access() 2493 snprintf(buf, buflen, "%s", in sumres_close() 2709 int len, blen = buflen; in sumres_open() 3288 snprintf(bp, buflen, "%s ", in sum_name() 3294 snprintf(bp, buflen, "%s ", in sum_name() 3299 snprintf(bp, buflen, "%s ", in sum_name() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | parser.c | 189 const uchar_t *bufend = buf + buflen; in usb_nth_descr() 256 const uchar_t *bufend = buf + buflen; in usba_parse_cfg_pwr_descr() 288 const uchar_t *bufend = buf + buflen; in usb_parse_ia_descr() 319 const uchar_t *bufend = buf + buflen; in usb_parse_if_descr() 350 const uchar_t *bufend = buf + buflen; in usba_parse_if_pwr_descr() 402 const uchar_t *bufend = buf + buflen; in usb_parse_ep_descr() 450 const uchar_t *bufend = buf + buflen; in usba_ascii_string_descr() 474 const uchar_t *bufend = buf + buflen; in usb_parse_CV_cfg_descr() 477 (buflen < 2) || ((buf = usb_nth_descr(buf, buflen, descr_type, in usb_parse_CV_cfg_descr() 494 const uchar_t *bufend = buf + buflen; in usb_parse_CV_if_descr() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getprojent.c | 71 int buflen = 0, len; in _nss_ldap_proj2str() local 80 buflen = argp->buf.buflen; in _nss_ldap_proj2str() 84 if ((be->buffer = calloc(1, buflen)) == NULL) { in _nss_ldap_proj2str() 93 (void) memset(buffer, 0, buflen); in _nss_ldap_proj2str() 123 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str() 127 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str() 133 len = snprintf(buffer, buflen, ":"); in _nss_ldap_proj2str() 145 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str() 149 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str() 162 len = snprintf(buffer, buflen, ":%s", attr_str); in _nss_ldap_proj2str() [all …]
|
H A D | getprinter.c | 68 int buflen = 0, len; in _nss_ldap_printers2str() local 80 buflen = argp->buf.buflen; in _nss_ldap_printers2str() 82 be->buffer = calloc(1, buflen); in _nss_ldap_printers2str() 85 be->buflen = buflen; in _nss_ldap_printers2str() 114 len = snprintf(buffer, buflen, "|%s", in _nss_ldap_printers2str() 116 TEST_AND_ADJUST(len, buffer, buflen, in _nss_ldap_printers2str() 143 TEST_AND_ADJUST(len, buffer, buflen, in _nss_ldap_printers2str() 192 TEST_AND_ADJUST(len, buffer, buflen, in _nss_ldap_printers2str() 226 if (len > buflen) { in _nss_ldap_printers2str() 236 buflen -= len; in _nss_ldap_printers2str() [all …]
|
H A D | getgrent.c | 93 int buflen = 0, len; in _nss_ldap_group2str() local 106 buflen = argp->buf.buflen; in _nss_ldap_group2str() 118 (void) memset(buffer, 0, buflen); in _nss_ldap_group2str() 169 be->buflen = strlen(be->buffer); in _nss_ldap_group2str() 185 int buflen; in getmembers_UID() local 191 buflen = *lenp; in getmembers_UID() 217 TEST_AND_ADJUST(len, buffer, buflen, out); in getmembers_UID() 222 *lenp = buflen; in getmembers_UID() 241 int buflen; in getmembers_DN() local 247 buflen = *lenp; in getmembers_DN() [all …]
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | nicenum.c | 41 nicenum_scale(uint64_t n, size_t units, char *buf, size_t buflen, in nicenum_scale() argument 93 rc = snprintf(buf, buflen, "%llu%s", n, spc); in nicenum_scale() 99 rc = snprintf(buf, buflen, "%llu%s%c", n / divisor, spc, u); in nicenum_scale() 113 if ((rc = snprintf(buf, buflen, "%.*f%s%c", i, in nicenum_scale() 114 (double)n / divisor, spc, u)) <= (buflen - 1)) in nicenum_scale() 119 if (rc + 1 > buflen || rc < 0) in nicenum_scale() 126 if (buflen > 10) in nicenum_scale() 127 (void) strlcpy(buf, "<overflow>", buflen); in nicenum_scale() 129 (void) strlcpy(buf, "??", buflen); in nicenum_scale() 133 nicenum(uint64_t num, char *buf, size_t buflen) in nicenum() argument [all …]
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostbyname_r.c | 70 int buflen, int *h_errnop); 74 struct hostent *result, char *buffer, int buflen, int *h_errnop); 79 char *buffer, int buflen, int *h_errnop) in _uncached_gethostbyname_r() argument 82 buffer, buflen, h_errnop)); in _uncached_gethostbyname_r() 87 struct hostent *result, char *buffer, int buflen, int *h_errnop) in _uncached_gethostbyaddr_r() argument 90 result, buffer, buflen, h_errnop)); in _uncached_gethostbyaddr_r() 97 int buflen, int *h_errnop); 105 int buflen, int *h_errnop) in gethostbyname_r() argument 129 nssin.arg.nss.host.buflen = buflen; in gethostbyname_r() 148 struct hostent *result, char *buffer, int buflen, int *h_errnop) in gethostbyaddr_r() argument [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ad/common/ |
H A D | getspent.c | 33 int buflen; in update_buffer() local 46 buflen = snprintf(NULL, 0, "%s@%s:*NP*:::::::", name, domain) + 1; in update_buffer() 49 buffer = be->buffer = malloc(buflen); in update_buffer() 52 be->buflen = buflen; in update_buffer() 54 if (buflen > argp->buf.buflen) in update_buffer() 56 buflen = argp->buf.buflen; in update_buffer() 60 buflen = snprintf(buffer, buflen, "%s@%s:*NP*:::::::", in update_buffer()
|
/illumos-gate/usr/src/lib/libresolv2/include/ |
H A D | port_before.h | 73 #define NET_R_ARGS char *buf, int buflen 75 #define NET_R_COPY buf, buflen 92 #define GROUP_R_ARGS char *buf, int buflen 99 #define HOST_R_COPY buf, buflen 112 #define NGR_R_ARGS char *buf, int buflen 114 #define NGR_R_COPY buf, buflen 134 #define PROTO_R_COPY buf, buflen 147 #define PASS_R_ARGS char *buf, int buflen 149 #define PASS_R_COPY buf, buflen 159 #define SERV_R_ARGS char *buf, int buflen [all …]
|
/illumos-gate/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm_ofmt.c | 54 if (nvmelen <= 0 || nvmelen > buflen) { in nvme_list_ofmt_cb() 64 if (nvmelen <= 0 || nvmelen >= buflen) { in nvme_list_ofmt_cb() 74 if (nvmelen <= 0 || nvmelen >= buflen) { in nvme_list_ofmt_cb() 86 ret = strlcat(buf, npa->npa_name, buflen); in nvme_list_ofmt_cb() 89 ret = strlcat(buf, di_minor_name(npa->npa_minor), buflen); in nvme_list_ofmt_cb() 93 ret = strlcat(buf, npa->npa_dsk, buflen); in nvme_list_ofmt_cb() 95 ret = strlcat(buf, "--", buflen); in nvme_list_ofmt_cb() 100 ret = snprintf(buf, buflen, "%" PRIu64, val); in nvme_list_ofmt_cb() 104 ret = snprintf(buf, buflen, "%" PRIu64, val); in nvme_list_ofmt_cb() 108 ret = snprintf(buf, buflen, "%" PRIu64, val); in nvme_list_ofmt_cb() [all …]
|
/illumos-gate/usr/src/cmd/stmfproxy/stmfproxy/ |
H A D | stmfproxy.c | 130 uint32_t buflen; in postMsg() local 141 buf = malloc(nelem + sizeof (buflen)); in postMsg() 144 bcopy(&buflen, buf, sizeof (buflen)); in postMsg() 150 if (ns != nelem + sizeof (buflen)) { in postMsg() 169 uint32_t buflen; member 220 uint32_t buflen; in relay_peer_msg() local 228 sizeof (buflen))) != sizeof (buflen)) { in relay_peer_msg() 236 pq->buflen = ntohl(buflen); in relay_peer_msg() 237 pq->buf = malloc(pq->buflen+4); in relay_peer_msg() 244 pq->buflen) { in relay_peer_msg() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_info.c | 204 if (buflen >= NETBIOS_NAME_SZ) in smb_getnetbiosname() 215 smb_getsamaccount(char *buf, size_t buflen) in smb_getsamaccount() argument 220 (void) strlcat(buf, "$", buflen); in smb_getsamaccount() 239 if (buf == NULL || buflen == 0) in smb_gethostname() 242 if (gethostname(buf, buflen) != 0) { in smb_gethostname() 247 buf[buflen - 1] = '\0'; in smb_gethostname() 294 (void) strlcpy(buf, hostname, buflen); in smb_getfqhostname() 314 if (buf == NULL || buflen == 0) in smb_getdomainname() 341 if (buf == NULL || buflen == 0) in smb_getfqdomainname() 399 if (buflen < SMBAUTH_HASH_SZ) in smb_get_machine_passwd() [all …]
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_key.c | 41 prom_set_security_key(char *keyname, caddr_t buf, int buflen, int *reslen, in prom_set_security_key() argument 65 if (buflen > 0 && ((uintptr_t)buf > (uint32_t)-1)) { in prom_set_security_key() 67 buf = promplat_alloc(buflen); in prom_set_security_key() 72 promplat_bcopy(obuf, buf, buflen); in prom_set_security_key() 95 ci[5] = p1275_uint2cell(buflen); in prom_set_security_key() 105 promplat_free(buf, buflen); in prom_set_security_key() 123 prom_get_security_key(char *keyname, caddr_t buf, int buflen, int *keylen, in prom_get_security_key() argument 144 buf = promplat_alloc(buflen); in prom_get_security_key() 171 ci[5] = p1275_uint2cell(buflen); in prom_get_security_key() 181 promplat_bcopy(buf, obuf, buflen); in prom_get_security_key() [all …]
|
/illumos-gate/usr/src/lib/libdemangle/common/ |
H A D | rust-v0puny.c | 66 size_t buflen; in rustv0_puny_decode() local 88 buflen = 0; in rustv0_puny_decode() 146 buflen++; in rustv0_puny_decode() 160 VERIFY3U(i, <=, buflen); in rustv0_puny_decode() 167 VERIFY3U(buflen, <, bufalloc - 1); in rustv0_puny_decode() 195 buflen++; in rustv0_puny_decode() 199 n = n + i / buflen; in rustv0_puny_decode() 200 i = i % buflen; in rustv0_puny_decode() 203 __func__, n, i, buflen); in rustv0_puny_decode() 232 buflen - nbasic); in rustv0_puny_decode() [all …]
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_mkquery.c | 131 int buflen; /* size of buffer */ 176 buflen -= sizeof (HEADER); 186 if ((buflen -= QFIXEDSZ) < 0) 188 if ((n = dn_comp((u_char *)dname, cp, buflen, 192 buflen -= n; 203 buflen -= RRFIXEDSZ; 204 if ((n = dn_comp((u_char *)data, cp, buflen, 208 buflen -= n; 224 if (buflen < 1 + RRFIXEDSZ + datalen) 261 buflen -= RRFIXEDSZ + datalen; [all …]
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | getpwent.c | 115 if (newlinelen + extra_chars > buflen) in validate_passwd_ids() 189 int buflen; local 203 buflen = argp->buf.buflen; 206 len = snprintf(s, buflen, "%s:%s", 211 len = snprintf(s, buflen, "%s:%s,%s", 214 len = snprintf(s, buflen, "%s:%s", 218 if (len > buflen) 222 buflen -= len; 230 if (len > buflen) 243 if (len > argp->buf.buflen) { [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | vcons_conf.c | 88 vt_getactive(char *buf, int buflen) in vt_getactive() argument 91 ASSERT(buflen != 0); in vt_getactive() 96 (void) snprintf(buf, buflen, "/dev/console"); in vt_getactive() 98 (void) snprintf(buf, buflen, "%u", vc_active_console); in vt_getactive() 104 vt_getconsuser(char *buf, int buflen) in vt_getconsuser() argument 107 ASSERT(buflen != 0); in vt_getconsuser() 112 (void) snprintf(buf, buflen, "/dev/console"); in vt_getconsuser() 117 (void) snprintf(buf, buflen, "%u", vc_cons_user); in vt_getconsuser()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getpwnam_r.c | 57 int buflen); 61 int buflen); 76 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwnam_r() 92 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwuid_r() 102 int buflen) in _uncached_getpwuid_r() argument 106 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in _uncached_getpwuid_r() 136 int buflen) in _uncached_getpwnam_r() argument 140 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in _uncached_getpwnam_r() 189 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwent_r() 208 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in fgetpwent_r() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/hi_IN/ |
H A D | iscii91%UTF-8.c | 63 static int copy_to_outbuf(ucs_t uniid, char *buf, size_t buflen); 108 iscii_to_utf8(_iconv_st *st, char *buf, size_t buflen) in iscii_to_utf8() argument 120 if ( buflen < 3 ) { in iscii_to_utf8() 138 if ( (nBytes = copy_to_outbuf(uniid, buf, buflen)) == 0) goto E2big; in iscii_to_utf8() 162 if ((keepc2 == ISC_halant || keepc2 == ISC_nukta) && buflen < 6 ) in iscii_to_utf8() 220 if ( (nBytes = copy_to_outbuf(uniid, buf, buflen)) == 0) goto E2big; in iscii_to_utf8() 231 copy_to_outbuf(ucs_t uniid, char *buf, size_t buflen) in copy_to_outbuf() argument 235 if (buflen < 1) { in copy_to_outbuf() 244 if (buflen < 2) { in copy_to_outbuf() 253 if (buflen < 3) { in copy_to_outbuf() [all …]
|