libc: reintegrate libc_resolv library

Remove getaddrinfo and freeaddrinfo from the Libc::Plugin and get rid of
the extra libc_resolv library. Remove getaddrinfo/freeaddrinfo symbol
hiding patch for FreeBSD sources. Remove libc_resolv from Makefiles and
run scenarios.

Fix #2273
This commit is contained in:
Emery Hemingway
2017-09-14 14:00:36 -05:00
committed by Christian Helmuth
parent 170b532892
commit 8ca63d4a6e
35 changed files with 63 additions and 381 deletions

View File

@ -53,10 +53,6 @@ namespace Libc {
virtual bool supports_execve(char const *filename, char *const argv[],
char *const envp[]);
virtual bool supports_mkdir(const char *path, mode_t mode);
virtual bool supports_freeaddrinfo(struct ::addrinfo *res);
virtual bool supports_getaddrinfo(const char *node, const char *service,
const struct ::addrinfo *hints,
struct ::addrinfo **res);
virtual bool supports_open(const char *pathname, int flags);
virtual bool supports_pipe();
virtual bool supports_readlink(const char *path, char *buf, ::size_t bufsiz);
@ -95,13 +91,9 @@ namespace Libc {
char *const envp[]);
virtual int fstatfs(File_descriptor *, struct statfs *buf);
virtual int fcntl(File_descriptor *, int cmd, long arg);
virtual void freeaddrinfo(struct ::addrinfo *res);
virtual int fstat(File_descriptor *, struct stat *buf);
virtual int fsync(File_descriptor *);
virtual int ftruncate(File_descriptor *, ::off_t length);
virtual int getaddrinfo(const char *node, const char *service,
const struct ::addrinfo *hints,
struct ::addrinfo **res);
virtual ssize_t getdirentries(File_descriptor *, char *buf,
::size_t nbytes, ::off_t *basep);
virtual int getpeername(File_descriptor *,