freebsd-dev/lib/libpthread/thread
deischen 01750324fa 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
2001-01-24 13:03:38 +00:00
..
Makefile.inc Add thread-safe wrapper for fpathconf(2) syscall. 2000-09-19 18:01:03 +00:00
thr_aio_suspend.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_destroy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_getdetachstate.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_getinheritsched.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_getschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_getschedpolicy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_getscope.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_getstackaddr.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_getstacksize.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setcreatesuspend_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setdetachstate.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setinheritsched.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setschedpolicy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setscope.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setstackaddr.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_attr_setstacksize.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_cancel.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_clean.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_close.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_cond.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_condattr_destroy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_condattr_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_creat.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_create.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_detach.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_equal.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_exit.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_fcntl.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_find_thread.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_fork.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_fsync.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_gc.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_getprio.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_getschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_info.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_join.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_kern.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_kill.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_mattr_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_mattr_kind_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_msync.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_multi_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_mutex_prioceiling.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_mutex_protocol.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_mutex.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_mutexattr_destroy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_nanosleep.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_once.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_open.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_pause.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_poll.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_priority_queue.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_private.h Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_read.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_readv.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_resume_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_rwlock.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_rwlockattr.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_select.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_self.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sem.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_seterrno.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_setprio.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_setschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sig.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sigaction.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sigmask.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sigpending.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sigprocmask.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sigsuspend.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sigwait.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_single_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_sleep.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_spec.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_spinlock.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_suspend_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_switch_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_system.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_tcdrain.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_vfork.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_wait4.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_wait.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_waitpid.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_write.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_writev.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
thr_yield.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00