Lines Matching defs:linep
46 const char *linep, *limit;
49 linep = line;
55 while (*keyp && linep < limit && *keyp == *linep) {
57 linep++;
59 return (linep < limit && *keyp == '\0' && *linep == ':');
73 const char *linep, *limit, *end;
76 linep = line;
83 while (linep < limit && *linep++ != ':') /* skip groupname */
85 while (linep < limit && *linep++ != ':') /* skip password */
87 if (linep == limit)
91 end = linep;
92 gr_gid = strtoul(linep, (char **)&end, 10);
95 if (linep == end || gr_gid > UINT32_MAX)
120 char *linep, *limit, *gidp;
137 linep = line;
140 while (linep < limit && *linep++ != ':') /* skip groupname */
142 while (linep < limit && *linep++ != ':') /* skip password */
144 if (linep == limit)
147 gidp = linep;
148 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */
149 oldgidlen = linep - gidp;
150 if (linep >= limit || oldgidlen == 0)
161 (void) bcopy(linep, gidp + idlen, limit - linep + extra_chars);