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.c48 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name()
60 while (linep < limit && !isspace(*linep)) in check_name()
63 while (linep < limit && isspace(*linep)) in check_name()
66 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name()
68 if (linep == limit || *linep != '/') in check_name()
74 while (linep < limit && !isspace(*linep)) in check_name()
95 while (linep < limit && isspace(*linep)) in check_name()
140 while (linep < limit && isspace(*linep)) in check_port()
145 while (linep < limit && !isspace(*linep) && *linep != '/') in check_port()
147 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.c58 while (linep < limit && isspace(*linep)) in check_host()
59 linep++; in check_host()
61 while (linep < limit && !isspace(*linep)) in check_host()
62 linep++; in check_host()
64 while (linep < limit && isspace(*linep)) in check_host()
65 linep++; in check_host()
73 linep++; in check_host()
119 while (linep < limit && isspace(*linep)) in check_ether()
120 linep++; in check_ether()
124 while (linep < limit && isxdigit(*linep)) { in check_ether()
[all …]
H A Dgetprojent.c60 const char *linep, *limit, *end; in hash_projid() local
62 linep = line; in hash_projid()
69 while (linep < limit && *linep++ != ':'); in hash_projid()
70 if (linep == limit) in hash_projid()
74 end = linep; in hash_projid()
76 if (linep == end) in hash_projid()
100 linep = line; in check_projid()
104 while (linep < limit && *linep++ != ':'); in check_projid()
107 if (linep == limit || linep == line + 1) in check_projid()
111 end = linep; in check_projid()
[all …]
H A Dgetnetent.c52 const char *limit, *linep, *addrstart; in check_addr() local
57 linep = line; in check_addr()
61 while (linep < limit && !isspace(*linep)) in check_addr()
62 linep++; in check_addr()
64 while (linep < limit && isspace(*linep)) in check_addr()
65 linep++; in check_addr()
66 if (linep == limit) in check_addr()
69 addrstart = linep; in check_addr()
70 while (linep < limit && !isspace(*linep)) in check_addr()
71 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.c42 const char *limit, *linep; in check_name() local
46 linep = line; in check_name()
52 while (linep+klen < limit && *linep != '|' && *linep != ':') { in check_name()
53 if ((strncmp(linep, keyp, klen) == 0) && in check_name()
54 ((*(linep + klen) == '|') || (*(linep + klen) == ':'))) { in check_name()
57 while (linep < limit && *linep != '|' && *linep != ':') in check_name()
58 linep++; in check_name()
59 if (linep >= limit || *linep == ':') in check_name()
61 if (*linep == '|') in check_name()
62 linep++; in check_name()
H A Dgetprotoent.c49 const char *limit, *linep; in check_addr() local
51 linep = line; in check_addr()
55 while (linep < limit && !isspace(*linep)) in check_addr()
56 linep++; in check_addr()
58 while (linep < limit && isspace(*linep)) in check_addr()
59 linep++; in check_addr()
60 if (linep == limit) in check_addr()
62 proto = (int)strtol(linep, NULL, 10); in check_addr()
H A Dgetrpcent.c49 const char *limit, *linep; in check_rpcnum() local
51 linep = line; in check_rpcnum()
55 while (linep < limit && !isspace(*linep)) in check_rpcnum()
56 linep++; in check_rpcnum()
58 while (linep < limit && isspace(*linep)) in check_rpcnum()
59 linep++; in check_rpcnum()
60 if (linep == limit) in check_rpcnum()
62 r_number = (int)strtol(linep, NULL, 10); in check_rpcnum()
H A Dtsol_getrhent.c38 const char *limit, *linep, *keyp; in check_addr() local
42 linep = line; in check_addr()
47 if (strstr(linep, "\\:") != NULL) in check_addr()
61 while (*keyp && linep < limit && *keyp == *linep) { in check_addr()
62 if ((ipv6 == 0 && *linep == ':') || in check_addr()
63 (ipv6 == 1 && prev != '\\' && *linep == ':')) in check_addr()
66 prev = *linep; in check_addr()
68 linep++; in check_addr()
70 if (*keyp == '\0' && linep < limit && ((ipv6 == 0 && *linep == ':') || in check_addr()
71 (ipv6 == 1 && prev != '\\' && *linep == ':'))) in check_addr()
H A Dnetmasks.c52 const char *limit, *linep, *addrstart; in check_addr() local
57 linep = line; in check_addr()
61 while (linep < limit && isspace(*linep)) in check_addr()
62 linep++; in check_addr()
64 addrstart = linep; in check_addr()
65 while (linep < limit && !isspace(*linep)) in check_addr()
66 linep++; in check_addr()
67 if (linep == limit) in check_addr()
69 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.c37 const char *limit, *linep, *keyp; in check_name() local
39 linep = line; in check_name()
44 while (*keyp && linep < limit && *linep != ':' && *keyp == *linep) { in check_name()
46 linep++; in check_name()
48 if (*keyp == '\0' && linep < limit && *linep == ':') in check_name()
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c79 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name2()
91 while (linep < limit && !isspace(*linep)) in check_name2()
94 while (linep < limit && isspace(*linep)) in check_name2()
97 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name2()
99 if (linep == limit || *linep != '/') in check_name2()
105 while (linep < limit && !isspace(*linep)) in check_name2()
126 while (linep < limit && isspace(*linep)) in check_name2()
236 while (linep < limit && isspace(*linep)) in check_port2()
241 while (linep < limit && !isspace(*linep) && *linep != '/') in check_port2()
243 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.c57 char *linep; in ddump() local
67 linep = linebuf; in ddump()
75 linep += len; in ddump()
87 linep += len; in ddump()
91 *linep = '-'; in ddump()
96 ++linep; in ddump()
111 linep++; in ddump()
117 *linep = ' '; in ddump()
119 ++linep; in ddump()
128 *linep = ch; in ddump()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnsparse.c158 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig_v1()
184 if (!islabel(*linep)) in _nsw_getoneconfig_v1()
287 if (*linep == '\0' || *linep == '\n') in _nsw_getoneconfig_v1()
291 linep = p; in _nsw_getoneconfig_v1()
353 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig()
448 if (*linep == '\0' || *linep == '\n') in _nsw_getoneconfig()
452 linep = p; in _nsw_getoneconfig()
520 char *linep; in __nsw_getconfig_v1() local
564 if ((*linep == '\0') || isspace(*linep)) { in __nsw_getconfig_v1()
621 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.c52 char *linep, *linend; in main() local
55 linep = line; in main()
59 if (linep == linend) { in main()
61 linep = line; in main()
63 *linep++ = c; in main()
67 (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