summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/Makefile
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-01-24 13:03:38 +0000
committerdeischen <deischen@FreeBSD.org>2001-01-24 13:03:38 +0000
commitee1de6a067c70fbd8cb73facd64c3b0b275f9f83 (patch)
tree71d2853de2f283028592fa4119320bab82c18d68 /lib/libpthread/Makefile
parent274959d59337555267567d4bde9a5a841c47d84f (diff)
downloadFreeBSD-src-ee1de6a067c70fbd8cb73facd64c3b0b275f9f83.zip
FreeBSD-src-ee1de6a067c70fbd8cb73facd64c3b0b275f9f83.tar.gz
Add weak definitions for wrapped system calls. In general:
_foo - wrapped system call foo - weak definition to _foo and for cancellation points: _foo - wrapped system call __foo - enter cancellation point, call _foo(), leave cancellation point foo - weak definition to __foo Change use of global _thread_run to call a function to get the currently running thread. Make all pthread_foo functions weak definitions to _pthread_foo, where _pthread_foo is the implementation. This allows an application to provide its own pthread functions. Provide slightly different versions of pthread_mutex_lock and pthread_mutex_init so that we can tell the difference between a libc mutex and an application mutex. Threads holding mutexes internal to libc should never be allowed to exit, call signal handlers, or cancel. Approved by: -arch
Diffstat (limited to 'lib/libpthread/Makefile')
-rw-r--r--lib/libpthread/Makefile17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index 9b20a24..d7b21bc 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -22,23 +22,6 @@ CFLAGS+=-D_PTHREADS_INVARIANTS
AINC= -I${.CURDIR}/../libc/${MACHINE_ARCH} -I${.CURDIR}/uthread
PRECIOUSLIB= yes
-#
-# This is a list of syscalls that are renamed as _thread_sys_{syscall}
-# so that libc_r can provide replacement functions.
-#
-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 \
- msync.o nanosleep.o nfssvc.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 sigaltstack.o \
- signanosleep.o sigpending.o sigprocmask.o sigreturn.o sigsetmask.o \
- sigsuspend.o socket.o \
- socketpair.o wait4.o write.o writev.o
-
-.include "${.CURDIR}/../libc/Makefile.inc"
.include "${.CURDIR}/man/Makefile.inc"
.include "${.CURDIR}/uthread/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"
OpenPOWER on IntegriCloud