gethost.c revision fb878b90432d2c87dbbd44a721924144187eb551
#include <stdio.h>
struct hostent *
gethostbyname(const char *name) {
int error;
return (he);
}
struct hostent *
int error;
return (he);
}
struct hostent *
int error;
return (he);
}
struct hostent *
gethostent(void) {
return (NULL);
}
void
sethostent(int stayopen) {
/* empty */
(void)stayopen;
}
void
endhostent(void) {
/* empty */
}
struct hostent *
int res;
return (NULL);
if (res != 0) {
return (NULL);
}
return (resbuf);
}
struct hostent *
int res;
return (NULL);
if (res != 0) {
return (NULL);
}
return (resbuf);
}
struct hostent *
(void)resbuf;
(void)buf;
(void)buflen;
*error = 0;
return (NULL);
}
void
sethostent_r(int stayopen) {
(void)stayopen;
/* empty */
}
void
endhostent_r(void) {
/* empty */
}
static int
char *cp;
char **ptr;
int i, n;
/* Find out the amount of space required to store the answer. */
}
}
return (-1);
}
/* copy address size and type */
/* copy address list */
cp += n;
i++;
}
ptr++;
/* copy official name */
cp += n;
/* copy aliases */
cp += n;
}
return (0);
}