9233c4d942
just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
128 lines
2.7 KiB
Makefile
128 lines
2.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
# uthread sources
|
|
.PATH: ${.CURDIR}/uthread
|
|
|
|
SRCS+= \
|
|
uthread_accept.c \
|
|
uthread_aio_suspend.c \
|
|
uthread_attr_destroy.c \
|
|
uthread_attr_init.c \
|
|
uthread_attr_getdetachstate.c \
|
|
uthread_attr_getinheritsched.c \
|
|
uthread_attr_getschedparam.c \
|
|
uthread_attr_getschedpolicy.c \
|
|
uthread_attr_getscope.c \
|
|
uthread_attr_getstackaddr.c \
|
|
uthread_attr_getstacksize.c \
|
|
uthread_attr_setcreatesuspend_np.c \
|
|
uthread_attr_setdetachstate.c \
|
|
uthread_attr_setinheritsched.c \
|
|
uthread_attr_setschedparam.c \
|
|
uthread_attr_setschedpolicy.c \
|
|
uthread_attr_setscope.c \
|
|
uthread_attr_setstackaddr.c \
|
|
uthread_attr_setstacksize.c \
|
|
uthread_autoinit.cc \
|
|
uthread_bind.c \
|
|
uthread_cancel.c \
|
|
uthread_clean.c \
|
|
uthread_close.c \
|
|
uthread_cond.c \
|
|
uthread_condattr_destroy.c \
|
|
uthread_condattr_init.c \
|
|
uthread_connect.c \
|
|
uthread_creat.c \
|
|
uthread_create.c \
|
|
uthread_detach.c \
|
|
uthread_dup.c \
|
|
uthread_dup2.c \
|
|
uthread_equal.c \
|
|
uthread_execve.c \
|
|
uthread_exit.c \
|
|
uthread_fchflags.c \
|
|
uthread_fchmod.c \
|
|
uthread_fchown.c \
|
|
uthread_fcntl.c \
|
|
uthread_fd.c \
|
|
uthread_file.c \
|
|
uthread_find_thread.c \
|
|
uthread_flock.c \
|
|
uthread_fork.c \
|
|
uthread_fstat.c \
|
|
uthread_fstatfs.c \
|
|
uthread_fsync.c \
|
|
uthread_gc.c \
|
|
uthread_getdirentries.c \
|
|
uthread_getpeername.c \
|
|
uthread_getprio.c \
|
|
uthread_getschedparam.c \
|
|
uthread_getsockname.c \
|
|
uthread_getsockopt.c \
|
|
uthread_info.c \
|
|
uthread_init.c \
|
|
uthread_ioctl.c \
|
|
uthread_jmp.c \
|
|
uthread_join.c \
|
|
uthread_kern.c \
|
|
uthread_kill.c \
|
|
uthread_listen.c \
|
|
uthread_mattr_init.c \
|
|
uthread_mattr_kind_np.c \
|
|
uthread_msync.c \
|
|
uthread_multi_np.c \
|
|
uthread_mutex.c \
|
|
uthread_mutex_prioceiling.c \
|
|
uthread_mutex_protocol.c \
|
|
uthread_mutexattr_destroy.c \
|
|
uthread_nanosleep.c \
|
|
uthread_once.c \
|
|
uthread_open.c \
|
|
uthread_pause.c \
|
|
uthread_pipe.c \
|
|
uthread_poll.c \
|
|
uthread_priority_queue.c \
|
|
uthread_read.c \
|
|
uthread_readv.c \
|
|
uthread_recvfrom.c \
|
|
uthread_recvmsg.c \
|
|
uthread_resume_np.c \
|
|
uthread_rwlock.c \
|
|
uthread_rwlockattr.c \
|
|
uthread_select.c \
|
|
uthread_self.c \
|
|
uthread_sem.c \
|
|
uthread_sendmsg.c \
|
|
uthread_sendto.c \
|
|
uthread_seterrno.c \
|
|
uthread_setprio.c \
|
|
uthread_setschedparam.c \
|
|
uthread_setsockopt.c \
|
|
uthread_shutdown.c \
|
|
uthread_sig.c \
|
|
uthread_sigaction.c \
|
|
uthread_sigblock.c \
|
|
uthread_sigmask.c \
|
|
uthread_sigpending.c \
|
|
uthread_sigprocmask.c \
|
|
uthread_sigsetmask.c \
|
|
uthread_sigsuspend.c \
|
|
uthread_sigwait.c \
|
|
uthread_single_np.c \
|
|
uthread_sleep.c \
|
|
uthread_socket.c \
|
|
uthread_socketpair.c \
|
|
uthread_spec.c \
|
|
uthread_spinlock.c \
|
|
uthread_suspend_np.c \
|
|
uthread_switch_np.c \
|
|
uthread_system.c \
|
|
uthread_tcdrain.c \
|
|
uthread_vfork.c \
|
|
uthread_wait.c \
|
|
uthread_wait4.c \
|
|
uthread_waitpid.c \
|
|
uthread_write.c \
|
|
uthread_writev.c \
|
|
uthread_yield.c
|