]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
authorRoland McGrath <roland@gnu.org>
Sat, 3 Aug 2002 12:59:33 +0000 (12:59 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 3 Aug 2002 12:59:33 +0000 (12:59 +0000)
* include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
verr, verrx.
* include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
* misc/syslog.c: Add libc_hidden_def.
* misc/err.c: Likewise.
* stdlib/exit.c: Likewise.
* stdlib/bsearch.c: Likewise.
* sysdeps/generic/getenv.c: Likewise.

ChangeLog
include/err.h
include/stdlib.h
include/sys/syslog.h
misc/err.c
misc/syslog.c
stdlib/bsearch.c
stdlib/exit.c
sysdeps/generic/getenv.c

index 406bff4b5488c61835ee77ef54e55561d52bb1c4..791b94bec1cc4400cf957ec52543175db954f39b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2002-08-03  Roland McGrath  <roland@redhat.com>
 
+       * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
+       * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
+       verr, verrx.
+       * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
+       * misc/syslog.c: Add libc_hidden_def.
+       * misc/err.c: Likewise.
+       * stdlib/exit.c: Likewise.
+       * stdlib/bsearch.c: Likewise.
+       * sysdeps/generic/getenv.c: Likewise.
+
        * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
 
        * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
index 915720aa4c1577ff085c7359545ab6e0db921554..737dfc1b6f8852a26868ca5e03d2bc3fa744601e 100644 (file)
@@ -1 +1,8 @@
 #include <misc/err.h>
+
+libc_hidden_proto (warn)
+libc_hidden_proto (warnx)
+libc_hidden_proto (vwarn)
+libc_hidden_proto (vwarnx)
+libc_hidden_proto (verr)
+libc_hidden_proto (verrx)
index ad9ea8e0e7debcb7f8d378ffa603f04bed55e837..39629e1f6b1487d45908cc626a91c919f1627c62 100644 (file)
@@ -9,6 +9,9 @@
 /* Now define the internal interfaces.  */
 #ifndef __Need_M_And_C
 
+libc_hidden_proto (exit)
+libc_hidden_proto (getenv)
+libc_hidden_proto (bsearch)
 libc_hidden_proto (__secure_getenv)
 
 extern long int __random (void);
index 247528b430f36a33520c5e230d0477a980575db8..e01822533359acd077b44c292c0d1f0e1acfbe61 100644 (file)
@@ -1 +1,4 @@
 #include <misc/sys/syslog.h>
+
+libc_hidden_proto (syslog)
+libc_hidden_proto (vsyslog)
index 1e681b399dfe5151f010e56676985af2c1827004..05406276d05f8c216537e6799bb5e280fe6b752e 100644 (file)
@@ -1,5 +1,5 @@
 /* 4.4BSD utility functions for error messages.
-   Copyright (C) 1995, 1996, 1998, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,98,2001,02 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
@@ -108,6 +108,7 @@ vwarnx (const char *format, __gnuc_va_list ap)
     }
   funlockfile (stderr);
 }
+libc_hidden_def (warnx)
 
 void
 vwarn (const char *format, __gnuc_va_list ap)
@@ -141,6 +142,7 @@ vwarn (const char *format, __gnuc_va_list ap)
     }
   funlockfile (stderr);
 }
+libc_hidden_def (warnx)
 
 
 void
@@ -148,12 +150,14 @@ warn (const char *format, ...)
 {
   VA (vwarn (format, ap))
 }
+libc_hidden_def (warn)
 
 void
 warnx (const char *format, ...)
 {
   VA (vwarnx (format, ap))
 }
+libc_hidden_def (warnx)
 
 void
 verr (int status, const char *format, __gnuc_va_list ap)
@@ -161,6 +165,7 @@ verr (int status, const char *format, __gnuc_va_list ap)
   vwarn (format, ap);
   exit (status);
 }
+libc_hidden_def (verr)
 
 void
 verrx (int status, const char *format, __gnuc_va_list ap)
@@ -168,6 +173,7 @@ verrx (int status, const char *format, __gnuc_va_list ap)
   vwarnx (format, ap);
   exit (status);
 }
+libc_hidden_def (verrx)
 
 void
 err (int status, const char *format, ...)
index 10a830969ccf2627bdf6a1e83a4a5e04b800ec5a..c27671fecb7bab5efe4c6e8aa48cda23f3ff74fa 100644 (file)
@@ -102,6 +102,7 @@ syslog(pri, fmt, va_alist)
        vsyslog(pri, fmt, ap);
        va_end(ap);
 }
+libc_hidden_def (syslog)
 
 void
 vsyslog(pri, fmt, ap)
@@ -278,6 +279,7 @@ vsyslog(pri, fmt, ap)
 
        free (buf);
 }
+libc_hidden_def (vsyslog)
 
 static struct sockaddr SyslogAddr;     /* AF_UNIX address of local logger */
 
index 95668ff3dfb5d8a30c2cb80377858ced0dbf41cf..1bc6c4ba431368638ac8ac965d36efe67779f836 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,97,2000,02 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
@@ -46,3 +46,4 @@ bsearch (const void *key, const void *base, size_t nmemb, size_t size,
 
   return NULL;
 }
+libc_hidden_def (bsearch)
index a4a51dca19c6bcc47b68aaecba086560a1c7bc8d..ac247a1233c8b373e97fe90cd3a3b2c2b615da48 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1995,1996,1997,1999,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,97,99,2001,02 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
@@ -81,3 +81,4 @@ exit (int status)
 
   _exit (status);
 }
+libc_hidden_def (exit)
index 8900e3566fb70c1b4609b46efd0db52478ff0a92..d659f66022c34a124a0afdfa40e4baefff77fe9e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 94, 96, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,96,98,99,2002 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
@@ -98,3 +98,4 @@ getenv (name)
 
   return NULL;
 }
+libc_hidden_def (getenv)