Searched defs:lenstr (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbootparams_getbyname.c76 int lenstr,
85 (buffer >= instr && (instr + lenstr) > buffer)) {
89 limit = p + lenstr;
99 lenstr -= (p - instr);
100 if (buflen <= lenstr) { /* not enough buffer */
103 (void) memcpy(buffer, p, lenstr);
104 buffer[lenstr] = '\0';
74 str2bootent( const char *instr, int lenstr, void *ent, char *buffer, int buflen ) argument
H A Dgetnetent_r.c134 str2netent(const char *instr, int lenstr, argument
144 (buffer >= instr && (instr + lenstr) > buffer)) {
149 limit = p + lenstr;
215 net->n_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr),
H A Dgetprotoent_r.c129 str2protoent(const char *instr, int lenstr, argument
140 (buffer >= instr && (instr + lenstr) > buffer)) {
145 limit = p + lenstr;
210 proto->p_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr),
H A Dether_addr.c183 str2ether(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
191 limit = p + lenstr;
H A Dnetmasks.c224 str2addr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
234 limit = p + lenstr;
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgethostent6.c57 str2hostent6(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
59 return (__str2hostent(AF_INET6, instr, lenstr, ent, buffer, buflen));
H A Dgethostent_r.c52 str2hostent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
54 return (__str2hostent(AF_INET, instr, lenstr, ent, buffer, buflen));
H A Dgetauthattr.c64 str2authattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
70 if (lenstr >= buflen)
80 if (buffer[lenstr] == '\n')
81 buffer[lenstr] = '\0';
H A Dgetauuser.c68 str2auuser(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
74 if (lenstr >= buflen)
84 if (buffer[lenstr] == '\n') {
85 buffer[lenstr] = '\0';
H A Dgetprofattr.c63 str2profattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
69 if (lenstr >= buflen)
78 if (buffer[lenstr] == '\n')
79 buffer[lenstr] = '\0';
H A Dgetuserattr.c71 str2userattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
77 if (lenstr >= buflen)
87 if (buffer[lenstr] == '\n') {
88 buffer[lenstr] = '\0';
H A Dgethostent.c106 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, argument
119 (buffer >= instr && (instr + lenstr) > buffer))
152 while (lenstr > 0 && p[lenstr - 1] == '\n')
153 lenstr--;
156 limit = p + lenstr;
186 limit = memchr(p, '\n', lenstr - (p - instr));
188 limit = instr + lenstr;
248 if (limit >= instr + lenstr)
H A Dgetrpcent_r.c119 str2rpcent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
128 (buffer >= instr && (instr + lenstr) > buffer))
132 limit = p + lenstr;
190 rpc->r_aliases = _nss_netdb_aliases(p, (int)(lenstr - (p - instr)),
H A Dgetexecattr.c95 str2execattr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
101 if (lenstr >= buflen)
111 if (buffer[lenstr] == '\n') {
112 buffer[lenstr] = '\0';
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_printer.c78 str2printer(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
80 if (lenstr + 1 > buflen)
90 (void) memcpy(buffer, instr, lenstr);
91 buffer[lenstr] = '\0';
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_gettpent.c167 str_to_tpstr(const char *instr, int lenstr, void *entp, char *buffer, argument
176 (buffer >= instr && (instr + lenstr) > buffer))
178 if (lenstr >= buflen)
H A Dtsol_getrhent.c172 str_to_rhstr(const char *instr, int lenstr, void *entp, char *buffer, argument
182 (buffer >= instr && (instr + lenstr) > buffer))
184 if (lenstr >= buflen)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpwnam_r.c241 str2passwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
248 if (lenstr + 1 > buflen)
257 (void) memmove(buffer, instr, lenstr);
258 buffer[lenstr] = '\0';
H A Dgetspent_r.c180 str2spwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
188 limit = p + lenstr;
189 if ((p = memchr(instr, ':', lenstr)) == 0 ||
192 lencopy = (size_t)lenstr;
H A Dgetgrnam_r.c315 str2group(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
323 if (lenstr + 1 > buflen)
332 (void) memmove(buffer, instr, lenstr);
333 buffer[lenstr] = '\0';
354 memlist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *));
/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,
80 if (lenstr >= buflen)
90 int lenstr,
99 if (lenstr >= buflen)
69 str2auuser_s( const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
88 str2userattr_s( const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
/illumos-gate/usr/src/lib/passwdutil/
H A Dswitch_utils.c293 str2passwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
299 if (lenstr + 1 > buflen) {
306 (void) memcpy(buffer, instr, lenstr);
307 buffer[lenstr] = '\0';
517 str2spwd(instr, lenstr, ent, buffer, buflen)
519 int lenstr;
529 limit = p + lenstr;
530 if ((p = memchr(instr, ':', lenstr)) == 0 ||
533 lencopy = lenstr;
/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) argument
379 if (lenstr + 1 > buflen)
389 (void) memcpy(buffer, instr, lenstr);
390 buffer[lenstr] = '\0';
/illumos-gate/usr/src/lib/libproject/common/
H A Dgetprojent.c378 str2project(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
386 if (lenstr + 1 > buflen)
392 (void) memcpy(buffer, instr, lenstr);
393 buffer[lenstr] = '\0';
459 uglist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *));
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgethostent.c232 filter_ipv6(char *instr, int lenstr) { argument
238 limit = p + lenstr;

Completed in 119 milliseconds

12