Lines Matching defs:token

184 	char   *nexttok;		  /* next token to process	    */
402 * searchhost() looks for the specified token in the host file.
403 * The "field" parameter signifies which field to compare the token
404 * on, and returns all comma separated values associated with the token.
408 searchhost(struct netconfig *netconfigp, char *token, int field, char *hostbuf)
412 char *fileaddr; /* the first token in each line */
413 char *filehost; /* the second token in each line */
414 char *cmpstr; /* the string to compare token to */
416 char *nexttok; /* next token to process */
428 if ((strcmp(token, HOST_SELF_BIND) == 0) ||
429 (strcmp(token, HOST_SELF_CONNECT) == 0) ||
430 (strcmp(token, HOST_ANY) == 0) ||
431 (strcmp(token, LOCALHOST) == 0) ||
432 (uname(&utsname) >= 0 && strcmp(token, utsname.nodename) == 0)) {
475 * determine which to compare the token to, then
483 if (strcmp(token, cmpstr) == 0) {
509 * searchserv() looks for the specified token in the service file.
510 * The "field" parameter signifies which field to compare the token
511 * on, and returns the string associated with the token in servname.
515 searchserv(struct netconfig *netconfigp, char *token, int field, char *servname)
519 char *fileservice; /* the first token in each line */
520 char *fileport; /* the second token in each line */
521 char *cmpstr; /* the string to compare the token to */
522 char *retstr; /* temporarily hold token in line of file */
523 char *nexttok; /* next token to process */
534 * Loop through the services file looking for the token.
551 if (strcmp(token, cmpstr) == 0) {