Lines Matching defs:retp
89 struct nd_addrlist *retp; /* the return structure */
131 if ((retp = malloc(sizeof (struct nd_addrlist))) == NULL) {
141 retp->n_cnt = 1;
142 if ((retp->n_addrs = malloc(sizeof (struct netbuf))) == NULL) {
143 free(retp);
148 netbufp = retp->n_addrs;
158 free(retp);
163 return (retp);
180 struct nd_hostservlist *retp; /* the return structure */
235 if ((retp = malloc(sizeof (struct nd_hostservlist))) == NULL) {
240 retp->h_cnt = nhost;
241 retp->h_hostservs = calloc(nhost, sizeof (struct nd_hostserv));
242 if (retp->h_hostservs == NULL) {
243 free(retp);
253 nd_hostservp = retp->h_hostservs;
258 netdir_free(retp, ND_HOSTSERVLIST);
267 return (retp);
283 char *retp; /* pointer the return string */
292 if ((retp = malloc(BUFSIZ)) == NULL) {
296 to = retp;
314 return (retp);
328 struct netbuf *retp; /* the return structure */
359 if ((retp = malloc(sizeof (struct netbuf))) == NULL) {
364 retp->maxlen = retp->len = (int)(to - holdp);
365 retp->buf = holdp;
366 return (retp);