Lines Matching refs:retp
125 NCONF_HANDLE *retp; in setnetconfig() local
133 if ((retp = malloc(sizeof (NCONF_HANDLE))) == NULL) { in setnetconfig()
138 retp->nc_head = retp->nc_curr = netpp; in setnetconfig()
139 return ((void *)retp); in setnetconfig()
177 struct netconfig *retp; /* holds the return value */ in getnetconfig() local
188 retp = *(nconf_handlep->nc_curr); in getnetconfig()
189 if (retp && (strcmp(retp->nc_netid, "udp6") == 0 || in getnetconfig()
190 strcmp(retp->nc_netid, "tcp6") == 0)) { in getnetconfig()
200 if (retp != NULL) { in getnetconfig()
206 return (retp); in getnetconfig()
401 NCONF_HANDLE *retp; /* the return value */ in setnetpath() local
413 if ((retp = malloc(sizeof (NCONF_HANDLE))) == NULL) { in setnetpath()
488 free(retp); in setnetpath()
517 retp->nc_curr = retp->nc_head = rnetpp; in setnetpath()
518 return ((void *)retp); in setnetpath()
556 struct netconfig *retp; /* holds the return value */ in getnetpath() local
567 retp = *(nconf_handlep->nc_curr); in getnetpath()
568 if (retp && (strcmp(retp->nc_netid, "udp6") == 0 || in getnetpath()
569 strcmp(retp->nc_netid, "tcp6") == 0)) { in getnetpath()
579 if (retp) { in getnetpath()
586 return (retp); in getnetpath()
750 char *retp; /* the token to be returned */ in gettoken() local
771 retp = p; in gettoken()
797 return (strdup(retp)); in gettoken()