/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_prop.c | 55 prom_decode_composite_string(void *buf, size_t buflen, char *prev) in prom_decode_composite_string() argument 57 if ((buf == 0) || (buflen == 0) || ((int)buflen == -1)) in prom_decode_composite_string() 64 if (prev >= ((char *)buf + buflen)) in prom_decode_composite_string()
|
/illumos-gate/usr/src/common/secflags/ |
H A D | secflags.c | 211 secflags_to_str(secflagset_t flags, char *buf, size_t buflen) in secflags_to_str() argument 215 if (buflen >= 1) in secflags_to_str() 219 (void) strlcpy(buf, "none", buflen); in secflags_to_str() 226 (void) strlcat(buf, ",", buflen); in secflags_to_str() 227 (void) strlcat(buf, fd->name, buflen); in secflags_to_str() 238 (void) strlcat(buf, ",", buflen); in secflags_to_str() 239 (void) strlcat(buf, hexbuf, buflen); in secflags_to_str()
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 68 return (gethostbyname_r(nam, b->result, b->buffer, b->buflen, in gethostbyname() 84 b->result, b->buffer, b->buflen, &h_errno)); in gethostbyaddr() 94 return (gethostent_r(b->result, b->buffer, b->buflen, &h_errno)); in gethostent() 105 int buflen) in __str2hostent() argument 116 if ((instr >= buffer && (buffer + buflen) > instr) || in __str2hostent() 162 addrp6 = (struct in6_addr *)ROUND_DOWN(buffer + buflen, in __str2hostent() 168 addrp = (struct in_addr *)ROUND_DOWN(buffer + buflen, in __str2hostent()
|
H A D | gethostent6.c | 55 str2hostent6(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2hostent6() argument 57 return (__str2hostent(AF_INET6, instr, lenstr, ent, buffer, buflen)); in str2hostent6() 85 __gethostent6(struct hostent *result, char *buffer, int buflen, int *h_errnop) in __gethostent6() argument 90 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2hostent6); in __gethostent6()
|
H A D | gethostent_r.c | 50 str2hostent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2hostent() argument 52 return (__str2hostent(AF_INET, instr, lenstr, ent, buffer, buflen)); in str2hostent() 89 gethostent_r(struct hostent *result, char *buffer, int buflen, int *h_errnop) in gethostent_r() argument 94 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2hostent); in gethostent_r()
|
H A D | getipnodeby.c | 130 result, buffer, buflen, h_errnop)); in _uncached_getipnodebyaddr() 285 nssin.arg.nss.host6.buflen = buf6->buflen; in getipnodebyname() 325 nssin.arg.nss.host.buflen = buf4->buflen; in getipnodebyname() 520 nssin.arg.nss.host.buflen = buf->buflen; in getipnodebyaddr() 597 nssin.arg.nss.host.buflen = buf->buflen; in getipnodebyaddr() 647 nssin.arg.nss.host.buflen = buf->buflen; in getipnodebyaddr() 834 int buflen = res->buflen; in __mapv4tov6() local 844 limit = res->buffer + buflen; in __mapv4tov6() 1068 int buflen = NSS_BUFLEN_HOSTS; in __mappedtov4() local 1087 limit = res->buffer + buflen; in __mappedtov4() [all …]
|
H A D | netdir_inet.c | 219 args->arg.nss.host.buflen); in _get_hostserv_inetnetdir_byname() 504 args->arg.nss.host.buflen, in _get_hostserv_inetnetdir_byname() 677 ndbuf4switch->buflen, in _get_hostserv_inetnetdir_byname() 928 args->arg.nss.host.buflen, in _get_hostserv_inetnetdir_byaddr() 941 args->arg.nss.host.buflen, in _get_hostserv_inetnetdir_byaddr() 982 ndbuf4serv->buflen); in _get_hostserv_inetnetdir_byaddr() 1077 ndbuf4serv->buflen); in _get_hostserv_inetnetdir_byaddr() 1306 int buflen, int *h_errnop) in _switch_gethostbyname_r() argument 1412 char *buffer, int buflen) in _switch_getservbyport_r() argument 2371 aliasp = buffer + buflen; in ndhostserv2hent() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getxby_door.h | 74 int buflen); 78 int buflen); 82 int buflen); 85 _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen);
|
H A D | getpwnam.c | 73 getpwuid_r(uid, b->result, b->buffer, b->buflen)); in getpwuid() 82 getpwnam_r(nam, b->result, b->buffer, b->buflen)); in getpwnam() 91 getpwent_r(b->result, b->buffer, b->buflen)); in getpwent() 100 fgetpwent_r(f, b->result, b->buffer, b->buflen)); in fgetpwent()
|
H A D | getxby_door.c | 164 int buflen = 0; in _nsc_init_private_db() local 174 buflen = strlen(dblist) + 1; in _nsc_init_private_db() 181 nsc_db_buf = (char *)libc_malloc(buflen); in _nsc_init_private_db() 190 (void) memcpy(nsc_db_buf, dblist, buflen); in _nsc_init_private_db() 621 lfree(tsdbuf->buffer, (size_t)tsdbuf->buflen); in _nsc_freedbuf() 624 tsdbuf->buflen = 0; in _nsc_freedbuf() 657 tsdbuf->buflen = dsize; in _nsc_getdoorbuf() 662 if (tsdbuf->buflen < dsize) { in _nsc_getdoorbuf() 663 lfree(tsdbuf->buffer, (size_t)tsdbuf->buflen); in _nsc_getdoorbuf() 668 tsdbuf->buflen = dsize; in _nsc_getdoorbuf() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ad/common/ |
H A D | getpwnam.c | 60 int buflen; in update_buffer() local 69 buflen = snprintf(NULL, 0, "%s:%s:%u:%u:%s:%s:%s", in update_buffer() 74 buflen = snprintf(NULL, 0, "%s@%s:%s:%u:%u:%s:%s:%s", in update_buffer() 80 buffer = be->buffer = malloc(buflen); in update_buffer() 83 be->buflen = buflen; in update_buffer() 85 if (buflen > argp->buf.buflen) in update_buffer() 87 buflen = argp->buf.buflen; in update_buffer() 92 (void) snprintf(buffer, buflen, "%s:%s:%u:%u:%s:%s:%s", in update_buffer() 95 (void) snprintf(buffer, buflen, "%s@%s:%s:%u:%u:%s:%s:%s", in update_buffer()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | sw.c | 365 size_t buflen = 0; in sw_fmri_nvl2str() local 438 topo_fmristr_build(&size, buf, buflen, FM_FMRI_SCHEME_SW, in sw_fmri_nvl2str() 453 topo_fmristr_build(&size, buf, buflen, "=", in sw_fmri_nvl2str() 459 topo_fmristr_build(&size, buf, buflen, "/", NULL, NULL); in sw_fmri_nvl2str() 463 topo_fmristr_build(&size, buf, buflen, root, in sw_fmri_nvl2str() 468 topo_fmristr_build(&size, buf, buflen, path, in sw_fmri_nvl2str() 473 topo_fmristr_build(&size, buf, buflen, token, in sw_fmri_nvl2str() 477 topo_fmristr_build(&size, buf, buflen, file, in sw_fmri_nvl2str() 482 topo_fmristr_build(&size, buf, buflen, func, in sw_fmri_nvl2str() 492 topo_fmristr_build(&size, buf, buflen, linebuf, in sw_fmri_nvl2str() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_door_encdec.c | 135 smb_string_decode(smb_string_t *obj, char *buf, size_t buflen) in smb_string_decode() argument 140 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in smb_string_decode() 154 lsa_account_encode(lsa_account_t *acct, uint8_t *buf, uint32_t buflen) in lsa_account_encode() argument 159 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in lsa_account_encode() 172 lsa_account_decode(lsa_account_t *acct, uint8_t *buf, uint32_t buflen) in lsa_account_decode() argument 177 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in lsa_account_decode()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | l2_packet.c | 73 l2_packet_send(struct l2_packet_data *l2, uint8_t *buf, size_t buflen) in l2_packet_send() argument 77 retval = dlpi_send(l2->dh, NULL, 0, buf, buflen, NULL); in l2_packet_send() 92 size_t buflen = sizeof (buf); in l2_packet_receive() local 96 retval = dlpi_recv(l2->dh, NULL, NULL, buf, &buflen, 0, NULL); in l2_packet_receive() 104 if (buflen < sizeof (*ethhdr) || in l2_packet_receive() 110 (unsigned char *)(ethhdr + 1), buflen - sizeof (*ethhdr)); in l2_packet_receive()
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_xdr.c | 123 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_doorhdr_encode() 142 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in smb_doorhdr_decode() 180 uint32_t buflen, uint_t *nbytes) in smb_netuserinfo_encode() argument 185 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_netuserinfo_encode() 201 uint32_t buflen, uint_t *nbytes) in smb_netuserinfo_decode() argument 206 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in smb_netuserinfo_decode() 276 uint32_t buflen, uint_t *nbytes) in smb_netconnectinfo_encode() argument 281 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_netconnectinfo_encode() 297 uint32_t buflen, uint_t *nbytes) in smb_netconnectinfo_decode() argument 346 uint32_t buflen, uint_t *nbytes) in smb_netfileinfo_encode() argument [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getprofattr.c | 64 int buflen = 0; in _nss_ldap_prof2str() local 74 buflen = argp->buf.buflen; in _nss_ldap_prof2str() 76 (void) memset(argp->buf.buffer, 0, buflen); in _nss_ldap_prof2str() 110 if (len > buflen) { in _nss_ldap_prof2str() 127 be->buflen = strlen(be->buffer); in _nss_ldap_prof2str()
|
H A D | getuserattr.c | 64 int buflen = 0; in _nss_ldap_user2str() local 74 buflen = argp->buf.buflen; in _nss_ldap_user2str() 76 (void) memset(argp->buf.buffer, 0, buflen); in _nss_ldap_user2str() 111 if (len > buflen) { in _nss_ldap_user2str() 128 be->buflen = strlen(be->buffer); in _nss_ldap_user2str()
|
H A D | getauthattr.c | 65 int buflen = 0; in _nss_ldap_auth2str() local 76 buflen = argp->buf.buflen; in _nss_ldap_auth2str() 78 (void) memset(argp->buf.buffer, 0, buflen); in _nss_ldap_auth2str() 118 if (len > buflen) { in _nss_ldap_auth2str() 136 be->buflen = strlen(be->buffer); in _nss_ldap_auth2str()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioBuffer.cc | 40 AudioStream(local_name), buflen(len), bufaddr(0), zflag(0), bufsize(0) in AudioBuffer() 197 if ((addr == 0) || (pos < 0.) || (pos >= buflen)) in GetAddress() 231 return (buflen); in GetSize() 240 if (len == buflen) in SetSize() 244 buflen = len; in SetSize() 250 if (buflen < GetLength()) in SetSize() 251 SetLength(buflen); in SetSize() 271 if (buflen == 0.) in SetHeader() 279 buflen = h.Bytes_to_Time(GetByteCount()); in SetHeader()
|
/illumos-gate/usr/src/cmd/drd/ |
H A D | drd_log.c | 59 drd_timestamp(char *buf, size_t buflen) in drd_timestamp() argument 64 if ((buf == NULL) || (buflen == 0)) in drd_timestamp() 81 if (strftime(buf, buflen, "%b %e %T ", <ime) == 0) { in drd_timestamp() 83 "small\n", buflen); in drd_timestamp()
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | ctfstabs.c | 127 static int buflen; in readline() local 129 if (buflen == 0) { in readline() 131 buflen = READLINE_BUF_INCR; in readline() 138 if (fgets(bptr, buflen - (size_t)(bptr - buf), fp) == NULL) in readline() 147 buflen += READLINE_BUF_INCR; in readline() 148 buf = xrealloc(buf, buflen); in readline()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_mangle_name.c | 229 smb_generate_mangle(uint64_t fid, char *buf, size_t buflen) in smb_generate_mangle() argument 239 for (i = 2; (i < buflen) && (fid > 0); fid /= 36, ++i) in smb_generate_mangle() 299 smb_mangle(const char *name, ino64_t fid, char *buf, size_t buflen) in smb_mangle() argument 307 ASSERT(name && buf && (buflen >= SMB_SHORTNAMELEN)); in smb_mangle() 366 int buflen, uint32_t flags) in smb_unmangle() argument 380 if (dnode == NULL || name == NULL || namebuf == NULL || buflen == 0) in smb_unmangle() 440 (void) strlcpy(namebuf, namep, buflen); in smb_unmangle()
|
/illumos-gate/usr/src/uts/sun/sys/ |
H A D | promif.h | 116 size_t buflen, char *prev); 124 caddr_t name, caddr_t buffer, int buflen); 141 uint_t buflen); 143 uint_t buflen); 186 extern int prom_version_name(char *buf, int buflen); 330 int prom_set_security_key(char *keyname, caddr_t buf, int buflen, int *reslen, 332 int prom_get_security_key(char *keyname, caddr_t buf, int buflen, int *keylen,
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkquery.c | 119 int buflen) /*!< size of buffer */ in res_nmkquery() argument 148 if ((buf == NULL) || (buflen < HFIXEDSZ)) in res_nmkquery() 158 ep = buf + buflen; in res_nmkquery() 238 int buflen, /*%< size of buffer */ in res_nopt() argument 252 ep = buf + buflen; in res_nopt() 292 int buflen, /*%< size of buffer */ in res_nopt_rdata() argument 306 ep = buf + buflen; in res_nopt_rdata()
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | cnv_ibmutf8.c | 142 int ibm_to_utf8(st, buf, buflen) in ibm_to_utf8() argument 145 size_t buflen; 173 if (buflen < 2) { 188 if (buflen < 3) { 206 if (buflen < 3) {
|