Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbootparams_getbyname.c74 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 Dgetprotoent_r.c127 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 Dgetnetent_r.c132 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 Dether_addr.c183 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 Dgethostent.c104 __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 Dgetauthattr.c62 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 Dgetauuser.c66 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 Dgetprofattr.c61 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 Dgetuserattr.c69 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 Dgetrpcent_r.c117 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 Dgethostent6.c55 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 Dgethostent_r.c50 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 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()
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_printer.c76 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 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;
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c47 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 Dgetspent_r.c179 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 Dgetgrnam_r.c316 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 Dgetpwnam_r.c242 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 Dgetprojent.c376 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 Dtsol_gettpent.c165 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 Dtsol_getrhent.c170 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 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()
/illumos-gate/usr/src/lib/libnsl/key/
H A Dpublickey.c119 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 Dcompat_common.c51 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()

12