Lines Matching defs:linep
47 const char *linep, *limit;
50 linep = line;
56 while (*keyp && linep < limit && *keyp == *linep) {
58 linep++;
60 return (linep < limit && *keyp == '\0' && *linep == ':');
74 const char *linep, *limit, *end;
77 linep = line;
84 while (linep < limit && *linep++ != ':') /* skip username */
86 while (linep < limit && *linep++ != ':') /* skip password */
88 if (linep == limit)
92 end = linep;
93 pw_uid = strtoul(linep, (char **)&end, 10);
96 if (linep == end || pw_uid > UINT32_MAX)
120 char *linep, *limit, *uidp, *gidp;
135 linep = line;
138 while (linep < limit && *linep++ != ':') /* skip username */
140 while (linep < limit && *linep++ != ':') /* skip password */
142 if (linep == limit)
145 uidp = linep;
146 uidl = strtoul(uidp, (char **)&linep, 10); /* grab uid */
147 olduidlen = linep - uidp;
148 if (++linep >= limit || olduidlen == 0)
151 gidp = linep;
152 gidl = strtoul(gidp, (char **)&linep, 10); /* grab gid */
153 oldgidlen = linep - gidp;
154 if (linep >= limit || oldgidlen == 0)
169 (void) bcopy(linep, uidp + idlen, limit - linep + extra_chars);