]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/hppa/bits/setjmp.h: Add _BITS_SETJMP_H preprocessor
authorRoland McGrath <roland@gnu.org>
Tue, 6 Dec 2005 01:38:34 +0000 (01:38 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 6 Dec 2005 01:38:34 +0000 (01:38 +0000)
protection and allow pthread.h to include bits/setjmp.h as well as
setjmp.h.
* sysdeps/m68k/bits/setjmp.h: Likewise.
* sysdeps/s390/bits/setjmp.h: Make sure only setjmp.h or pthread.h
are allow to include bits/setjmp.h.
* sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Cast rhs to match lhs
cast of address.
* sysdeps/sh/bits/setjmp.h: Likewise.

2005-11-12  Jim Meyering  <jim@meyering.net>

* sysdeps/unix/opendir.c (__alloc_dir): Declare STATP parameter
to be pointer to const.
* include/dirent.h: Update decl.

ChangeLog
include/dirent.h
sysdeps/hppa/bits/setjmp.h
sysdeps/m68k/bits/setjmp.h
sysdeps/mips/bits/setjmp.h
sysdeps/s390/bits/setjmp.h
sysdeps/sh/bits/setjmp.h
sysdeps/unix/opendir.c

index bbef297de8738cdc28cfabb8054ecea0951c5091..9a408ea7cf123efc6ecc1973425bbe1a5626f240 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2005-11-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * sysdeps/hppa/bits/setjmp.h: Add _BITS_SETJMP_H preprocessor
+       protection and allow pthread.h to include bits/setjmp.h as well as
+       setjmp.h.
+       * sysdeps/m68k/bits/setjmp.h: Likewise.
+       * sysdeps/s390/bits/setjmp.h: Make sure only setjmp.h or pthread.h
+       are allow to include bits/setjmp.h.
+       * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Cast rhs to match lhs
+       cast of address.
+       * sysdeps/sh/bits/setjmp.h: Likewise.
+
+2005-11-12  Jim Meyering  <jim@meyering.net>
+
+       * sysdeps/unix/opendir.c (__alloc_dir): Declare STATP parameter
+       to be pointer to const.
+       * include/dirent.h: Update decl.
+
 2005-12-05  Roland McGrath  <roland@redhat.com>
 
        * hurd/hurdmalloc.c: Remove $ tag $ magic.
index 4e95ffd6cd0ad021830d0def61defd26efe0456e..681024fd02d01213380eac4205b7138178e65a3f 100644 (file)
@@ -25,6 +25,6 @@ extern int __alphasort64 (const void *a, const void *b)
      __attribute_pure__;
 extern int __versionsort64 (const void *a, const void *b)
      __attribute_pure__;
-extern DIR *__alloc_dir (int fd, bool close_fd, struct stat64 *statp)
+extern DIR *__alloc_dir (int fd, bool close_fd, const struct stat64 *statp)
      internal_function;
 #endif
index 7fb2af77d08257d7db7d4e2bf5e59600ce763f3a..4395b8f5626a234a621ee9ab57fedff5f5036e14 100644 (file)
    02111-1307 USA.  */
 
 /* Define the machine-dependent type `jmp_buf'.  HPPA version.  */
+#ifndef _BITS_SETJMP_H
+#define _BITS_SETJMP_H 1
 
-#ifndef _SETJMP_H
+#if !defined _SETJMP_H && !defined _PTHREAD_H
 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
 #endif
 
@@ -39,3 +41,5 @@ typedef double __jmp_buf[21];
    variable at ADDRESS.  */
 #define _JMPBUF_UNWINDS(_jmpbuf, _address)                             \
      ((void *)(_address) > (void *)(((unsigned long *) _jmpbuf)[JB_SP]))
+
+#endif /* bits/setjmp.h */
index 2c2b3ee15a24c450905d58fa7a9121b1679b25bb..193eec3509450ac6291cefbae7efba939c9930c1 100644 (file)
    02111-1307 USA.  */
 
 /* Define the machine-dependent type `jmp_buf'.  m68k version.  */
+#ifndef _BITS_SETJMP_H
+#define _BITS_SETJMP_H 1
 
-#ifndef _SETJMP_H
+#if !defined _SETJMP_H && !defined _PTHREAD_H
 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
 #endif
 
@@ -44,3 +46,5 @@ typedef struct
    containing a local variable at ADDRESS.  */
 #define _JMPBUF_UNWINDS(jmpbuf, address) \
   ((void *) (address) < (void *) (jmpbuf)->__sp)
+
+#endif /* bits/setjmp.h */
index 2b42b22ba4fae822c420b66412843985a1e8e3d6..74caae8cba2029b76d13dff6b9cd28a8b348c7f0 100644 (file)
@@ -81,6 +81,6 @@ typedef struct
 /* Test if longjmp to JMPBUF would unwind the frame
    containing a local variable at ADDRESS.  */
 #define _JMPBUF_UNWINDS(jmpbuf, address) \
-  ((void *) (address) < (jmpbuf)[0].__sp)
+  ((void *) (address) < (void *) (jmpbuf)[0].__sp)
 
 #endif /* _MIPS_BITS_SETJMP_H */
index 35bc9a53f38b0f5e4700b47085fe528b0741bf0e..400951476386d28da841e5dcf1cfa673ff46db57 100644 (file)
 #ifndef __S390_SETJMP_H__
 #define __S390_SETJMP_H__
 
+#if !defined _SETJMP_H && !defined _PTHREAD_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
 #include <bits/wordsize.h>
 
 #define __JB_GPR6      0
index d92feea2142201b5b18331af9d83c28ee8d2f7f7..242720ca53c7e60b52319757ed47d353c2a9c998 100644 (file)
@@ -51,6 +51,6 @@ typedef struct
 /* Test if longjmp to JMPBUF would unwind the frame
    containing a local variable at ADDRESS.  */
 #define _JMPBUF_UNWINDS(jmpbuf, address) \
-  ((void *) (address) < (jmpbuf)[0].__regs[7])
+  ((void *) (address) < (void *) (jmpbuf)[0].__regs[7])
 
 #endif  /* bits/setjmp.h */
index 98fb4ca5c8a70220ec171f6f0d661dddd17d6606..6aa738fb6913a644df02f7ef64a0d098dbf2adc4 100644 (file)
@@ -139,7 +139,7 @@ weak_alias (__opendir, opendir)
 
 DIR *
 internal_function
-__alloc_dir (int fd, bool close_fd, struct stat64 *statp)
+__alloc_dir (int fd, bool close_fd, const struct stat64 *statp)
 {
   if (__builtin_expect (__fcntl (fd, F_SETFD, FD_CLOEXEC), 0) < 0)
     goto lose;