Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 19 Apr 2004 06:19:34 +0000 (06:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 19 Apr 2004 06:19:34 +0000 (06:19 +0000)
* sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c: New file.
* sysdeps/unix/sysv/linux/powerpc/Makefile (librt-routines): Add
rt-sysdep.

* rt/tst-mqueue5.c (mqsend): Don't inline.
(mqrecv): Likewise.

ChangeLog
nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h
nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h
nptl/sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
rt/tst-mqueue5.c
sysdeps/unix/sysv/linux/powerpc/Makefile
sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c [new file with mode: 0644]

index d1724cc20e43b01549f0a050149ec254521cbd8a..85899180cc43c33be32309dc2d4a7e35ce6307bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2004-04-18  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c: New file.
+       * sysdeps/unix/sysv/linux/powerpc/Makefile (librt-routines): Add
+       rt-sysdep.
+
+       * rt/tst-mqueue5.c (mqsend): Don't inline.
+       (mqrecv): Likewise.
+
        * rt/tst-timer4.c: Include <string.h>.
 
 2004-04-17  Jakub Jelinek  <jakub@redhat.com>
index 58087b29a722bd9d7fdb3d4680a0af6562b8cc68..e6c5d845ce3352195cb47fc7077fe558761adf86 100644 (file)
@@ -29,7 +29,7 @@
 #define SEM_FAILED      ((sem_t *) 0)
 
 /* Maximum value the semaphore can have.  */
-#define SEM_VALUE_MAX   ((int) (2147483647)
+#define SEM_VALUE_MAX   (2147483647)
 
 
 typedef union
index c774aec5b1c7945e7280487536b970f33bc4d55a..7f3a328326746fb12c2b8c23dcaf264611f7f61c 100644 (file)
@@ -34,7 +34,7 @@
 #define SEM_FAILED      ((sem_t *) 0)
 
 /* Maximum value the semaphore can have.  */
-#define SEM_VALUE_MAX   ((int) (2147483647)
+#define SEM_VALUE_MAX   (2147483647)
 
 
 typedef union
index 5069299832c3d29ec031d4023547b758c7f9da0f..bb5eade6b359c4546cf74cefabb1fef552bd79ae 100644 (file)
@@ -29,7 +29,7 @@
 #define SEM_FAILED      ((sem_t *) 0)
 
 /* Maximum value the semaphore can have.  */
-#define SEM_VALUE_MAX   ((int) (2147483647))
+#define SEM_VALUE_MAX   (2147483647)
 
 
 typedef union
index cdbad287a36aa7454e5ed9c33b6ea07620fb3474..97571da8abd89f8a6416c4f976856031d53db504 100644 (file)
@@ -58,7 +58,7 @@ rtmin_handler (int sig, siginfo_t *info, void *ctx)
 }
 
 #define mqsend(q) (mqsend) (q, __LINE__)
-static inline int
+static int
 (mqsend) (mqd_t q, int line)
 {
   char c;
@@ -71,7 +71,7 @@ static inline int
 }
 
 #define mqrecv(q) (mqrecv) (q, __LINE__)
-static inline int
+static int
 (mqrecv) (mqd_t q, int line)
 {
   char c;
@@ -472,7 +472,7 @@ do_child (const char *name, pthread_barrier_t *b2, pthread_barrier_t *b3,
   /* Thread opens a new O_RDONLY mqd_t (q4).  */
   /* Thread calls mq_notify (q4, NULL), which should unregister the above
      notification.  */
-  /* Thread calls mq_close (q4).  */ 
+  /* Thread calls mq_close (q4).  */
 
   (void) pthread_barrier_wait (b3);
 
@@ -501,7 +501,7 @@ do_child (const char *name, pthread_barrier_t *b2, pthread_barrier_t *b3,
   /* Thread opens a new O_WRONLY mqd_t (q5).  */
   /* Thread calls mq_notify (q5, NULL), which should unregister the above
      notification.  */
-  /* Thread calls mq_close (q5).  */ 
+  /* Thread calls mq_close (q5).  */
 
   (void) pthread_barrier_wait (b3);
 
index 026325153348cdbbf694ee55b753e04e08a4680d..671370ede0a97a65ea85cee5e764007e46b051c7 100644 (file)
@@ -1 +1,4 @@
 64bit-predefine = __powerpc64__
+ifeq ($(subdir),rt)
+librt-routines += rt-sysdep
+endif
diff --git a/sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c b/sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c
new file mode 100644 (file)
index 0000000..3ff5595
--- /dev/null
@@ -0,0 +1 @@
+#include <sysdep.c>