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

12

/osnet-11/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.c182 str2ether(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
190 limit = p + lenstr;
H A Dnetmasks.c224 str2addr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
234 limit = p + lenstr;
/osnet-11/usr/src/lib/libnsl/nss/
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 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 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)),
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetauuser.c61 str2auuser(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
67 if (lenstr >= buflen)
77 if (buffer[lenstr] == '\n') {
78 buffer[lenstr] = '\0';
H A Dgetauthattr.c60 _str2authattr(const char *instr, int lenstr, void *ent, char *buf, int buflen) argument
66 if (lenstr >= buflen)
70 (void) memcpy(buf, instr, lenstr);
73 buf[lenstr] = '\0';
H A Dgetprofattr.c60 _str2profattr(const char *instr, int lenstr, void *ent, char *buffer, argument
67 if (lenstr >= buflen)
71 (void) memcpy(buffer, instr, lenstr);
74 buffer[lenstr] = '\0';
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 Dgetuserattr.c70 _str2userattr(const char *instr, int lenstr, void *ent, char *buf, int buflen) argument
76 if (lenstr >= buflen)
80 (void) memcpy(buf, instr, lenstr);
83 buf[lenstr] = '\0';
H A Dgetgrnam_r.c314 str2group(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
322 if (lenstr + 1 > buflen)
331 (void) memmove(buffer, instr, lenstr);
332 buffer[lenstr] = '\0';
353 memlist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *));
H A Dgetexecattr.c96 _str2execattr(const char *instr, int lenstr, void *ent, char *buf, int buflen) argument
103 if (lenstr >= buflen)
107 (void) memcpy(buf, instr, lenstr);
110 buf[lenstr] = '\0';
124 * place and such that lenstr < buflen.
131 int nlen = buf + lenstr - nbuf;
/osnet-11/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;
/osnet-11/usr/src/lib/libtsnet/common/
H A Dtsol_gettpent.c162 str_to_tpstr(const char *instr, int lenstr, void *entp, char *buffer, argument
171 (buffer >= instr && (instr + lenstr) > buffer))
173 if (lenstr >= buflen)
H A Dtsol_getrhent.c168 str_to_rhstr(const char *instr, int lenstr, void *entp, char *buffer, argument
179 (buffer >= instr && (instr + lenstr) > buffer))
181 if (lenstr >= buflen)
/osnet-11/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c46 nis_str2spent(const char *instr, int lenstr, void *ent, char *buffer, argument
55 if ((p = memchr(instr, ':', lenstr)) == 0) {
58 if ((q = memchr(p + 1, ':', lenstr - (p + 1 - instr))) == 0) {
/osnet-11/usr/src/lib/libproject/common/
H A Dgetprojent.c375 _str2project(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
383 if (lenstr + 1 > buflen)
389 (void) memcpy(buffer, instr, lenstr);
390 buffer[lenstr] = '\0';
456 uglist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *));
/osnet-11/usr/src/lib/libnsl/key/
H A Dpublickey.c116 str2key(const char *instr, int lenstr, argument
118 if (lenstr + 1 > buflen)
123 (void) memcpy(buffer, instr, lenstr);
124 buffer[lenstr] = '\0';
/osnet-11/usr/src/lib/libnisdb/
H A Dldap_xdr.c92 char *lenstr, *tmp; local
131 if ((lenstr = strrchr(buf, '.')) == NULL) {
137 i = atoi(lenstr + 1);
138 strcpy(lenstr, domainname + i);
/osnet-11/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,
66 int lenstr,
75 if (lenstr >= buflen)
64 str2auuser_s( const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument

Completed in 61 milliseconds

12