mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-20 08:03:56 +00:00
libc_resolv/_lxip: fix undefined references...
... to Libc::Plugin::getdirentries, Libc::Plugin::mmap, and Libc::Plugin::msync. Ref #2490
This commit is contained in:
committed by
Christian Helmuth
parent
3c4709fcc7
commit
570b5a6920
@ -164,6 +164,26 @@ struct Plugin : Libc::Plugin
|
|||||||
int retrieve_and_clear_fds(int nfds, struct fd_set *fds, struct fd_set *in);
|
int retrieve_and_clear_fds(int nfds, struct fd_set *fds, struct fd_set *in);
|
||||||
int translate_msg_flags(int bsd_flags);
|
int translate_msg_flags(int bsd_flags);
|
||||||
int translate_ops_linux(int optname);
|
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;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,6 +79,25 @@ namespace {
|
|||||||
return ::libc_freeaddrinfo(res);
|
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 */
|
} /* unnamed namespace */
|
||||||
|
Reference in New Issue
Block a user