From 1143b5e42a7816a7665798bcab7d5db4a37935b3 Mon Sep 17 00:00:00 2001 From: deischen Date: Sun, 11 Feb 2001 22:06:43 +0000 Subject: libc MT-safety, part 2. Add a lock to FILE. flockfile and friends are now implemented (for the most part) in libc. flockfile_debug is implemented in libc_r; I suppose it's about time to kill it but will do it in a future commit. Fix a potential deadlock in _fwalk in a threaded environment. A file flag (__SIGN) was added to stdio.h that, when set, tells _fwalk to ignore it in its walk. This seemed to be needed in refill.c because each file needs to be locked when flushing. Add a stub for pthread_self in libc. This is needed by flockfile which is allowed by POSIX to be recursive. Make fgetpos() error return value (-1) match man page. Remove recursive calls to locked functions (stdio); I think I've got them all, but I may have missed a couple. A few K&R -> ANSI conversions along with removal of a few instances of "register". $Id$ -> $FreeBSD$ in libc/stdio/rget.c Not objected to: -arch, a few months ago --- lib/libc/include/un-namespace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/include/un-namespace.h') diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index 4d2e8bd..76ba625 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -65,6 +65,7 @@ #undef pthread_mutexattr_destroy #undef pthread_mutexattr_settype #undef pthread_once +#undef pthread_self #undef pthread_setspecific #undef read #undef readv @@ -102,7 +103,6 @@ #undef pthread_rwlock_wrlock #undef pthread_rwlockattr_init #undef pthread_rwlockattr_destroy -#undef pthread_self #undef sched_yield #undef sendfile #undef shutdown -- cgit v1.1