Lines Matching refs:linep

131 _nsw_getoneconfig_v1(const char *name, char *linep, enum __nsw_parse_err *errp)
132 /* linep Nota Bene: not const char * */
151 /* linep points to a naming service name */
156 if (*linep == '\0' || *linep == '\n') {
178 if (tokenp = skip(&linep, '[')) { /* got criteria */
181 if (!islabel(*linep))
190 /* linep points to a switch_err */
195 if ((tokenp = skip(&linep, '=')) == NULL) {
200 if (!islabel(*linep))
203 /* linep points to the string following '=' */
204 p = labelskip(linep);
209 *p++ = '\0'; /* null terminate linep */
221 if (strcasecmp(linep, __NSW_STR_RETURN) == 0)
223 else if (strcasecmp(linep,
239 } else if (strcasecmp(linep,
242 else if (alldigits(linep)) {
244 ntimes = atoi(linep);
284 linep = spaceskip(p);
285 if (*linep == '\0' || *linep == '\n')
289 linep = p;
294 * linep points to name service, but not null
297 p = labelskip(linep);
300 LIBC_STRDUP(lkp->service_name, linep);
308 LIBC_STRDUP(lkp->service_name, linep);
311 linep = spaceskip(p);
325 _nsw_getoneconfig(const char *name, char *linep, enum __nsw_parse_err *errp)
326 /* linep Nota Bene: not const char * */
345 /* linep points to a naming service name */
350 if (*linep == '\0' || *linep == '\n') {
370 if (tokenp = skip(&linep, '[')) { /* got criteria */
373 if (!islabel(*linep))
379 /* linep points to a switch_err */
381 if ((tokenp = skip(&linep, '=')) == NULL) {
386 if (!islabel(*linep))
389 /* linep points to the string following '=' */
390 p = labelskip(linep);
395 *p++ = '\0'; /* null terminate linep */
407 if (strcasecmp(linep, __NSW_STR_RETURN) == 0)
409 else if (strcasecmp(linep,
412 else if (strcasecmp(linep,
419 else if (alldigits(linep))
443 linep = spaceskip(p);
444 if (*linep == '\0' || *linep == '\n')
448 linep = p;
453 * linep points to name service, but not null
456 p = labelskip(linep);
459 LIBC_STRDUP(lkp->service_name, linep);
466 LIBC_STRDUP(lkp->service_name, linep);
468 linep = spaceskip(p);
516 char *linep;
545 while (linep = fgets(lineq, BUFSIZ, fp)) {
552 if ((comment = strchr(linep, '#')) != NULL) {
559 if ((*linep == '\0') || isspace(*linep)) {
562 if ((tokenp = skip(&linep, ':')) == NULL) {
568 if (cfp = _nsw_getoneconfig_v1(tokenp, linep, &line_err)) {
614 char *linep;
642 while (linep = fgets(lineq, BUFSIZ, fp)) {
649 if ((comment = strchr(linep, '#')) != NULL) {
656 if ((*linep == '\0') || isspace(*linep)) {
659 if ((tokenp = skip(&linep, ':')) == NULL) {
665 if (cfp = _nsw_getoneconfig(tokenp, linep, &line_err)) {