/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | bootparams_getbyname.c | 74 int lenstr, in str2bootent() argument 83 (buffer >= instr && (instr + lenstr) > buffer)) { in str2bootent() 87 limit = p + lenstr; in str2bootent() 97 lenstr -= (p - instr); in str2bootent() 98 if (buflen <= lenstr) { /* not enough buffer */ in str2bootent() 101 (void) memcpy(buffer, p, lenstr); in str2bootent() 102 buffer[lenstr] = '\0'; in str2bootent()
|
H A D | getprotoent_r.c | 127 str2protoent(const char *instr, int lenstr, in str2protoent() argument 138 (buffer >= instr && (instr + lenstr) > buffer)) { in str2protoent() 143 limit = p + lenstr; in str2protoent() 208 proto->p_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr), in str2protoent()
|
H A D | getnetent_r.c | 132 str2netent(const char *instr, int lenstr, in str2netent() argument 142 (buffer >= instr && (instr + lenstr) > buffer)) { in str2netent() 147 limit = p + lenstr; in str2netent() 213 net->n_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr), in str2netent()
|
H A D | ether_addr.c | 183 str2ether(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2ether() argument 191 limit = p + lenstr; in str2ether()
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 104 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, in __str2hostent() argument 117 (buffer >= instr && (instr + lenstr) > buffer)) in __str2hostent() 150 while (lenstr > 0 && p[lenstr - 1] == '\n') in __str2hostent() 151 lenstr--; in __str2hostent() 154 limit = p + lenstr; in __str2hostent() 184 limit = memchr(p, '\n', lenstr - (p - instr)); in __str2hostent() 186 limit = instr + lenstr; in __str2hostent() 246 if (limit >= instr + lenstr) in __str2hostent()
|
H A D | getauthattr.c | 62 str2authattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2authattr() argument 68 if (lenstr >= buflen) in str2authattr() 78 if (buffer[lenstr] == '\n') in str2authattr() 79 buffer[lenstr] = '\0'; in str2authattr()
|
H A D | getauuser.c | 66 str2auuser(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2auuser() argument 72 if (lenstr >= buflen) in str2auuser() 82 if (buffer[lenstr] == '\n') { in str2auuser() 83 buffer[lenstr] = '\0'; in str2auuser()
|
H A D | getprofattr.c | 61 str2profattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2profattr() argument 67 if (lenstr >= buflen) in str2profattr() 76 if (buffer[lenstr] == '\n') in str2profattr() 77 buffer[lenstr] = '\0'; in str2profattr()
|
H A D | getuserattr.c | 69 str2userattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2userattr() argument 75 if (lenstr >= buflen) in str2userattr() 85 if (buffer[lenstr] == '\n') { in str2userattr() 86 buffer[lenstr] = '\0'; in str2userattr()
|
H A D | getrpcent_r.c | 117 str2rpcent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2rpcent() argument 126 (buffer >= instr && (instr + lenstr) > buffer)) in str2rpcent() 130 limit = p + lenstr; in str2rpcent() 188 rpc->r_aliases = _nss_netdb_aliases(p, (int)(lenstr - (p - instr)), in str2rpcent()
|
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()
|
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()
|
H A D | getexecattr.c | 95 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()
|
/illumos-gate/usr/src/lib/print/libprint/common/ |
H A D | nss_printer.c | 76 str2printer(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2printer() argument 78 if (lenstr + 1 > buflen) in str2printer() 88 (void) memcpy(buffer, instr, lenstr); in str2printer() 89 buffer[lenstr] = '\0'; in str2printer()
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | switch_utils.c | 293 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;
|
/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 49 int lenstr; 60 if ((p = memchr(instr, ':', lenstr)) == 0) { 63 if ((q = memchr(p + 1, ':', lenstr - (p + 1 - instr))) == 0) {
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getspent_r.c | 179 str2spwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2spwd() argument 187 limit = p + lenstr; in str2spwd() 188 if ((p = memchr(instr, ':', lenstr)) == 0 || in str2spwd() 191 lencopy = (size_t)lenstr; in str2spwd()
|
H A D | getgrnam_r.c | 316 str2group(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2group() argument 324 if (lenstr + 1 > buflen) in str2group() 333 (void) memmove(buffer, instr, lenstr); in str2group() 334 buffer[lenstr] = '\0'; in str2group() 355 memlist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *)); in str2group()
|
H A D | getpwnam_r.c | 242 str2passwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2passwd() argument 249 if (lenstr + 1 > buflen) in str2passwd() 258 (void) memmove(buffer, instr, lenstr); in str2passwd() 259 buffer[lenstr] = '\0'; in str2passwd()
|
/illumos-gate/usr/src/lib/libproject/common/ |
H A D | getprojent.c | 376 str2project(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2project() argument 384 if (lenstr + 1 > buflen) in str2project() 390 (void) memcpy(buffer, instr, lenstr); in str2project() 391 buffer[lenstr] = '\0'; in str2project() 457 uglist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *)); in str2project()
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_gettpent.c | 165 str_to_tpstr(const char *instr, int lenstr, void *entp, char *buffer, in str_to_tpstr() argument 174 (buffer >= instr && (instr + lenstr) > buffer)) in str_to_tpstr() 176 if (lenstr >= buflen) in str_to_tpstr()
|
H A D | tsol_getrhent.c | 170 str_to_rhstr(const char *instr, int lenstr, void *entp, char *buffer, in str_to_rhstr() argument 180 (buffer >= instr && (instr + lenstr) > buffer)) in str_to_rhstr() 182 if (lenstr >= buflen) in str_to_rhstr()
|
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | nss.c | 377 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()
|
/illumos-gate/usr/src/lib/libnsl/key/ |
H A D | publickey.c | 119 str2key(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2key() argument 121 if (lenstr + 1 > buflen) in str2key() 126 (void) memcpy(buffer, instr, lenstr); in str2key() 127 buffer[lenstr] = '\0'; in str2key()
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | compat_common.c | 51 extern int str2passwd(const char *instr, int lenstr, void *ent, 53 extern int str2spwd(const char *instr, int lenstr, void *ent, 55 extern int str2group(const char *instr, int lenstr, void *ent, 71 int lenstr, in str2auuser_s() argument 80 if (lenstr >= buflen) in str2auuser_s() 90 int lenstr, in str2userattr_s() argument 99 if (lenstr >= buflen) in str2userattr_s()
|