mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-18 17:00:26 +00:00
libc: some symbol cleanups
This commit is contained in:
parent
d409b0e98b
commit
3b9f022f1c
@ -12,7 +12,7 @@ FILTER_OUT_S += fabs.S modf.S
|
||||
FILTER_OUT_C += frexp.c
|
||||
|
||||
SRC_S = $(filter-out $(FILTER_OUT_S),$(notdir $(wildcard $(LIBC_GEN_AMD64_DIR)/*.S)))
|
||||
SRC_C += flt_rounds.c
|
||||
SRC_C += $(filter-out $(FILTER_OUT_C),$(notdir $(wildcard $(LIBC_GEN_AMD64_DIR)/*.c)))
|
||||
|
||||
vpath %.c $(LIBC_GEN_AMD64_DIR)
|
||||
vpath %.S $(LIBC_GEN_AMD64_DIR)
|
||||
|
@ -47,9 +47,7 @@ DUMMY(int , -1, chown, (const char *, uid_t, gid_t))
|
||||
DUMMY(int , -1, chroot, (const char *))
|
||||
DUMMY(char *, 0, crypt, (const char *, const char *))
|
||||
DUMMY(DB * , 0, dbopen, (const char *, int, int, DBTYPE, const void *))
|
||||
DUMMY(int , -1, dup, (int))
|
||||
DUMMY(u_int32_t, 0, __default_hash, (const void *, size_t));
|
||||
DUMMY(int , -1, dup2, (int, int))
|
||||
DUMMY(void , , endpwent, (void))
|
||||
DUMMY(int , 0, fchmod, (int, mode_t))
|
||||
DUMMY(int , -1, fchown, (int, uid_t, gid_t))
|
||||
@ -86,7 +84,6 @@ DUMMY(int , -1, mkfifo, (const char *, mode_t))
|
||||
DUMMY(int , -1, mknod, (const char *, mode_t, dev_t))
|
||||
DUMMY(int , -1, mprotect, (const void *, size_t, int))
|
||||
DUMMY(void *, 0, ___mtctxres, (void))
|
||||
DUMMY(int , -1, nanosleep, (const timespec *, timespec *))
|
||||
DUMMY(void *, 0, __nsdefaultsrc, (void))
|
||||
DUMMY(int , -1, _nsdispatch, (void))
|
||||
DUMMY(long , -1, pathconf, (const char *, int))
|
||||
@ -96,7 +93,6 @@ DUMMY(void *, 0, sbrk, (intptr_t))
|
||||
DUMMY(int , -1, sched_setparam, (pid_t, const sched_param *))
|
||||
DUMMY(int , -1, sched_setscheduler, (pid_t, int, const sched_param *))
|
||||
DUMMY(int , -1, sched_yield, (void))
|
||||
DUMMY(int , -1, _select, (void))
|
||||
DUMMY(int , -1, __semctl, (void))
|
||||
DUMMY(int , -1, setcontext, (const ucontext_t *))
|
||||
DUMMY(int , -1, setegid, (uid_t))
|
||||
|
@ -39,3 +39,10 @@ int _nanosleep(const struct timespec *req, struct timespec *rem)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
extern "C" __attribute__((weak))
|
||||
int nanosleep(const struct timespec *req, struct timespec *rem)
|
||||
{
|
||||
return _nanosleep(req, rem);
|
||||
}
|
||||
|
@ -154,8 +154,8 @@ static void select_notify()
|
||||
|
||||
extern "C" int
|
||||
__attribute__((weak))
|
||||
select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
fd_set *exceptfds, struct timeval *timeout)
|
||||
_select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
fd_set *exceptfds, struct timeval *timeout)
|
||||
{
|
||||
int nready;
|
||||
fd_set in_readfds, in_writefds, in_exceptfds;
|
||||
@ -274,11 +274,21 @@ select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
return nready;
|
||||
}
|
||||
|
||||
|
||||
extern "C" int
|
||||
__attribute__((weak))
|
||||
pselect(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
fd_set *exceptfds, const struct timespec *timeout,
|
||||
const sigset_t *sigmask)
|
||||
select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
fd_set *exceptfds, struct timeval *timeout)
|
||||
{
|
||||
return _select(nfds, readfds, writefds, exceptfds, timeout);
|
||||
}
|
||||
|
||||
|
||||
extern "C" int
|
||||
__attribute__((weak))
|
||||
_pselect(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
fd_set *exceptfds, const struct timespec *timeout,
|
||||
const sigset_t *sigmask)
|
||||
{
|
||||
struct timeval tv;
|
||||
sigset_t origmask;
|
||||
@ -297,3 +307,13 @@ pselect(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
|
||||
return nready;
|
||||
}
|
||||
|
||||
|
||||
extern "C" int
|
||||
__attribute__((weak))
|
||||
pselect(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
fd_set *exceptfds, const struct timespec *timeout,
|
||||
const sigset_t *sigmask)
|
||||
{
|
||||
return _pselect(nfds, readfds, writefds, exceptfds, timeout, sigmask);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user