Home
last modified time | relevance | path

Searched refs:lenstr (Results 1 – 25 of 35) sorted by relevance

12

/titanic_44/usr/src/lib/libsocket/inet/
H A Dbootparams_getbyname.c76 int lenstr, in str2bootent() argument
85 (buffer >= instr && (instr + lenstr) > buffer)) { in str2bootent()
89 limit = p + lenstr; in str2bootent()
99 lenstr -= (p - instr); in str2bootent()
100 if (buflen <= lenstr) { /* not enough buffer */ in str2bootent()
103 (void) memcpy(buffer, p, lenstr); in str2bootent()
104 buffer[lenstr] = '\0'; in str2bootent()
H A Dgetprotoent_r.c129 str2protoent(const char *instr, int lenstr, in str2protoent() argument
140 (buffer >= instr && (instr + lenstr) > buffer)) { in str2protoent()
145 limit = p + lenstr; in str2protoent()
210 proto->p_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr), in str2protoent()
H A Dgetnetent_r.c134 str2netent(const char *instr, int lenstr, in str2netent() argument
144 (buffer >= instr && (instr + lenstr) > buffer)) { in str2netent()
149 limit = p + lenstr; in str2netent()
215 net->n_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr), in str2netent()
H A Dether_addr.c183 str2ether(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2ether() argument
191 limit = p + lenstr; in str2ether()
/titanic_44/usr/src/lib/libnsl/nss/
H A Dgethostent.c106 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, in __str2hostent() argument
119 (buffer >= instr && (instr + lenstr) > buffer)) in __str2hostent()
152 while (lenstr > 0 && p[lenstr - 1] == '\n') in __str2hostent()
153 lenstr--; in __str2hostent()
156 limit = p + lenstr; in __str2hostent()
186 limit = memchr(p, '\n', lenstr - (p - instr)); in __str2hostent()
188 limit = instr + lenstr; in __str2hostent()
248 if (limit >= instr + lenstr) in __str2hostent()
H A Dgetauthattr.c64 str2authattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2authattr() argument
70 if (lenstr >= buflen) in str2authattr()
80 if (buffer[lenstr] == '\n') in str2authattr()
81 buffer[lenstr] = '\0'; in str2authattr()
H A Dgetauuser.c68 str2auuser(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2auuser() argument
74 if (lenstr >= buflen) in str2auuser()
84 if (buffer[lenstr] == '\n') { in str2auuser()
85 buffer[lenstr] = '\0'; in str2auuser()
H A Dgetprofattr.c63 str2profattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2profattr() argument
69 if (lenstr >= buflen) in str2profattr()
78 if (buffer[lenstr] == '\n') in str2profattr()
79 buffer[lenstr] = '\0'; in str2profattr()
H A Dgetuserattr.c71 str2userattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2userattr() argument
77 if (lenstr >= buflen) in str2userattr()
87 if (buffer[lenstr] == '\n') { in str2userattr()
88 buffer[lenstr] = '\0'; in str2userattr()
H A Dgetrpcent_r.c119 str2rpcent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2rpcent() argument
128 (buffer >= instr && (instr + lenstr) > buffer)) in str2rpcent()
132 limit = p + lenstr; in str2rpcent()
190 rpc->r_aliases = _nss_netdb_aliases(p, (int)(lenstr - (p - instr)), in str2rpcent()
H A Dgethostent6.c57 str2hostent6(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2hostent6() argument
59 return (__str2hostent(AF_INET6, instr, lenstr, ent, buffer, buflen)); in str2hostent6()
H A Dgethostent_r.c52 str2hostent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2hostent() argument
54 return (__str2hostent(AF_INET, instr, lenstr, ent, buffer, buflen)); in str2hostent()
H A Dgetexecattr.c95 str2execattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2execattr() argument
101 if (lenstr >= buflen) in str2execattr()
111 if (buffer[lenstr] == '\n') { in str2execattr()
112 buffer[lenstr] = '\0'; in str2execattr()
/titanic_44/usr/src/lib/print/libprint/common/
H A Dnss_printer.c78 str2printer(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2printer() argument
80 if (lenstr + 1 > buflen) in str2printer()
90 (void) memcpy(buffer, instr, lenstr); in str2printer()
91 buffer[lenstr] = '\0'; in str2printer()
/titanic_44/usr/src/psm/stand/boot/sparc/common/
H A Dwanboot.c415 char *lenstr; in read_digest() local
425 lenstr = http_get_header_value(handle, CONTENT_LENGTH); in read_digest()
426 if (lenstr == NULL) { in read_digest()
431 digest_size = (size_t)strtol(lenstr, NULL, 10); in read_digest()
432 free(lenstr); in read_digest()
827 char *lenstr; in process_miniinfo() local
837 lenstr = http_get_header_value(handle, CONTENT_LENGTH); in process_miniinfo()
838 if (lenstr == NULL) { in process_miniinfo()
843 cnt = (size_t)strtol(lenstr, NULL, 10); in process_miniinfo()
844 free(lenstr); in process_miniinfo()
[all …]
/titanic_44/usr/src/lib/passwdutil/
H A Dswitch_utils.c293 str2passwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2passwd() argument
299 if (lenstr + 1 > buflen) { in str2passwd()
306 (void) memcpy(buffer, instr, lenstr); in str2passwd()
307 buffer[lenstr] = '\0'; in str2passwd()
517 str2spwd(instr, lenstr, ent, buffer, buflen) in str2spwd() argument
519 int lenstr;
529 limit = p + lenstr;
530 if ((p = memchr(instr, ':', lenstr)) == 0 ||
533 lencopy = lenstr;
/titanic_44/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c49 nis_str2spent(instr, lenstr, ent, buffer, buflen) in nis_str2spent() argument
51 int lenstr;
62 if ((p = memchr(instr, ':', lenstr)) == 0) {
65 if ((q = memchr(p + 1, ':', lenstr - (p + 1 - instr))) == 0) {
/titanic_44/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c180 str2spwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2spwd() argument
188 limit = p + lenstr; in str2spwd()
189 if ((p = memchr(instr, ':', lenstr)) == 0 || in str2spwd()
192 lencopy = (size_t)lenstr; in str2spwd()
H A Dgetgrnam_r.c315 str2group(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2group() argument
323 if (lenstr + 1 > buflen) in str2group()
332 (void) memmove(buffer, instr, lenstr); in str2group()
333 buffer[lenstr] = '\0'; in str2group()
354 memlist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *)); in str2group()
H A Dgetpwnam_r.c241 str2passwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2passwd() argument
248 if (lenstr + 1 > buflen) in str2passwd()
257 (void) memmove(buffer, instr, lenstr); in str2passwd()
258 buffer[lenstr] = '\0'; in str2passwd()
/titanic_44/usr/src/lib/libtsnet/common/
H A Dtsol_gettpent.c167 str_to_tpstr(const char *instr, int lenstr, void *entp, char *buffer, in str_to_tpstr() argument
176 (buffer >= instr && (instr + lenstr) > buffer)) in str_to_tpstr()
178 if (lenstr >= buflen) in str_to_tpstr()
H A Dtsol_getrhent.c172 str_to_rhstr(const char *instr, int lenstr, void *entp, char *buffer, in str_to_rhstr() argument
182 (buffer >= instr && (instr + lenstr) > buffer)) in str_to_rhstr()
184 if (lenstr >= buflen) in str_to_rhstr()
/titanic_44/usr/src/lib/libproject/common/
H A Dgetprojent.c378 str2project(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2project() argument
386 if (lenstr + 1 > buflen) in str2project()
392 (void) memcpy(buffer, instr, lenstr); in str2project()
393 buffer[lenstr] = '\0'; in str2project()
459 uglist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *)); in str2project()
/titanic_44/usr/src/lib/print/libpapi-dynamic/common/
H A Dnss.c377 str2printer(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2printer() argument
379 if (lenstr + 1 > buflen) in str2printer()
389 (void) memcpy(buffer, instr, lenstr); in str2printer()
390 buffer[lenstr] = '\0'; in str2printer()
/titanic_44/usr/src/lib/libnsl/key/
H A Dpublickey.c119 str2key(const char *instr, int lenstr, in str2key() argument
121 if (lenstr + 1 > buflen) in str2key()
126 (void) memcpy(buffer, instr, lenstr); in str2key()
127 buffer[lenstr] = '\0'; in str2key()

12