/illumos-gate/usr/src/lib/libipmp/common/ |
H A D | ipmp_mpathd.c | 168 ipmp_write(int fd, const void *buffer, size_t buflen) in ipmp_write() argument 174 for (nwritten = 0; nwritten < buflen; nwritten += nbytes) { in ipmp_write() 175 nbytes = write(fd, &buf[nwritten], buflen - nwritten); in ipmp_write() 184 assert(nwritten == buflen); in ipmp_write() 222 ipmp_read(int fd, void *buffer, size_t buflen, const struct timeval *endtp) in ipmp_read() argument 231 while (nbytes < buflen) { in ipmp_read() 267 prbytes = read(fd, (caddr_t)buffer + nbytes, buflen - nbytes); in ipmp_read() 276 return (nbytes == buflen ? IPMP_SUCCESS : IPMP_FAILURE); in ipmp_read()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getentropy.c | 24 getentropy(void *buf, size_t buflen) in getentropy() argument 28 if (buflen > 256) { in getentropy() 33 ret = getrandom(buf, buflen, 0); in getentropy() 34 if (ret == -1 || ret != buflen) { in getentropy()
|
H A D | getspent_r.c | 53 getspnam_r(const char *name, struct spwd *result, char *buffer, int buflen) in getspnam_r() argument 57 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2spwd); in getspnam_r() 78 getspent_r(struct spwd *result, char *buffer, int buflen) in getspent_r() argument 86 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2spwd); in getspent_r() 97 fgetspent_r(FILE *f, struct spwd *result, char *buffer, int buflen) in fgetspent_r() argument 105 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2spwd); in fgetspent_r() 179 str2spwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2spwd() argument 197 if (lencopy + 1 > buflen) { in str2spwd()
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_vername.c | 46 prom_version_name(char *buf, int buflen) in prom_version_name() argument 52 *buf = *(buf + buflen - 1) = (char)0; /* Force NULL termination */ in prom_version_name() 65 proplen = prom_bounded_getprop(nodeid, "version", buf, buflen - 1); in prom_version_name() 67 (void) prom_strncpy(buf, unknown, buflen - 1); in prom_version_name()
|
/illumos-gate/usr/src/tools/ndrgen/ |
H A D | ndr_anal.c | 160 (void) snprintf(p_fb, buflen, "_%s", in type_extern_suffix() 165 (void) strlcpy(p_fb, "p", buflen); in type_extern_suffix() 170 (void) snprintf(p_fb, buflen, "a%ld", in type_extern_suffix() 173 (void) snprintf(p_fb, buflen, "ac"); in type_extern_suffix() 178 (void) strlcpy(p_fb, "s", buflen); in type_extern_suffix() 198 (void) strlcpy(funcbuf, ident, buflen); in type_ident_decl1() 207 (void) snprintf(funcbuf, buflen, "%s%s%s%s", in type_ident_decl1() 213 (void) snprintf(funcbuf, buflen, "%s%s%s%s", in type_ident_decl1() 219 (void) snprintf(funcbuf, buflen, "%s%s%s%s", in type_ident_decl1() 240 (void) snprintf(funcbuf, buflen, in type_ident_decl1() [all …]
|
/illumos-gate/usr/src/head/ |
H A D | nss_netdir.h | 63 int buflen; member 68 int buflen; member 76 int buflen; member 103 int buflen; member 109 int buflen; member
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | polled_io.c | 387 uint_t buflen; in polled_read() local 429 buflen = p1275_cell2uint(cif[CIF_MIN_SIZE+1]); in polled_read() 435 if (buflen == 0) { in polled_read() 491 if (actual == buflen) { in polled_read() 582 uint_t buflen; in polled_write() local 625 buflen = p1275_cell2uint(cif[CIF_MIN_SIZE+1]); in polled_write() 631 if (buflen == 0) { in polled_write() 672 polled_io_cons_write(buffer, (size_t)buflen); in polled_write() 678 cif[out_args+1] = p1275_uint2cell((uint_t)buflen); in polled_write()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | ldap_key_seq.c | 230 int buflen; in decode_tagged_integer() local 241 buflen = t.length; in decode_tagged_integer() 256 int buflen; 283 int buflen; in decode_tagged_octetstring() local 321 buflen = length; in asn1_decode_key() 327 int buflen; in asn1_decode_key() local 334 buflen = length; in asn1_decode_key() 354 int buflen; in asn1_decode_key() local 363 buflen = length; in asn1_decode_key() 438 int i, buflen; in asn1_decode_sequence_of_keys() local [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/test-crypt/ |
H A D | utils.c | 85 make_uio(void *buf, size_t buflen, uio_t *uio, iovec_t *iov, int iovmax) in make_uio() argument 92 uio->uio_resid = buflen; in make_uio() 96 if (buflen <= 0) in make_uio() 98 tlen = buflen; in make_uio() 104 buflen -= tlen; in make_uio()
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostby_door.c | 41 int buflen, int *h_errnop) in _door_gethostbyname_r() argument 44 result, buffer, buflen, h_errnop)); in _door_gethostbyname_r() 49 struct hostent *result, char *buffer, int buflen, int *h_errnop) in _door_gethostbyaddr_r() argument 52 length, type, result, buffer, buflen, h_errnop)); in _door_gethostbyaddr_r()
|
H A D | getipnodeby_door.c | 42 int buflen, int af_family, int flags, int *h_errnop) in _door_getipnodebyname_r() argument 45 result, buffer, buflen, af_family, flags, h_errnop)); in _door_getipnodebyname_r() 50 struct hostent *result, char *buffer, int buflen, int *h_errnop) in _door_getipnodebyaddr_r() argument 53 length, type, result, buffer, buflen, h_errnop)); in _door_getipnodebyaddr_r()
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_data.c | 165 int buflen) /*!< size of buffer */ in res_mkquery() argument 173 newrr_in, buf, buflen)); in res_mkquery() 177 res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { in res_mkupdate() argument 183 return (res_nmkupdate(&_res, rrecp_in, buf, buflen)); in res_mkupdate() 215 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) { in res_send() argument 221 return (res_nsend(&_res, buf, buflen, ans, anssiz)); in res_send() 225 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, in res_sendsigned() argument 233 return (res_nsendsigned(&_res, buf, buflen, key, ans, anssiz)); in res_sendsigned()
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | compat_common.c | 52 char *buffer, int buflen); 54 char *buffer, int buflen); 56 char *buffer, int buflen); 74 int buflen) in str2auuser_s() argument 80 if (lenstr >= buflen) in str2auuser_s() 93 int buflen) in str2userattr_s() argument 99 if (lenstr >= buflen) in str2userattr_s() 458 int buflen; 640 argp->buf.buflen) { 825 args->buf.buflen) [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vlds.c | 799 size_t buflen; in vlds_ioctl() local 821 buflen); in vlds_ioctl() 828 DS_FREE(bufp, buflen); in vlds_ioctl() 833 DS_FREE(bufp, buflen); in vlds_ioctl() 840 buflen); in vlds_ioctl() 842 DS_FREE(bufp, buflen); in vlds_ioctl() 849 size_t buflen, msglen; in vlds_ioctl() local 1457 __func__, buflen); in vlds_user_data_cb() 1532 if (buflen == 0) { in vlds_recvq_get_data() 1657 __func__, buflen); in vlds_recvq_put_data() [all …]
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_event.c | 122 size_t buflen = 0; in process_event() local 150 &buflen); in process_event() 151 if (buf != NULL && buflen > 0) { in process_event() 152 (void) nvlist_unpack(buf, buflen, &change_data, 0); in process_event() 154 buflen = 0; in process_event() 157 &buflen); in process_event() 158 if (buf != NULL && buflen > 0) in process_event() 159 (void) nvlist_unpack(buf, buflen, &event_data, 0); in process_event() 302 size_t buflen = 0; in generate_reply_event() local 326 buflen = 0; in generate_reply_event() [all …]
|
/illumos-gate/usr/src/cmd/pcidb/ |
H A D | pcidb.c | 98 pcidb_write_vendor(ofmt_arg_t *ofarg, char *buf, uint_t buflen) in pcidb_write_vendor() argument 105 (void) snprintf(buf, buflen, "%x", in pcidb_write_vendor() 125 (void) snprintf(buf, buflen, "%x", in pcidb_write_device() 146 (void) snprintf(buf, buflen, "%x", in pcidb_write_subsystem() 150 (void) snprintf(buf, buflen, "%x", in pcidb_write_subsystem() 162 (void) strlcpy(buf, pcidb_vendor_name(vendor), buflen); in pcidb_write_subsystem() 178 (void) snprintf(buf, buflen, "%x", in pcidb_write_class() 198 (void) snprintf(buf, buflen, "%x", in pcidb_write_subclass() 203 buflen); in pcidb_write_subclass() 219 (void) snprintf(buf, buflen, "%x", in pcidb_write_progif() [all …]
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_send.c | 134 res_send(buf, buflen, answer, anslen) in res_send() argument 136 int buflen; 172 v_circuit = (_res.options & RES_USEVC) || buflen > PACKETSZ; 220 len = htons((u_short)buflen); 224 iov[1].iov_len = buflen; 226 buflen) { 377 if (send(s, buf, buflen, 0) != buflen) { 395 if (sendto(s, buf, buflen, 0, 397 sizeof (struct sockaddr)) != buflen) {
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | compat.c | 45 char *buffer, int buflen, int *h_errnop ) in nsldapi_compat_gethostbyname_r() argument 49 if ( buflen < sizeof(struct hostent_data)) { /* sanity check */ in nsldapi_compat_gethostbyname_r() 65 nsldapi_compat_ctime_r( const time_t *clock, char *buf, int buflen ) in nsldapi_compat_ctime_r() argument 67 NSLDAPI_CTIME1( clock, buf, buflen ); in nsldapi_compat_ctime_r()
|
/illumos-gate/usr/src/cmd/ccidadm/ |
H A D | ccidadm.c | 163 (void) snprintf(buf, buflen, "missing"); in ccidadm_list_slot_status_str() 168 (void) snprintf(buf, buflen, "activated"); in ccidadm_list_slot_status_str() 172 (void) snprintf(buf, buflen, "unactivated"); in ccidadm_list_slot_status_str() 177 uint_t buflen) in ccidadm_list_slot_transport_str() argument 216 return (snprintf(buf, buflen, "%s%s", tran, prot) < buflen); in ccidadm_list_slot_transport_str() 221 uint_t buflen) in ccidadm_list_slot_usable_str() argument 237 return (snprintf(buf, buflen, "%ssupported", un) < buflen); in ccidadm_list_slot_usable_str() 247 if (snprintf(buf, buflen, "%s", cloa->cloa_name) >= buflen) { in ccidadm_list_ofmt_cb() 252 if (snprintf(buf, buflen, "%s", in ccidadm_list_ofmt_cb() 262 buflen)); in ccidadm_list_ofmt_cb() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | ibm%utf8.c | 49 int ibm_to_utf8(_icv_state *st, char *buf, size_t buflen); 174 int ibm_to_utf8(st, buf, buflen) in ibm_to_utf8() argument 177 size_t buflen; 205 if (buflen < 1) { 213 if (buflen < 2) { 228 if (buflen < 3) { 246 if (buflen < 3) {
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getspent.c | 47 nis_str2spent(instr, lenstr, ent, buffer, buflen) in nis_str2spent() argument 52 int buflen; 68 if (q + 1 - instr > buflen) { 96 if (strlcat(buffer, ":::::::", buflen) >= buflen) 141 argp->buf.buflen)) == NULL) 200 argp->buf.buflen)) == NULL)
|
/illumos-gate/usr/src/uts/sun4u/littleneck/os/ |
H A D | littleneck.c | 146 int flt_in_memory, ushort_t flt_status, char *buf, int buflen, int *lenp) in plat_get_mem_unum() argument 150 buf, buflen, lenp)); in plat_get_mem_unum() 156 plat_get_cpu_unum(int cpuid, char *buf, int buflen, int *lenp) in plat_get_cpu_unum() argument 158 if (snprintf(buf, buflen, "Slot %d", cpuid) >= buflen) { in plat_get_cpu_unum()
|
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | gethostent.c | 347 int parsestat, i, nhosts = 0, buflen; local 383 buflen = args->buf.buflen; 447 if (h_namelen + 1 > args->buf.buflen) { 473 hp, buffer, buflen); 477 (void) memset(buffer, 0, buflen); 495 if (alen + 1 >= buflen) 507 buflen -= alen; 514 buflen--; 524 if (cplen >= buflen || erange == 1) { 528 buflen++; [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getauuser.c | 59 int buflen = 0; in _nss_ldap_au2str() local 68 buflen = argp->buf.buflen; in _nss_ldap_au2str() 70 (void) memset(argp->buf.buffer, 0, buflen); in _nss_ldap_au2str() 92 if (len > buflen) { in _nss_ldap_au2str() 109 be->buflen = strlen(be->buffer); in _nss_ldap_au2str()
|
/illumos-gate/usr/src/uts/sun4u/taco/os/ |
H A D | taco.c | 209 int flt_in_memory, ushort_t flt_status, char *buf, int buflen, int *lenp) in plat_get_mem_unum() argument 213 buf, buflen, lenp)); in plat_get_mem_unum() 220 plat_get_cpu_unum(int cpuid, char *buf, int buflen, int *lenp) in plat_get_cpu_unum() argument 222 if (snprintf(buf, buflen, "MB") >= buflen) { in plat_get_cpu_unum()
|