diff options
author | 2016-04-02 19:00:51 +0000 | |
---|---|---|
committer | 2016-04-02 19:00:51 +0000 | |
commit | 29088be8b13bc36bca8451826ff50171aa8a83c9 (patch) | |
tree | 615cd0fc2db37ee8c9ac70a26721acd9cb192d5f /lib/librthread/rthread_debug.c | |
parent | Use open(tty, O_WRONLY) + fdopen() instead of fopen(tty, "w") to (diff) | |
download | wireguard-openbsd-29088be8b13bc36bca8451826ff50171aa8a83c9.tar.xz wireguard-openbsd-29088be8b13bc36bca8451826ff50171aa8a83c9.zip |
Eliminate the need to explicitly invoke syscalls via their _thread_sys_*
aliases by using a macro REDIRECT_SYSCALL() to map the symbols. Apply
that to getthrid(), sysctl(), and issetugid() as well.
ok mpi@ beck@
Diffstat (limited to 'lib/librthread/rthread_debug.c')
-rw-r--r-- | lib/librthread/rthread_debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/librthread/rthread_debug.c b/lib/librthread/rthread_debug.c index bca185afbaf..b2c73a1a0f8 100644 --- a/lib/librthread/rthread_debug.c +++ b/lib/librthread/rthread_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_debug.c,v 1.3 2012/03/13 05:51:30 guenther Exp $ */ +/* $OpenBSD: rthread_debug.c,v 1.4 2016/04/02 19:00:51 guenther Exp $ */ /* $snafu: rthread_debug.c,v 1.2 2004/12/09 18:41:44 marc Exp $ */ /* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */ @@ -11,6 +11,8 @@ #include "rthread.h" +REDIRECT_SYSCALL(issetugid); + int _rthread_debug_level; /* |