libc_resolv/_lxip: fix undefined references...

... to Libc::Plugin::getdirentries, Libc::Plugin::mmap, and
Libc::Plugin::msync.

Ref #2490
This commit is contained in:
Martin Stein 2017-08-29 11:40:43 +02:00 committed by Christian Helmuth
parent 3c4709fcc7
commit 570b5a6920
2 changed files with 39 additions and 0 deletions

View File

@ -164,6 +164,26 @@ struct Plugin : Libc::Plugin
int retrieve_and_clear_fds(int nfds, struct fd_set *fds, struct fd_set *in);
int translate_msg_flags(int bsd_flags);
int translate_ops_linux(int optname);
::ssize_t getdirentries(Libc::File_descriptor *fd, char *buf, ::size_t nbytes,
::off_t *basep)
{
Genode::error(__FILE__, ":", __LINE__, " ", __func__, "not implemented");
return 0UL;
}
void *mmap(void *addr, ::size_t length, int prot, int flags,
Libc::File_descriptor *, ::off_t offset)
{
Genode::error(__FILE__, ":", __LINE__, " ", __func__, "not implemented");
return nullptr;
}
int msync(void *addr, ::size_t len, int flags)
{
Genode::error(__FILE__, ":", __LINE__, " ", __func__, "not implemented");
return 0;
}
};

View File

@ -79,6 +79,25 @@ namespace {
return ::libc_freeaddrinfo(res);
}
::ssize_t getdirentries(Libc::File_descriptor *fd, char *buf, ::size_t nbytes,
::off_t *basep)
{
Genode::error(__FILE__, ":", __LINE__, " ", __func__, "not implemented");
return 0UL;
}
void *mmap(void *addr, ::size_t length, int prot, int flags,
Libc::File_descriptor *, ::off_t offset)
{
Genode::error(__FILE__, ":", __LINE__, " ", __func__, "not implemented");
return nullptr;
}
int msync(void *addr, ::size_t len, int flags)
{
Genode::error(__FILE__, ":", __LINE__, " ", __func__, "not implemented");
return 0;
}
};
} /* unnamed namespace */