]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 12 Aug 2004 17:42:16 +0000 (17:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 12 Aug 2004 17:42:16 +0000 (17:42 +0000)
2004-08-12  Jakub Jelinek  <jakub@redhat.com>

* resolv/res_query.c (__libc_res_nsearch): Protect the debugging
printf with #ifdef DEBUG and RES_DEBUG check.

* sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
__USE_MISC #endif.
* sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
declaration.
* sysdeps/gnu/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.

ChangeLog
bits/shm.h
resolv/res_query.c
sysdeps/generic/bits/shm.h
sysdeps/gnu/bits/shm.h
sysdeps/unix/sysv/linux/alpha/bits/shm.h
sysdeps/unix/sysv/linux/bits/shm.h
sysdeps/unix/sysv/linux/powerpc/bits/shm.h
sysdeps/unix/sysv/linux/s390/bits/shm.h
sysdeps/unix/sysv/linux/sparc/bits/shm.h
sysdeps/unix/sysv/linux/x86_64/bits/shm.h

index fcd8789a25fda2b5224ed825e341cd48d11fbd01..7c76540de3b5fd1142b699ef63e25914858f42c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2004-08-12  Jakub Jelinek  <jakub@redhat.com>
+
+       * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
+       printf with #ifdef DEBUG and RES_DEBUG check.
+
+       * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
+       __USE_MISC #endif.
+       * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
+       declaration.
+       * sysdeps/gnu/bits/shm.h: Likewise.
+       * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
+       * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
+
 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
 
        * po/ca.po: Update from translation team.
index 44a18d6c3a5dcac3d6c40f98cddfd463afca4242..746a86348655e035a594228a7834a859b78b7037 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2002, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +32,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -51,3 +54,5 @@ struct shmid_ds
     __pid_t shm_lpid;                  /* pid of last shmop */
     shmatt_t shm_nattch;               /* number of current attaches */
   };
+
+__END_DECLS
index bad1495467d549ec214be97287abad2d857af1ff..d2ef3b5e9391bbe67c56bb743d87da315ce3b92c 100644 (file)
@@ -239,8 +239,11 @@ __libc_res_nsearch(res_state statp,
                return (__libc_res_nquery(statp, cp, class, type, answer,
                                          anslen, answerp));
 
-       printf("dots=%d, statp->ndots=%d, trailing_dot=%d, name=%s\n",
-              (int)dots,(int)statp->ndots,(int)trailing_dot,name);
+#ifdef DEBUG
+       if (statp->options & RES_DEBUG)
+               printf("dots=%d, statp->ndots=%d, trailing_dot=%d, name=%s\n",
+                      (int)dots,(int)statp->ndots,(int)trailing_dot,name);
+#endif
 
        /*
         * If there are enough dots in the name, let's just give it a
index 44a18d6c3a5dcac3d6c40f98cddfd463afca4242..746a86348655e035a594228a7834a859b78b7037 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2002, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +32,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -51,3 +54,5 @@ struct shmid_ds
     __pid_t shm_lpid;                  /* pid of last shmop */
     shmatt_t shm_nattch;               /* number of current attaches */
   };
+
+__END_DECLS
index 2c41833d37e40170ecd858d922a1c47c2a078f7f..cbda9cebb21fed21c5949483981ae653697be1f3 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2002, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,6 +37,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -90,3 +93,5 @@ struct shm_info
   };
 
 #endif /* __USE_MISC */
+
+__END_DECLS
index 418426511ccb53a747384c42b264a6d67b221750..bbee434ea0a7cffec1e7264a314b1fbbfc9d9847 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2002, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -35,6 +36,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -93,3 +96,5 @@ struct shm_info
   };
 
 #endif /* __USE_MISC */
+
+__END_DECLS
index 639c1263141d920165fe724e02660ad365451c5e..225b89db2d6a832037aaf46ace125c4e7c8f04fc 100644 (file)
@@ -97,6 +97,6 @@ struct shm_info
     unsigned long int swap_successes;
   };
 
-__END_DECLS
-
 #endif /* __USE_MISC */
+
+__END_DECLS
index 38379ace79cb904d8bc638fc32009aa113a47ab7..7705fb64d4d3f23592e4b5a6312f2fea1d170287 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2002, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -35,6 +36,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -105,3 +108,5 @@ struct shm_info
   };
 
 #endif /* __USE_MISC */
+
+__END_DECLS
index 682e24e8b2ae52252731d2c3322a3da9e20c1f30..b7c2ad0514991108f59384abcbddd761b183698c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,6 +36,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -103,3 +105,5 @@ struct shm_info
   };
 
 #endif /* __USE_MISC */
+
+__END_DECLS
index 144f311740790b92e8e8d8054ffc67e2f3b0f4d5..f075be8d8a56412512ce892b0f83ef7b23d49aeb 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2002, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,6 +37,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -103,3 +106,5 @@ struct shm_info
   };
 
 #endif /* __USE_MISC */
+
+__END_DECLS
index 005d643bbf11e060c992c3330f4bb0b58a4720a9..4282d75617c584ea02236f613e7b5ddccbdb2cbf 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2002, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -35,6 +36,8 @@
 #define SHM_LOCK       11              /* lock segment (root only) */
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
+__BEGIN_DECLS
+
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
 extern int __getpagesize (void) __THROW __attribute__ ((__const__));
@@ -102,3 +105,5 @@ struct shm_info
   };
 
 #endif /* __USE_MISC */
+
+__END_DECLS