Lines Matching refs:retp
127 NCONF_HANDLE *retp; in setnetconfig() local
135 if ((retp = malloc(sizeof (NCONF_HANDLE))) == NULL) { in setnetconfig()
140 retp->nc_head = retp->nc_curr = netpp; in setnetconfig()
141 return ((void *)retp); in setnetconfig()
179 struct netconfig *retp; /* holds the return value */ in getnetconfig() local
190 retp = *(nconf_handlep->nc_curr); in getnetconfig()
191 if (retp && (strcmp(retp->nc_netid, "udp6") == 0 || in getnetconfig()
192 strcmp(retp->nc_netid, "tcp6") == 0)) { in getnetconfig()
202 if (retp != NULL) { in getnetconfig()
208 return (retp); in getnetconfig()
403 NCONF_HANDLE *retp; /* the return value */ in setnetpath() local
415 if ((retp = malloc(sizeof (NCONF_HANDLE))) == NULL) { in setnetpath()
490 free(retp); in setnetpath()
519 retp->nc_curr = retp->nc_head = rnetpp; in setnetpath()
520 return ((void *)retp); in setnetpath()
558 struct netconfig *retp; /* holds the return value */ in getnetpath() local
569 retp = *(nconf_handlep->nc_curr); in getnetpath()
570 if (retp && (strcmp(retp->nc_netid, "udp6") == 0 || in getnetpath()
571 strcmp(retp->nc_netid, "tcp6") == 0)) { in getnetpath()
581 if (retp) { in getnetpath()
588 return (retp); in getnetpath()
752 char *retp; /* the token to be returned */ in gettoken() local
773 retp = p; in gettoken()
799 return (strdup(retp)); in gettoken()