Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2005 11:34:35 GMT
From:      David Xu <davidxu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 71971 for review
Message-ID:  <200502271134.j1RBYZeY085237@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=71971

Change 71971 by davidxu@davidxu_alona on 2005/02/27 11:33:56

	Style fixes.
	Don't include unneeded header files.

Affected files ...

.. //depot/projects/davidxu_thread/src/lib/libthread/arch/alpha/alpha/pthread_md.c#6 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/amd64/pthread_md.c#4 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/include/pthread_md.h#9 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/i386/pthread_md.c#6 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/arch/ia64/ia64/pthread_md.c#7 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/arch/powerpc/powerpc/pthread_md.c#5 edit
.. //depot/projects/davidxu_thread/src/lib/libthread/arch/sparc64/sparc64/pthread_md.c#7 edit

Differences ...

==== //depot/projects/davidxu_thread/src/lib/libthread/arch/alpha/alpha/pthread_md.c#6 (text+ko) ====

@@ -26,10 +26,9 @@
  * $FreeBSD$
  */
 
-#include <sys/cdefs.h>
-
 #include <stdlib.h>
 #include <string.h>
+
 #include "pthread_md.h"
 
 /*

==== //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/amd64/pthread_md.c#4 (text+ko) ====

@@ -26,9 +26,9 @@
  * $FreeBSD$
  */
 
-#include <stdlib.h>
-#include <strings.h>
-#include "rtld_tls.h"
+#include <sys/types.h>
+#include <rtld_tls.h>
+
 #include "pthread_md.h"
 
 /*
@@ -40,17 +40,13 @@
 	struct tcb *tcb;
 	void *oldtls;
 
-	if (initial) {
+	if (initial)
 		__asm __volatile("movq %%fs:0, %0" : "=r" (oldtls));
-	} else {
+	else
 		oldtls = NULL;
-	}
-
 	tcb = _rtld_allocate_tls(oldtls, sizeof(struct tcb), 16);
-	if (tcb) {
+	if (tcb)
 		tcb->tcb_thread = thread;
-	}
-
 	return (tcb);
 }
 

==== //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/include/pthread_md.h#9 (text+ko) ====

@@ -26,6 +26,7 @@
  *
  * $FreeBSD$
  */
+
 /*
  * Machine-dependent thread prototypes/definitions for the thread kernel.
  */

==== //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/i386/pthread_md.c#6 (text+ko) ====

@@ -31,8 +31,8 @@
 #include <machine/segments.h>
 #include <machine/sysarch.h>
 #include <string.h>
+#include <rtld_tls.h>
 
-#include "rtld_tls.h"
 #include "pthread_md.h"
 
 struct tcb *

==== //depot/projects/davidxu_thread/src/lib/libthread/arch/ia64/ia64/pthread_md.c#7 (text+ko) ====

@@ -27,11 +27,9 @@
  * $FreeBSD$
  */
 
-#include <stdlib.h>
-#include <string.h>
 #include <sys/types.h>
+#include <rtld_tls.h>
 
-#include "rtld_tls.h"
 #include "pthread_md.h"
 
 /*

==== //depot/projects/davidxu_thread/src/lib/libthread/arch/powerpc/powerpc/pthread_md.c#5 (text+ko) ====

@@ -26,10 +26,9 @@
  * $FreeBSD$
  */
 
-#include <stdlib.h>
-#include <strings.h>
+#include <sys/types.h>
+#include <rtld_tls.h>
 
-#include "rtld_tls.h"
 #include "pthread_md.h"
 
 /*

==== //depot/projects/davidxu_thread/src/lib/libthread/arch/sparc64/sparc64/pthread_md.c#7 (text+ko) ====

@@ -29,10 +29,8 @@
  */
 
 #include <sys/types.h>
-#include <stdlib.h>
-#include <string.h>
+#include <rtld_tls.h>
 
-#include "rtld_tls.h"
 #include "pthread_md.h"
 
 struct tcb *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502271134.j1RBYZeY085237>