Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 723) sorted by relevance

12345678910>>...29

/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_print.c431 &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 Duni_common.c31 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 Ddis_riscv.c1175 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 Dpcieadm_devs.c123 if (snprintf(buf, buflen, "%x", psdo->psdo_bus) >= buflen) { in pcieadm_show_devs_ofmt_cb()
146 if (strlcat(buf, psdo->psdo_path, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb()
154 buflen) { in pcieadm_show_devs_ofmt_cb()
162 buflen) { in pcieadm_show_devs_ofmt_cb()
167 if (strlcat(buf, psdo->psdo_vendor, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb()
172 if (strlcat(buf, psdo->psdo_device, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb()
180 buflen) { in pcieadm_show_devs_ofmt_cb()
188 buflen) { in pcieadm_show_devs_ofmt_cb()
219 if (strlcat(buf, ",", buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb()
225 if (strlcat(buf, str, buflen) >= buflen) { in pcieadm_show_devs_ofmt_cb()
[all …]
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_nicenum.c49 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 Dnss_convert.c78 (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 Dsnoop_nfs4.c1594 int blen = buflen, len; in sumarg_open()
1638 snprintf(buf, buflen, "CD=%s", in sumarg_openattr()
1989 snprintf(buf, buflen, "%s", in sumarg_secinfo()
2174 remaining = buflen - curlen; in sum_attr_bitmap()
2449 int len, blen = buflen; in sumres_access()
2492 snprintf(buf, buflen, "%s", in sumres_close()
2708 int len, blen = buflen; in sumres_open()
3287 snprintf(bp, buflen, "%s ", in sum_name()
3293 snprintf(bp, buflen, "%s ", in sum_name()
3298 snprintf(bp, buflen, "%s ", in sum_name()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dparser.c189 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 Dgetprojent.c71 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 Dgetprinter.c68 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 Dgetgrent.c93 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 Dnicenum.c41 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 Dgethostbyname_r.c70 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 Dgetspent.c33 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 Dport_before.h73 #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 Dnvmeadm_ofmt.c54 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 Dstmfproxy.c130 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 Dsmb_info.c204 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 Dprom_key.c41 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 Drust-v0puny.c66 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 Dres_mkquery.c131 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 Dgetpwent.c115 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 Dvcons_conf.c88 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 Dgetpwnam_r.c57 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 Discii91%UTF-8.c63 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 …]

12345678910>>...29