]> git.saurik.com Git - apple/libc.git/blobdiff - threads/mig_support.c
Libc-391.5.22.tar.gz
[apple/libc.git] / threads / mig_support.c
index 4c5856bf65e003c7fede4ba2d45310b65d6dc8f1..8cc775b1e03d2c02d301eef01eaaf7bc244a8c7c 100644 (file)
@@ -3,8 +3,6 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
@@ -83,11 +81,11 @@ mig_get_reply_port()
         pthread_t pself;
 #ifdef CTHREADS_DEBUG
        int d = cthread_debug;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
 
 #ifdef CTHREADS_DEBUG
        cthread_debug = FALSE;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
         pself = pthread_self();
         if ((pself != (pthread_t)NULL) && (pself->sig == _PTHREAD_SIG)) {
             if (pself->reply_port == MACH_PORT_NULL) {
@@ -99,7 +97,7 @@ mig_get_reply_port()
        if (self == NO_CPROC) {
 #ifdef CTHREADS_DEBUG
                cthread_debug = d;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
                return(_task_reply_port);
        }
         if (self->reply_port == MACH_PORT_NULL) {
@@ -107,7 +105,7 @@ mig_get_reply_port()
         }
 #ifdef CTHREADS_DEBUG
        cthread_debug = d;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
        return self->reply_port;
 }
 
@@ -124,11 +122,11 @@ mig_dealloc_reply_port(mach_port_t migport)
        register mach_port_t port;
 #ifdef CTHREADS_DEBUG
        int d = cthread_debug;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
 
 #ifdef CTHREADS_DEBUG
        cthread_debug = FALSE;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
         pself = pthread_self();
         if ((pself != (pthread_t)NULL) && (pself->sig == _PTHREAD_SIG)) {
             port = pself->reply_port;
@@ -145,7 +143,7 @@ mig_dealloc_reply_port(mach_port_t migport)
        if (self == NO_CPROC) {
 #ifdef CTHREADS_DEBUG
                cthread_debug = d;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
                return;
        }
        ASSERT(self != NO_CPROC);
@@ -159,7 +157,7 @@ mig_dealloc_reply_port(mach_port_t migport)
        }
 #ifdef CTHREADS_DEBUG
        cthread_debug = d;
-#endif CTHREADS_DEBUG
+#endif /* CTHREADS_DEBUG */
 }
 
 /*************************************************************