/titanic_44/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_print.c | 52 char **buf, size_t *buflen); 55 char **buf, size_t *buflen); 56 static void addlen(size_t len, char **buf, size_t *buflen); 58 char **buf, size_t *buflen); 60 char **buf, size_t *buflen); 84 char *buf, size_t buflen) in ns_sprintrr() argument 91 name_ctx, origin, buf, buflen); in ns_sprintrr() 106 char *buf, size_t buflen) in ns_sprintrrf() argument 120 T(addstr("\t\t\t", 3, &buf, &buflen)); in ns_sprintrrf() 126 T(addstr("@\t\t\t", 4, &buf, &buflen)); in ns_sprintrrf() [all …]
|
/titanic_44/usr/src/lib/print/libprint/common/ |
H A D | nss_convert.c | 75 _cvt_printer_to_entry(ns_printer_t *printer, char *buf, int buflen) in _cvt_printer_to_entry() argument 80 (void) memset(buf, NULL, buflen); in _cvt_printer_to_entry() 85 if (snprintf(buf, buflen, "%s", printer->name) >= buflen) { in _cvt_printer_to_entry() 86 (void) memset(buf, NULL, buflen); in _cvt_printer_to_entry() 95 (void) strlcat(buf, "|", buflen); in _cvt_printer_to_entry() 96 (void) strncat_escaped(buf, *alias++, buflen, in _cvt_printer_to_entry() 101 if (strlcat(buf, ":", buflen) >= buflen) { in _cvt_printer_to_entry() 102 (void) memset(buf, NULL, buflen); in _cvt_printer_to_entry() 114 (void) strlcat(buf, "\\\n\t:", buflen); in _cvt_printer_to_entry() 115 (void) strncat_escaped(buf, kvp->key, buflen, ESCAPE_CHARS); in _cvt_printer_to_entry() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nfs4.c | 91 static void sumarg_cb_getattr(char *buf, size_t buflen, void *obj); 93 static void sumarg_cb_recall(char *buf, size_t buflen, void *obj); 97 static void sumarg_access(char *buf, size_t buflen, void *obj); 99 static void sumarg_close(char *buf, size_t buflen, void *obj); 101 static void sumarg_commit(char *buf, size_t buflen, void *obj); 103 static void sumarg_compnt(char *buf, size_t buflen, void *obj); 105 static void sumarg_create(char *buf, size_t buflen, void *obj); 107 static void sumarg_delprge(char *buf, size_t buflen, void *obj); 109 static void sumarg_delret(char *buf, size_t buflen, void *obj); 111 static void sumarg_getattr(char *buf, size_t buflen, void *obj); [all …]
|
/titanic_44/usr/src/uts/common/io/usb/usba/ |
H A D | parser.c | 191 size_t buflen, in usb_nth_descr() argument 198 uchar_t *bufend = buf + buflen; in usb_nth_descr() 233 size_t buflen, in usb_parse_dev_descr() argument 238 (buflen < 2) || (buf[1] != USB_DESCR_TYPE_DEV)) { in usb_parse_dev_descr() 244 buf, buflen, ret_descr, ret_buf_len)); in usb_parse_dev_descr() 250 size_t buflen, in usb_parse_cfg_descr() argument 255 (buflen < 2) || (buf[1] != USB_DESCR_TYPE_CFG)) { in usb_parse_cfg_descr() 261 buf, buflen, ret_descr, ret_buf_len)); in usb_parse_cfg_descr() 268 size_t buflen, in usba_parse_cfg_pwr_descr() argument 272 uchar_t *bufend = buf + buflen; in usba_parse_cfg_pwr_descr() [all …]
|
/titanic_44/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() 110 len = snprintf(buffer, buflen, "%s:%s:%s:", name[0], id[0], in _nss_ldap_proj2str() 112 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str); in _nss_ldap_proj2str() 123 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str() 127 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str() 130 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str); in _nss_ldap_proj2str() 133 len = snprintf(buffer, buflen, ":"); in _nss_ldap_proj2str() [all …]
|
H A D | getprinter.c | 70 int buflen = 0, len; in _nss_ldap_printers2str() local 82 buflen = argp->buf.buflen; in _nss_ldap_printers2str() 84 be->buffer = calloc(1, buflen); in _nss_ldap_printers2str() 87 be->buflen = buflen; in _nss_ldap_printers2str() 91 (void) memset(argp->buf.buffer, 0, buflen); in _nss_ldap_printers2str() 109 len = snprintf(buffer, buflen, "%s", name[0]); in _nss_ldap_printers2str() 110 TEST_AND_ADJUST(len, buffer, buflen, result_printers2str); in _nss_ldap_printers2str() 116 len = snprintf(buffer, buflen, "|%s", in _nss_ldap_printers2str() 118 TEST_AND_ADJUST(len, buffer, buflen, in _nss_ldap_printers2str() 144 len = snprintf(buffer, buflen, ":%s", in _nss_ldap_printers2str() [all …]
|
/titanic_44/usr/src/lib/libcmdutils/common/ |
H A D | nicenum.c | 40 nicenum_scale(uint64_t n, size_t units, char *buf, size_t buflen, in nicenum_scale() argument 87 rc = snprintf(buf, buflen, "%llu", n); in nicenum_scale() 93 rc = snprintf(buf, buflen, "%llu%c", n / divisor, u); in nicenum_scale() 107 if ((rc = snprintf(buf, buflen, "%.*f%c", i, in nicenum_scale() 113 if (rc + 1 > buflen || rc < 0) in nicenum_scale() 120 if (buflen > 10) in nicenum_scale() 121 (void) strlcpy(buf, "<overflow>", buflen); in nicenum_scale() 123 (void) strlcpy(buf, "??", buflen); in nicenum_scale() 127 nicenum(uint64_t num, char *buf, size_t buflen) in nicenum() argument 129 nicenum_scale(num, 1, buf, buflen, 0); in nicenum()
|
/titanic_44/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_info.c | 120 smb_getnetbiosname(char *buf, size_t buflen) in smb_getnetbiosname() argument 122 if (smb_gethostname(buf, buflen, SMB_CASE_UPPER) != 0) in smb_getnetbiosname() 125 if (buflen >= NETBIOS_NAME_SZ) in smb_getnetbiosname() 136 smb_getsamaccount(char *buf, size_t buflen) in smb_getsamaccount() argument 138 if (smb_getnetbiosname(buf, buflen - 1) != 0) in smb_getsamaccount() 141 (void) strlcat(buf, "$", buflen); in smb_getsamaccount() 156 smb_gethostname(char *buf, size_t buflen, smb_caseconv_t which) in smb_gethostname() argument 160 if (buf == NULL || buflen == 0) in smb_gethostname() 163 if (gethostname(buf, buflen) != 0) { in smb_gethostname() 168 buf[buflen - 1] = '\0'; in smb_gethostname() [all …]
|
/titanic_44/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); 101 struct hostent *result, char *buffer, 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() [all …]
|
/titanic_44/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()
|
/titanic_44/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 97 #define HOST_R_ARGS char *buf, int buflen, int *h_errnop 99 #define HOST_R_COPY buf, buflen 100 #define HOST_R_COPY_ARGS char *buf, int buflen 112 #define NGR_R_ARGS char *buf, int buflen 114 #define NGR_R_COPY buf, buflen 132 #define PROTO_R_ARGS char *buf, int buflen 134 #define PROTO_R_COPY buf, buflen [all …]
|
/titanic_44/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() 143 buflen = htonl(nelem); /* length in network byte order */ in postMsg() 144 bcopy(&buflen, buf, sizeof (buflen)); in postMsg() 145 bcopy(aluaMsg, buf + sizeof (buflen), nelem); in postMsg() 148 ns = pt_ops->stmf_proxy_send(t_handle, buf, nelem + sizeof (buflen)); in postMsg() 150 if (ns != nelem + sizeof (buflen)) { in postMsg() 169 uint32_t buflen; member 201 rc = stmfPostProxyMsg(proxy_hdl, (void *)pq->buf, pq->buflen); in push_to_drv() 220 uint32_t buflen; in relay_peer_msg() local [all …]
|
/titanic_44/usr/src/lib/libwanbootutil/common/ |
H A D | wbio.c | 39 wbio_nwrite(int fd, const void *buffer, size_t buflen) in wbio_nwrite() argument 45 for (nwritten = 0; nwritten < buflen; nwritten += nbytes) { in wbio_nwrite() 46 nbytes = write(fd, &buf[nwritten], buflen - nwritten); in wbio_nwrite() 59 wbio_nread(int fd, void *buffer, size_t buflen) in wbio_nread() argument 65 for (nread = 0; nread < buflen; nread += nbytes) { in wbio_nread() 66 nbytes = read(fd, &buf[nread], buflen - nread); in wbio_nread() 79 wbio_nread_rand(void *buffer, size_t buflen) in wbio_nread_rand() argument 87 if (wbio_nread(fd, buffer, buflen) != 0) { in wbio_nread_rand()
|
/titanic_44/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 …]
|
/titanic_44/usr/src/lib/libresolv/ |
H A D | res_mkquery.c | 120 res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen) in res_mkquery() argument 128 int buflen; /* size of buffer */ 159 if ((buf == NULL) || (buflen < sizeof (HEADER))) 173 buflen -= sizeof (HEADER); 183 if ((buflen -= QFIXEDSZ) < 0) 185 if ((n = dn_comp(dname, cp, buflen, dnptrs, lastdnptr)) < 0) 188 buflen -= n; 199 buflen -= RRFIXEDSZ; 200 if ((n = dn_comp(data, cp, buflen, dnptrs, lastdnptr)) < 0) 203 buflen -= n; [all …]
|
/titanic_44/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()
|
/titanic_44/usr/src/lib/nsswitch/compat/common/ |
H A D | getpwent.c | 73 validate_passwd_ids(char *line, int *linelenp, int buflen, int extra_chars) in validate_passwd_ids() argument 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; 223 len = snprintf(s, buflen, ":%u:%u:%s:%s:%s", [all …]
|
/titanic_44/usr/src/cmd/lp/lib/oam/ |
H A D | agettxt.c | 46 int buflen in agettxt() argument 49 agettxt (msg_id, buf, buflen) in agettxt() 52 int buflen; 56 strncpy (buf, gettext(_oam_msg_base_[msg_id]), buflen-1); 58 strncpy (buf, gettext("No message defined--get help!"), buflen-1); 59 buf[buflen-1] = 0;
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | getrandom.c | 40 getrandom(void *bufp, size_t buflen, int flags) in getrandom() argument 49 if ((flags & GRND_RANDOM) && buflen > MAXRANDBYTES) { in getrandom() 50 buflen = MAXRANDBYTES; in getrandom() 51 } else if (buflen > MAXURANDBYTES) { in getrandom() 52 buflen = MAXURANDBYTES; in getrandom() 55 while (out < buflen) { in getrandom() 57 size_t len = MIN(sizeof (rbytes), buflen - out); in getrandom()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | getpwnam_r.c | 56 int buflen); 60 int buflen); 67 getpwnam_r(const char *name, struct passwd *result, char *buffer, int buflen) in getpwnam_r() argument 75 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwnam_r() 87 getpwuid_r(uid_t uid, struct passwd *result, char *buffer, int buflen) in getpwuid_r() argument 91 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwuid_r() 101 int buflen) in _uncached_getpwuid_r() argument 105 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in _uncached_getpwuid_r() 135 int buflen) in _uncached_getpwnam_r() argument 139 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in _uncached_getpwnam_r() [all …]
|
H A D | getgrnam_r.c | 63 int buflen); 66 _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen); 73 getgrnam_r(const char *name, struct group *result, char *buffer, int buflen) in getgrnam_r() argument 81 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in getgrnam_r() 93 getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen) in getgrgid_r() argument 97 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in getgrgid_r() 106 int buflen) in _uncached_getgrgid_r() argument 110 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in _uncached_getgrgid_r() 139 int buflen) in _uncached_getgrnam_r() argument 143 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in _uncached_getgrnam_r() [all …]
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-dns.c | 52 LDAPHostEnt *result, char *buffer, int buflen, int *statusp, 55 int type, LDAPHostEnt *result, char *buffer, int buflen, 58 char *buffer, int buflen ); 65 char *buffer, int buflen, int *statusp, void *extradata); 68 int buflen); 98 char *buffer, int buflen, int *statusp, void *extradata ) in prldap_gethostbyname() argument 104 buffer, buflen, &prhent )) == PR_FAILURE ) { in prldap_gethostbyname() 114 LDAPHostEnt *result, char *buffer, int buflen, int *statusp, in prldap_gethostbyaddr() argument 127 buflen, &prhent )) == PR_FAILURE ) { in prldap_gethostbyaddr() 134 prldap_getpeername( LDAP *ld, struct sockaddr *addr, char *buffer, int buflen) in prldap_getpeername() argument [all …]
|
/titanic_44/usr/src/cmd/dlutil/ |
H A D | dltraninfo.c | 103 size_t *buflen) in dltran_read_page() argument 107 bzero(bufp, *buflen); in dltran_read_page() 113 dti.dti_nbytes = *buflen; in dltran_read_page() 123 *buflen = dti.dti_nbytes; in dltran_read_page() 156 size_t buflen = sizeof (buf); in dltran_hex_dump() local 158 if (dltran_read_page(linkid, tranid, 0xa0, buf, &buflen) != 0) { in dltran_hex_dump() 163 dltran_dump_page(buf, buflen, 0xa0); in dltran_hex_dump() 169 buflen = sizeof (buf); in dltran_hex_dump() 170 if (dltran_read_page(linkid, tranid, 0xa2, buf, &buflen) != 0) { in dltran_hex_dump() 175 dltran_dump_page(buf, buflen, 0xa2); in dltran_hex_dump() [all …]
|
/titanic_44/usr/src/lib/libproject/common/ |
H A D | getprojent.c | 83 _getprojent(struct project *result, void *buffer, size_t buflen) in _getprojent() argument 87 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project); in _getprojent() 93 _fgetprojent(FILE *f, struct project *result, void *buffer, size_t buflen) in _fgetprojent() argument 98 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project); in _fgetprojent() 105 void *buffer, size_t buflen) in _getprojbyid() argument 109 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project); in _getprojbyid() 118 void *buffer, size_t buflen) in _getprojbyname() argument 121 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project); in _getprojbyname() 198 void *buffer, size_t buflen) in _getdefaultproj() argument 207 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project); in _getdefaultproj() [all …]
|
/titanic_44/usr/src/lib/libreparse/common/ |
H A D | fs_reparse_lib.c | 97 int err, buflen; in reparse_unparse() local 105 buflen = SYMLINK_MAX; in reparse_unparse() 106 if ((buf = malloc(buflen)) == NULL) in reparse_unparse() 110 (void) snprintf(buf, buflen, "%s", FS_REPARSE_TAG_STR); in reparse_unparse() 116 if ((strlcat(buf, FS_TOKEN_START_STR, buflen) >= buflen) || in reparse_unparse() 117 (strlcat(buf, stype, buflen) >= buflen) || in reparse_unparse() 118 (strlcat(buf, ":", buflen) >= buflen) || in reparse_unparse() 120 (strlcat(buf, val, buflen) >= buflen) || in reparse_unparse() 121 (strlcat(buf, FS_TOKEN_END_STR, buflen) >= buflen)) { in reparse_unparse() 131 if (strlcat(buf, FS_REPARSE_TAG_END_STR, buflen) >= buflen) { in reparse_unparse()
|