Lines Matching defs:abuf
653 char *abuf = NULL, *abuf_start = NULL, *abuf_end;
756 abuf = (char *)malloc(args->buf.buflen);
757 if (abuf == NULL) {
761 abuf_start = abuf;
763 (void) memcpy(abuf, h_name, h_namelen);
764 abuf += h_namelen;
765 *abuf = '\0';
766 abuf = do_aliases(hp, abuf, abuf_end);
767 if (abuf == NULL) {
839 abuf = do_aliases(hp, abuf, abuf_end);
840 if (abuf == NULL) {
849 if (abuf && res == NSS_SUCCESS) {
851 /* abuf != NULL implies hp and abuf_start != NULL */
882 abuf - abuf_start, args->buf.buffer,
913 do_aliases(struct hostent *hp, char *abuf, char *end)
919 return (abuf);
923 if (abuf+len+1 >= end) {
926 *abuf++ = ' ';
927 (void) memcpy(abuf, *cp, len);
928 abuf += len;
930 *abuf = '\0';
932 return (abuf);