Lines Matching +defs:val +defs:buf
204 * Given buf, a null-terminated string containing the result of a successful
210 parse_netid(const char *buf, gid_t gid_array[], int maxgids, int *numgids_ptr)
218 while (isspace(*buf) || isdigit(*buf)) {
219 buf++;
222 if (*buf++ != ':') {
226 /* buf should now point to a comma-separated list of gids */
227 while (*buf != '\0' && *buf != '\n') {
229 value = strtol(buf, &buf_next, 10);
231 if (buf == buf_next) {
242 buf = buf_next;
243 if (*buf == ',') {
244 buf++;
264 char *val;
286 &val, &vallen, 0)) != NSS_SUCCESS) {
290 (void) strtok_r(val, "#", &lasts);
292 parse_res = parse_netid(val, argp->gid_array, argp->maxgids,
294 free(val);