freebsd-dev/lib/libc_r/uthread
Daniel Eischen e5106342c6 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
pthread_private.h Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_accept.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_aio_suspend.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_destroy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_getdetachstate.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_getinheritsched.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_getschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_getschedpolicy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_getscope.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_getstackaddr.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_getstacksize.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setcreatesuspend_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setdetachstate.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setinheritsched.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setprio.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setschedpolicy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setscope.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setstackaddr.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_attr_setstacksize.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_autoinit.cc Change REGENTS -> AUTHOR in the copyright. 2000-01-06 12:16:16 +00:00
uthread_bind.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_cancel.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_clean.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_close.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_cond.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_condattr_destroy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_condattr_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_connect.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_creat.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_create.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_detach.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_dup2.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_dup.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_equal.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_execve.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_exit.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fchflags.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fchmod.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fchown.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fcntl.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fd.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_file.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_find_thread.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_flock.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fork.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fpathconf.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fstat.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fstatfs.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_fsync.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_gc.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_getdirentries.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_getpeername.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_getprio.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_getschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_getsockname.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_getsockopt.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_info.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_ioctl.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_jmp.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_join.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_kern.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_kevent.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_kill.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_listen.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_mattr_init.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_mattr_kind_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_msync.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_multi_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_mutex_prioceiling.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_mutex_protocol.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_mutex.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_mutexattr_destroy.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_nanosleep.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_once.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_open.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_pause.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_pipe.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_poll.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_priority_queue.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_read.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_readv.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_recvfrom.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_recvmsg.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_resume_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_rwlock.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_rwlockattr.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_select.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_self.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sem.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sendfile.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sendmsg.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sendto.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_seterrno.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_setprio.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_setschedparam.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_setsockopt.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_shutdown.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sig.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigaction.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigblock.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigmask.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_signal.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigpending.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigprocmask.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigsetmask.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigsuspend.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sigwait.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_single_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_sleep.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_socket.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_socketpair.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_spec.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_spinlock.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_suspend_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_switch_np.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_system.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_tcdrain.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_vfork.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_wait4.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_wait.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_waitpid.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_write.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_writev.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00
uthread_yield.c Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00