summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Peek <mp@FreeBSD.org>2003-08-10 23:52:59 +0000
committerMark Peek <mp@FreeBSD.org>2003-08-10 23:52:59 +0000
commit5f99cdde54dc94e4b3d78aab38d0ad72ee905517 (patch)
tree2039626af889c95760fd16f644d9bd91b331ed44 /lib
parent04c40a1cdb4ea7be2fd77755bb11706061c9519b (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/Makefile2
-rw-r--r--lib/libc_r/uthread/Makefile.inc1
-rw-r--r--lib/libc_r/uthread/uthread_kqueue.c6
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc_r/Makefile b/lib/libc_r/Makefile
index 76ccbe84d1a2..c694465140e1 100644
--- a/lib/libc_r/Makefile
+++ b/lib/libc_r/Makefile
@@ -30,7 +30,7 @@ HIDDEN_SYSCALLS= aio_suspend.o accept.o bind.o close.o connect.o dup.o dup2.o \
execve.o fchflags.o fchmod.o fchown.o fcntl.o \
flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \
getlogin.o getpeername.o getsockname.o getsockopt.o ioctl.o \
- kevent.o listen.o \
+ kevent.o kqueue.o listen.o \
msync.o nanosleep.o open.o poll.o read.o readv.o recvfrom.o \
recvmsg.o sched_yield.o select.o sendfile.o sendmsg.o sendto.o \
setsockopt.o shutdown.o sigaction.o \
diff --git a/lib/libc_r/uthread/Makefile.inc b/lib/libc_r/uthread/Makefile.inc
index 35ab4ea03274..ddfc90a2a243 100644
--- a/lib/libc_r/uthread/Makefile.inc
+++ b/lib/libc_r/uthread/Makefile.inc
@@ -71,6 +71,7 @@ SRCS+= \
uthread_join.c \
uthread_kern.c \
uthread_kevent.c \
+ uthread_kqueue.c \
uthread_kill.c \
uthread_listen.c \
uthread_main_np.c \
diff --git a/lib/libc_r/uthread/uthread_kqueue.c b/lib/libc_r/uthread/uthread_kqueue.c
index 15aceb0b1389..a50b3cd485cd 100644
--- a/lib/libc_r/uthread/uthread_kqueue.c
+++ b/lib/libc_r/uthread/uthread_kqueue.c
@@ -33,8 +33,6 @@
#include <pthread.h>
#include "pthread_private.h"
-__weak_reference(_kqueue, kqueue);
-
int
_kqueue(void)
{
@@ -42,7 +40,7 @@ _kqueue(void)
/* Create a kqueue: */
if ((fd = __sys_kqueue()) < 0) {
- /* Error creating socket. */
+ /* Error creating kqueue. */
/* Initialise the entry in the file descriptor table: */
} else if (_thread_fd_table_init(fd) != 0) {
@@ -51,3 +49,5 @@ _kqueue(void)
}
return (fd);
}
+
+__strong_reference(_kqueue, kqueue);