From 570b5a6920072fdbba634134df5ce216e9a9bb79 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Tue, 29 Aug 2017 11:40:43 +0200 Subject: [PATCH] libc_resolv/_lxip: fix undefined references... ... to Libc::Plugin::getdirentries, Libc::Plugin::mmap, and Libc::Plugin::msync. Ref #2490 --- repos/dde_linux/src/lib/libc_lxip/plugin.cc | 20 ++++++++++++++++++++ repos/libports/src/lib/libc_resolv/plugin.cc | 19 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/repos/dde_linux/src/lib/libc_lxip/plugin.cc b/repos/dde_linux/src/lib/libc_lxip/plugin.cc index e57fc7975..e9899b7a0 100644 --- a/repos/dde_linux/src/lib/libc_lxip/plugin.cc +++ b/repos/dde_linux/src/lib/libc_lxip/plugin.cc @@ -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; + } }; diff --git a/repos/libports/src/lib/libc_resolv/plugin.cc b/repos/libports/src/lib/libc_resolv/plugin.cc index 23a75a32b..89702dcc5 100644 --- a/repos/libports/src/lib/libc_resolv/plugin.cc +++ b/repos/libports/src/lib/libc_resolv/plugin.cc @@ -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 */