Home
last modified time | relevance | path

Searched refs:lenstr (Results 1 – 25 of 34) sorted by last modified time

12

/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/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/libtsnet/common/
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()
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()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dnetmasks.c222 str2addr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2addr() argument
232 limit = p + lenstr; in str2addr()
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 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 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()
/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/libnsl/nss/
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 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 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 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 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 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()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ssldap/
H A Dldapsinit.c80 str2hostent(const char *instr, int lenstr, void *ent, char *buffer,
84 str2hostent6(const char *instr, int lenstr, void *ent, char *buffer,
/illumos-gate/usr/src/lib/libldap5/sources/ldap/prldap/
H A Dldappr-dns.c64 str2hostent(const char *instr, int lenstr, void *ent, char *buffer,
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_dbdefs.c138 _nss_netdb_aliases(const char *instr, int lenstr, char *buffer, int buflen) in _nss_netdb_aliases() argument
144 const char *instr_limit = instr + lenstr; in _nss_netdb_aliases()
1154 int lenstr, in str2packent() argument
1159 if (buflen <= lenstr) { /* not enough buffer */ in str2packent()
1162 (void) memmove(buffer, instr, lenstr); in str2packent()
1163 buffer[lenstr] = '\0'; in str2packent()
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()
/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/nsswitch/files/common/
H A Dgetnetgrent.c151 str2netgr(const char *instr, int lenstr, void *ent, char *buffer, int buflen) in str2netgr() argument
H A Dgethostent.c232 filter_ipv6(char *instr, int lenstr) { in filter_ipv6() argument
238 limit = p + lenstr; in filter_ipv6()
/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;

12