Home
last modified time | relevance | path

Searched refs:linep (Results 1 – 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetservent.c50 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name()
62 while (linep < limit && !isspace(*linep)) in check_name()
65 while (linep < limit && isspace(*linep)) in check_name()
68 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name()
70 if (linep == limit || *linep != '/') in check_name()
76 while (linep < limit && !isspace(*linep)) in check_name()
97 while (linep < limit && isspace(*linep)) in check_name()
142 while (linep < limit && isspace(*linep)) in check_port()
147 while (linep < limit && !isspace(*linep) && *linep != '/') in check_port()
149 if (linep == limit || *linep != '/') in check_port()
[all …]
H A Dgetpwnam.c65 linep = line; in hash_pwuid()
71 while (linep < limit && *linep++ != ':') /* skip username */ in hash_pwuid()
73 while (linep < limit && *linep++ != ':') /* skip password */ in hash_pwuid()
79 end = linep; in hash_pwuid()
105 linep = line; in check_pwname()
111 while (*keyp && linep < limit && *keyp == *linep) { in check_pwname()
113 linep++; in check_pwname()
115 return (linep < limit && *keyp == '\0' && *linep == ':'); in check_pwname()
132 linep = line; in check_pwuid()
147 end = linep; in check_pwuid()
[all …]
H A Dgetgrent.c64 linep = line; in hash_grgid()
72 while (linep < limit && *linep++ != ':') /* skip password */ in hash_grgid()
78 end = linep; in hash_grgid()
103 linep = line; in check_grname()
109 while (*keyp && linep < limit && *keyp == *linep) { in check_grname()
111 linep++; in check_grname()
113 return (linep < limit && *keyp == '\0' && *linep == ':'); in check_grname()
130 linep = line; in check_grgid()
145 end = linep; in check_grgid()
191 linep = line; in validate_group_ids()
[all …]
H A Dether_addr.c60 while (linep < limit && isspace(*linep)) in check_host()
61 linep++; in check_host()
63 while (linep < limit && !isspace(*linep)) in check_host()
64 linep++; in check_host()
66 while (linep < limit && isspace(*linep)) in check_host()
67 linep++; in check_host()
75 linep++; in check_host()
121 while (linep < limit && isspace(*linep)) in check_ether()
122 linep++; in check_ether()
126 while (linep < limit && isxdigit(*linep)) { in check_ether()
[all …]
H A Dgetprojent.c62 const char *linep, *limit, *end; in hash_projid() local
64 linep = line; in hash_projid()
71 while (linep < limit && *linep++ != ':'); in hash_projid()
72 if (linep == limit) in hash_projid()
76 end = linep; in hash_projid()
78 if (linep == end) in hash_projid()
102 linep = line; in check_projid()
106 while (linep < limit && *linep++ != ':'); in check_projid()
109 if (linep == limit || linep == line + 1) in check_projid()
113 end = linep; in check_projid()
[all …]
H A Dgetnetent.c55 const char *limit, *linep, *addrstart; in check_addr() local
60 linep = line; in check_addr()
64 while (linep < limit && !isspace(*linep)) in check_addr()
65 linep++; in check_addr()
67 while (linep < limit && isspace(*linep)) in check_addr()
68 linep++; in check_addr()
69 if (linep == limit) in check_addr()
72 addrstart = linep; in check_addr()
73 while (linep < limit && !isspace(*linep)) in check_addr()
74 linep++; in check_addr()
[all …]
H A Dgethostent.c60 while (linep < limit && !isspace(*linep)) { in check_name()
63 linep++; in check_name()
68 while (linep < limit && isspace(*linep)) in check_name()
69 linep++; in check_name()
77 linep++; in check_name()
86 while (linep < limit && !isspace(*linep)) in check_name()
87 linep++; in check_name()
93 while (linep < limit && isspace(*linep)) in check_name()
94 linep++; in check_name()
108 while (linep < limit && !isspace(*linep)) in check_name()
[all …]
H A Dgetprinter.c44 const char *limit, *linep; in check_name() local
48 linep = line; in check_name()
54 while (linep+klen < limit && *linep != '|' && *linep != ':') { in check_name()
55 if ((strncmp(linep, keyp, klen) == 0) && in check_name()
56 ((*(linep + klen) == '|') || (*(linep + klen) == ':'))) { in check_name()
59 while (linep < limit && *linep != '|' && *linep != ':') in check_name()
60 linep++; in check_name()
61 if (linep >= limit || *linep == ':') in check_name()
63 if (*linep == '|') in check_name()
64 linep++; in check_name()
H A Dgetprotoent.c51 const char *limit, *linep; in check_addr() local
53 linep = line; in check_addr()
57 while (linep < limit && !isspace(*linep)) in check_addr()
58 linep++; in check_addr()
60 while (linep < limit && isspace(*linep)) in check_addr()
61 linep++; in check_addr()
62 if (linep == limit) in check_addr()
64 proto = (int)strtol(linep, NULL, 10); in check_addr()
H A Dgetrpcent.c51 const char *limit, *linep; in check_rpcnum() local
53 linep = line; in check_rpcnum()
57 while (linep < limit && !isspace(*linep)) in check_rpcnum()
58 linep++; in check_rpcnum()
60 while (linep < limit && isspace(*linep)) in check_rpcnum()
61 linep++; in check_rpcnum()
62 if (linep == limit) in check_rpcnum()
64 r_number = (int)strtol(linep, NULL, 10); in check_rpcnum()
H A Dtsol_getrhent.c40 const char *limit, *linep, *keyp; in check_addr() local
44 linep = line; in check_addr()
49 if (strstr(linep, "\\:") != NULL) in check_addr()
63 while (*keyp && linep < limit && *keyp == *linep) { in check_addr()
64 if ((ipv6 == 0 && *linep == ':') || in check_addr()
65 (ipv6 == 1 && prev != '\\' && *linep == ':')) in check_addr()
68 prev = *linep; in check_addr()
70 linep++; in check_addr()
72 if (*keyp == '\0' && linep < limit && ((ipv6 == 0 && *linep == ':') || in check_addr()
73 (ipv6 == 1 && prev != '\\' && *linep == ':'))) in check_addr()
H A Dnetmasks.c54 const char *limit, *linep, *addrstart; in check_addr() local
59 linep = line; in check_addr()
63 while (linep < limit && isspace(*linep)) in check_addr()
64 linep++; in check_addr()
66 addrstart = linep; in check_addr()
67 while (linep < limit && !isspace(*linep)) in check_addr()
68 linep++; in check_addr()
69 if (linep == limit) in check_addr()
71 addrlen = linep - addrstart; in check_addr()
H A Dfiles_common.c682 while (*keyp && linep < limit && *keyp == *linep) { in _nss_files_check_name_colon()
684 linep++; in _nss_files_check_name_colon()
707 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in _nss_files_check_name_aliases()
709 linep++; in _nss_files_check_name_aliases()
714 while (linep < limit && !isspace(*linep)) in _nss_files_check_name_aliases()
715 linep++; in _nss_files_check_name_aliases()
717 while (linep < limit && isspace(*linep)) in _nss_files_check_name_aliases()
718 linep++; in _nss_files_check_name_aliases()
725 while (linep < limit && !isspace(*linep)) in _nss_files_check_name_aliases()
726 linep++; in _nss_files_check_name_aliases()
[all …]
H A Dtsol_gettpent.c39 const char *limit, *linep, *keyp; in check_name() local
41 linep = line; in check_name()
46 while (*keyp && linep < limit && *linep != ':' && *keyp == *linep) { in check_name()
48 linep++; in check_name()
50 if (*keyp == '\0' && linep < limit && *linep == ':') in check_name()
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c81 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name2()
93 while (linep < limit && !isspace(*linep)) in check_name2()
96 while (linep < limit && isspace(*linep)) in check_name2()
99 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name2()
101 if (linep == limit || *linep != '/') in check_name2()
107 while (linep < limit && !isspace(*linep)) in check_name2()
128 while (linep < limit && isspace(*linep)) in check_name2()
238 while (linep < limit && isspace(*linep)) in check_port2()
243 while (linep < limit && !isspace(*linep) && *linep != '/') in check_port2()
245 if (linep == limit || *linep != '/') in check_port2()
[all …]
H A Dgetpwnam.c69 linep = *linepp; in validate_passwd_ids()
70 limit = linep + linelen; in validate_passwd_ids()
73 if (linelen == 0 || *linep == '+' || *linep == '-') in validate_passwd_ids()
76 while (linep < limit && *linep++ != ':') /* skip username */ in validate_passwd_ids()
78 while (linep < limit && *linep++ != ':') /* skip password */ in validate_passwd_ids()
80 if (linep == limit) in validate_passwd_ids()
83 uidp = linep; in validate_passwd_ids()
85 olduidlen = linep - uidp; in validate_passwd_ids()
89 gidp = linep; in validate_passwd_ids()
91 oldgidlen = linep - gidp; in validate_passwd_ids()
[all …]
H A Dgetgrent.c71 char *linep, *limit, *gidp, *newline; in validate_group_ids() local
76 linep = *linepp; in validate_group_ids()
77 limit = linep + linelen; in validate_group_ids()
80 if (linelen == 0 || *linep == '+' || *linep == '-') in validate_group_ids()
83 while (linep < limit && *linep++ != ':') /* skip groupname */ in validate_group_ids()
85 while (linep < limit && *linep++ != ':') /* skip password */ in validate_group_ids()
87 if (linep == limit) in validate_group_ids()
90 gidp = linep; in validate_group_ids()
92 oldgidlen = linep - gidp; in validate_group_ids()
108 *linepp, GID_NOBODY, linep); in validate_group_ids()
[all …]
H A Dnis_common.c653 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in _nss_nis_check_name_aliases()
655 linep++; in _nss_nis_check_name_aliases()
660 while (linep < limit && !isspace(*linep)) in _nss_nis_check_name_aliases()
661 linep++; in _nss_nis_check_name_aliases()
663 while (linep < limit && isspace(*linep)) in _nss_nis_check_name_aliases()
664 linep++; in _nss_nis_check_name_aliases()
671 while (linep < limit && !isspace(*linep)) in _nss_nis_check_name_aliases()
672 linep++; in _nss_nis_check_name_aliases()
674 while (linep < limit && isspace(*linep)) in _nss_nis_check_name_aliases()
675 linep++; in _nss_nis_check_name_aliases()
[all …]
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_util.c59 char *linep; in ddump() local
69 linep = linebuf; in ddump()
77 linep += len; in ddump()
89 linep += len; in ddump()
93 *linep = '-'; in ddump()
98 ++linep; in ddump()
113 linep++; in ddump()
119 *linep = ' '; in ddump()
121 ++linep; in ddump()
130 *linep = ch; in ddump()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnsparse.c159 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig_v1()
184 if (!islabel(*linep)) in _nsw_getoneconfig_v1()
288 if (*linep == '\0' || *linep == '\n') in _nsw_getoneconfig_v1()
292 linep = p; in _nsw_getoneconfig_v1()
353 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig()
447 if (*linep == '\0' || *linep == '\n') in _nsw_getoneconfig()
451 linep = p; in _nsw_getoneconfig()
519 char *linep; in __nsw_getconfig_v1() local
562 if ((*linep == '\0') || isspace(*linep)) { in __nsw_getconfig_v1()
617 char *linep; in __nsw_getconfig() local
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_nswparse.c206 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig_v1()
231 if (!islabel(*linep)) in _nsw_getoneconfig_v1()
250 if (!islabel(*linep)) in _nsw_getoneconfig_v1()
254 p = labelskip(linep); in _nsw_getoneconfig_v1()
273 else if (strcasecmp(linep, in _nsw_getoneconfig_v1()
294 ntimes = atoi(linep); in _nsw_getoneconfig_v1()
334 linep = spaceskip(p); in _nsw_getoneconfig_v1()
335 if (*linep == '\0' || *linep == '\n') in _nsw_getoneconfig_v1()
339 linep = p; in _nsw_getoneconfig_v1()
347 p = labelskip(linep); in _nsw_getoneconfig_v1()
[all …]
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dgetpwent.c75 char *linep, *limit, *uidp, *gidp; in validate_passwd_ids() local
85 linep = line; in validate_passwd_ids()
88 while (linep < limit && *linep++ != ':') /* skip username */ in validate_passwd_ids()
90 while (linep < limit && *linep++ != ':') /* skip password */ in validate_passwd_ids()
92 if (linep == limit) in validate_passwd_ids()
95 uidp = linep; in validate_passwd_ids()
97 olduidlen = linep - uidp; in validate_passwd_ids()
101 gidp = linep; in validate_passwd_ids()
103 oldgidlen = linep - gidp; in validate_passwd_ids()
104 if (linep >= limit || oldgidlen == 0) in validate_passwd_ids()
[all …]
H A Dgetgrent.c69 char *linep, *limit, *gidp; in validate_group_ids() local
77 linep = line; in validate_group_ids()
80 while (linep < limit && *linep++ != ':') /* skip groupname */ in validate_group_ids()
82 while (linep < limit && *linep++ != ':') /* skip password */ in validate_group_ids()
84 if (linep == limit) in validate_group_ids()
87 gidp = linep; in validate_group_ids()
88 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */ in validate_group_ids()
89 oldgidlen = linep - gidp; in validate_group_ids()
90 if (linep >= limit || oldgidlen == 0) in validate_group_ids()
101 (void) bcopy(linep, gidp + idlen, limit - linep + extra_chars); in validate_group_ids()
/illumos-gate/usr/src/cmd/line/
H A Dline.c54 char *linep, *linend; in main() local
57 linep = line; in main()
61 if (linep == linend) { in main()
63 linep = line; in main()
65 *linep++ = c; in main()
69 (void) write(1, line, linep-line); in main()
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dgetname.c85 getname(name, namelen, ignore, sep, linep, com) in getname() argument
90 char **linep;
97 lp = *linep;
102 *linep = lp - 1;
119 *linep = lp;
122 *linep = lp;

12