Lines Matching defs:retp
88 struct nd_addrlist *retp; /* the return structure */
130 if ((retp = malloc(sizeof (struct nd_addrlist))) == NULL) {
140 retp->n_cnt = 1;
141 if ((retp->n_addrs = malloc(sizeof (struct netbuf))) == NULL) {
142 free(retp);
147 netbufp = retp->n_addrs;
157 free(retp);
162 return (retp);
179 struct nd_hostservlist *retp; /* the return structure */
234 if ((retp = malloc(sizeof (struct nd_hostservlist))) == NULL) {
239 retp->h_cnt = nhost;
240 retp->h_hostservs = calloc(nhost, sizeof (struct nd_hostserv));
241 if (retp->h_hostservs == NULL) {
242 free(retp);
252 nd_hostservp = retp->h_hostservs;
257 netdir_free(retp, ND_HOSTSERVLIST);
266 return (retp);
282 char *retp; /* pointer the return string */
291 if ((retp = malloc(BUFSIZ)) == NULL) {
295 to = retp;
313 return (retp);
327 struct netbuf *retp; /* the return structure */
358 if ((retp = malloc(sizeof (struct netbuf))) == NULL) {
363 retp->maxlen = retp->len = (int)(to - holdp);
364 retp->buf = holdp;
365 return (retp);