PERFORCE change 68316 for review
David Xu
davidxu at FreeBSD.org
Wed Jan 5 05:42:27 PST 2005
http://perforce.freebsd.org/chv.cgi?CH=68316
Change 68316 by davidxu at davidxu_tiger on 2005/01/05 13:42:24
Fix pthread.h inclusion, don't include it twice for most files.
Affected files ...
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_kern.c#12 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_list.c#2 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_printf.c#3 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#14 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_rtld.c#4 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sem.c#6 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_spinlock.c#6 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_syscalls.c#3 edit
Differences ...
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_kern.c#12 (text+ko) ====
@@ -30,6 +30,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <pthread.h>
#include "thr_private.h"
/*#define DEBUG_THREAD_KERN */
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_list.c#2 (text+ko) ====
@@ -35,6 +35,7 @@
#include <stdlib.h>
#include <string.h>
+#include <pthread.h>
#include "thr_private.h"
#include "libc_private.h"
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_printf.c#3 (text+ko) ====
@@ -30,6 +30,7 @@
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
+#include <pthread.h>
#include "thr_private.h"
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#14 (text+ko) ====
@@ -54,8 +54,6 @@
#include <ucontext.h>
#include <sys/thr.h>
#include <sys/umtx.h>
-#include <pthread.h>
-#include <pthread_np.h>
#include "pthread_md.h"
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_rtld.c#4 (text+ko) ====
@@ -29,6 +29,7 @@
*/
#include <sys/cdefs.h>
#include <stdlib.h>
+#include <pthread.h>
#include "rtld_lock.h"
#include "thr_private.h"
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sem.c#6 (text+ko) ====
@@ -39,7 +39,6 @@
#include <time.h>
#include <_semaphore.h>
#include "un-namespace.h"
-#include "libc_private.h"
#include "thr_private.h"
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_spinlock.c#6 (text+ko) ====
@@ -35,7 +35,7 @@
#include <sys/types.h>
#include <machine/atomic.h>
-
+#include <pthread.h>
#include <libc_private.h>
#include "spinlock.h"
#include "thr_private.h"
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_syscalls.c#3 (text+ko) ====
@@ -54,10 +54,6 @@
#include <string.h>
#include <termios.h>
#include <unistd.h>
-
-#include "namespace.h"
-#include "un-namespace.h"
-
#include <pthread.h>
#include "thr_private.h"
More information about the p4-projects
mailing list