aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/interposing_table.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-01-11 22:16:31 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-01-11 22:16:31 +0000
commit397d851d664c78683599ab7c46c44df85815a6d1 (patch)
tree03ec5a1da8c8dc62a7c7675c7ae5b550b9c53375 /lib/libc/sys/interposing_table.c
parente88f89a393ce3ba845154f2245934474f1d18e13 (diff)
downloadsrc-397d851d664c78683599ab7c46c44df85815a6d1.tar.gz
src-397d851d664c78683599ab7c46c44df85815a6d1.zip
Reduce the size of the interposing table and amount of
cancellation-handling code in the libthr. Translate some syscalls into their more generic counterpart, and remove translated syscalls from the table. List of the affected syscalls: creat, open -> openat raise -> thr_kill sleep, usleep -> nanosleep pause -> sigsuspend wait, wait3, waitpid -> wait4 Suggested and reviewed by: jilles (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=277032
Diffstat (limited to 'lib/libc/sys/interposing_table.c')
-rw-r--r--lib/libc/sys/interposing_table.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libc/sys/interposing_table.c b/lib/libc/sys/interposing_table.c
index 9987bf057a6c..d3037791b56b 100644
--- a/lib/libc/sys/interposing_table.c
+++ b/lib/libc/sys/interposing_table.c
@@ -44,17 +44,14 @@ interpos_func_t __libc_interposing[INTERPOS_MAX] = {
SLOT(aio_suspend, __sys_aio_suspend),
SLOT(close, __sys_close),
SLOT(connect, __sys_connect),
- SLOT(creat, __libc_creat),
SLOT(fcntl, __fcntl_compat),
SLOT(fsync, __sys_fsync),
SLOT(fork, __sys_fork),
SLOT(msync, __sys_msync),
SLOT(nanosleep, __sys_nanosleep),
- SLOT(open, __sys_open),
SLOT(openat, __sys_openat),
SLOT(poll, __sys_poll),
SLOT(pselect, __sys_pselect),
- SLOT(raise, __libc_raise),
SLOT(read, __sys_read),
SLOT(readv, __sys_readv),
SLOT(recvfrom, __sys_recvfrom),
@@ -71,14 +68,8 @@ interpos_func_t __libc_interposing[INTERPOS_MAX] = {
SLOT(sigwaitinfo, __sys_sigwaitinfo),
SLOT(swapcontext, __sys_swapcontext),
SLOT(system, __libc_system),
- SLOT(sleep, __libc_sleep),
SLOT(tcdrain, __libc_tcdrain),
- SLOT(usleep, __libc_usleep),
- SLOT(pause, __libc_pause),
- SLOT(wait, __libc_wait),
- SLOT(wait3, __libc_wait3),
SLOT(wait4, __sys_wait4),
- SLOT(waitpid, __libc_waitpid),
SLOT(write, __sys_write),
SLOT(writev, __sys_writev),
SLOT(_pthread_mutex_init_calloc_cb, _pthread_mutex_init_calloc_cb_stub),