Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc - Fix the remaining indr_references so that they de...



details:   https://anonhg.NetBSD.org/src/rev/4e4df37897a7
branches:  trunk
changeset: 583326:4e4df37897a7
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 30 15:21:20 2005 +0000

description:
- Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror

diffstat:

 lib/libc/gen/_sys_errlist.c   |   6 ++--
 lib/libc/gen/_sys_nerr.c      |   6 ++--
 lib/libc/gen/_sys_siglist.c   |   6 ++--
 lib/libc/gen/_sysconf.c       |   6 ++--
 lib/libc/include/namespace.h  |   3 +-
 lib/libc/inet/_inet_aton.c    |   6 ++--
 lib/libc/inet/_inet_pton.c    |   6 ++--
 lib/libc/nls/_catclose.c      |   6 ++--
 lib/libc/nls/_catgets.c       |   6 ++--
 lib/libc/nls/_catopen.c       |   6 ++--
 lib/libc/resolv/__dn_comp.c   |   6 ++--
 lib/libc/resolv/__res_close.c |   6 ++--
 lib/libc/resolv/__res_send.c  |   6 ++--
 lib/libc/stdio/_fileno.c      |   6 ++--
 lib/libc/stdio/_fseeko.c      |   6 ++--
 lib/libc/stdio/_ftello.c      |   6 ++--
 lib/libc/stdlib/_strtoimax.c  |   6 ++--
 lib/libc/stdlib/_strtoll.c    |   6 ++--
 lib/libc/stdlib/_strtoull.c   |   6 ++--
 lib/libc/stdlib/_strtoumax.c  |   6 ++--
 lib/libc/string/Makefile.inc  |   6 ++--
 lib/libc/string/__strerror.c  |  62 -------------------------------------------
 lib/libc/string/_strerror_r.c |  55 ++++++++++++++++++++++++++++++++++++++
 lib/libc/string/_strlcat.c    |   6 ++--
 lib/libc/string/_strlcpy.c    |   6 ++--
 lib/libc/string/strerror_r.c  |  14 ++++++++-
 lib/libc/sys/_brk.c           |   6 ++--
 lib/libc/sys/_fork.c          |   6 ++--
 lib/libc/sys/_pipe.c          |   6 ++--
 lib/libc/sys/_sbrk.c          |   6 ++--
 lib/libc/time/_daylight.c     |   6 ++--
 31 files changed, 150 insertions(+), 146 deletions(-)

diffs (truncated from 788 to 300 lines):

diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/gen/_sys_errlist.c
--- a/lib/libc/gen/_sys_errlist.c       Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/gen/_sys_errlist.c       Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _sys_errlist.c,v 1.8 2005/06/12 05:34:34 lukem Exp $   */
+/*     $NetBSD: _sys_errlist.c,v 1.9 2005/07/30 15:21:20 christos Exp $        */
 
 /*
  * Written by J.T. Conklin, December 12, 1994
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _sys_errlist.c,v 1.8 2005/06/12 05:34:34 lukem Exp $");
+__RCSID("$NetBSD: _sys_errlist.c,v 1.9 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 __warn_references(sys_errlist,
@@ -21,7 +21,7 @@
     "warning: reference to deprecated __sys_nerr; include <errno.h> and use sys_nerr")
  
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_sys_errlist, sys_errlist)
 __indr_reference(_sys_errlist, __sys_errlist) /* Backwards compat with v.12 */
 #else
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/gen/_sys_nerr.c
--- a/lib/libc/gen/_sys_nerr.c  Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/gen/_sys_nerr.c  Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _sys_nerr.c,v 1.8 2005/06/12 05:21:27 lukem Exp $      */
+/*     $NetBSD: _sys_nerr.c,v 1.9 2005/07/30 15:21:20 christos Exp $   */
 
 /*
  * Written by J.T. Conklin, December 12, 1994
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _sys_nerr.c,v 1.8 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: _sys_nerr.c,v 1.9 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_sys_nerr, sys_nerr)
 __indr_reference(_sys_nerr, __sys_nerr) /* Backwards compat with v.12 */
 #endif
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/gen/_sys_siglist.c
--- a/lib/libc/gen/_sys_siglist.c       Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/gen/_sys_siglist.c       Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _sys_siglist.c,v 1.9 2005/06/12 05:34:34 lukem Exp $   */
+/*     $NetBSD: _sys_siglist.c,v 1.10 2005/07/30 15:21:20 christos Exp $       */
 
 /*
  * Written by J.T. Conklin, December 12, 1994
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _sys_siglist.c,v 1.9 2005/06/12 05:34:34 lukem Exp $");
+__RCSID("$NetBSD: _sys_siglist.c,v 1.10 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 __warn_references(sys_siglist,
@@ -15,7 +15,7 @@
 __warn_references(__sys_siglist,
     "warning: reference to deprecated __sys_siglist[]; include <signal.h> or <unistd.h> and use sys_siglist")
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_sys_siglist, sys_siglist)
 __indr_reference(_sys_siglist, __sys_siglist) /* Backwards compat with v.12 */
 #else
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/gen/_sysconf.c
--- a/lib/libc/gen/_sysconf.c   Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/gen/_sysconf.c   Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _sysconf.c,v 1.2 2005/06/12 05:21:27 lukem Exp $       */
+/*     $NetBSD: _sysconf.c,v 1.3 2005/07/30 15:21:20 christos Exp $    */
 
 /*
  * Copyright (c) 1996 Christos Zoulas.  All rights reserved.
@@ -31,10 +31,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _sysconf.c,v 1.2 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: _sysconf.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(__sysconf, sysconf)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h      Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/include/namespace.h      Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: namespace.h,v 1.103 2005/07/17 16:07:36 christos Exp $ */
+/*     $NetBSD: namespace.h,v 1.104 2005/07/30 15:21:20 christos Exp $ */
 
 /*-
  * Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -57,6 +57,7 @@
 #define inet_pton      _inet_pton
 #define pipe           _pipe
 #define sbrk           _sbrk
+#define strerror_r     _strerror_r
 #define strlcat                _strlcat
 #define strlcpy                _strlcpy
 #define strtoimax      _strtoimax
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/inet/_inet_aton.c
--- a/lib/libc/inet/_inet_aton.c        Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/inet/_inet_aton.c        Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _inet_aton.c,v 1.2 2005/06/12 05:21:27 lukem Exp $     */
+/*     $NetBSD: _inet_aton.c,v 1.3 2005/07/30 15:21:20 christos Exp $  */
 
 /*
  * Written by Klaus Klein, September 14, 1999.
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _inet_aton.c,v 1.2 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: _inet_aton.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_inet_aton,inet_aton)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/inet/_inet_pton.c
--- a/lib/libc/inet/_inet_pton.c        Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/inet/_inet_pton.c        Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _inet_pton.c,v 1.2 2005/06/12 05:21:27 lukem Exp $     */
+/*     $NetBSD: _inet_pton.c,v 1.3 2005/07/30 15:21:20 christos Exp $  */
 
 /*
  * Written by Klaus Klein, September 14, 1999.
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _inet_pton.c,v 1.2 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: _inet_pton.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_inet_pton,inet_pton)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/nls/_catclose.c
--- a/lib/libc/nls/_catclose.c  Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/nls/_catclose.c  Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _catclose.c,v 1.5 2005/06/12 05:21:27 lukem Exp $      */
+/*     $NetBSD: _catclose.c,v 1.6 2005/07/30 15:21:20 christos Exp $   */
 
 /*
  * Written by J.T. Conklin, 10/05/94
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _catclose.c,v 1.5 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: _catclose.c,v 1.6 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_catclose,catclose)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/nls/_catgets.c
--- a/lib/libc/nls/_catgets.c   Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/nls/_catgets.c   Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _catgets.c,v 1.6 2005/06/12 05:21:27 lukem Exp $       */
+/*     $NetBSD: _catgets.c,v 1.7 2005/07/30 15:21:20 christos Exp $    */
 
 /*
  * Written by J.T. Conklin, 10/05/94
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _catgets.c,v 1.6 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: _catgets.c,v 1.7 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_catgets,catgets)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/nls/_catopen.c
--- a/lib/libc/nls/_catopen.c   Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/nls/_catopen.c   Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _catopen.c,v 1.5 2005/06/12 05:21:27 lukem Exp $       */
+/*     $NetBSD: _catopen.c,v 1.6 2005/07/30 15:21:20 christos Exp $    */
 
 /*
  * Written by J.T. Conklin, 10/05/94
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _catopen.c,v 1.5 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: _catopen.c,v 1.6 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(_catopen,catopen)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/resolv/__dn_comp.c
--- a/lib/libc/resolv/__dn_comp.c       Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/resolv/__dn_comp.c       Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __dn_comp.c,v 1.2 2005/06/12 05:21:27 lukem Exp $      */
+/*     $NetBSD: __dn_comp.c,v 1.3 2005/07/30 15:21:20 christos Exp $   */
 
 /*
  * written by matthew green, 22/04/97.
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: __dn_comp.c,v 1.2 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: __dn_comp.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(__dn_comp,dn_comp)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/resolv/__res_close.c
--- a/lib/libc/resolv/__res_close.c     Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/resolv/__res_close.c     Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __res_close.c,v 1.2 2005/06/12 05:21:27 lukem Exp $    */
+/*     $NetBSD: __res_close.c,v 1.3 2005/07/30 15:21:20 christos Exp $ */
 
 /*
  * written by matthew green, 22/04/97.
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: __res_close.c,v 1.2 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: __res_close.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(__res_close,res_close)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/resolv/__res_send.c
--- a/lib/libc/resolv/__res_send.c      Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/resolv/__res_send.c      Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __res_send.c,v 1.2 2005/06/12 05:21:27 lukem Exp $     */
+/*     $NetBSD: __res_send.c,v 1.3 2005/07/30 15:21:20 christos Exp $  */
 
 /*
  * written by matthew green, 22/04/97.
@@ -7,10 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: __res_send.c,v 1.2 2005/06/12 05:21:27 lukem Exp $");
+__RCSID("$NetBSD: __res_send.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
 #endif
 
-#ifdef __indr_reference
+#if defined(__indr_reference) && !defined(__lint__)
 __indr_reference(__res_send,res_send)
 #else
 
diff -r 31662f3fae30 -r 4e4df37897a7 lib/libc/stdio/_fileno.c
--- a/lib/libc/stdio/_fileno.c  Sat Jul 30 15:14:29 2005 +0000
+++ b/lib/libc/stdio/_fileno.c  Sat Jul 30 15:21:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _fileno.c,v 1.2 2005/06/12 05:21:27 lukem Exp $        */
+/*     $NetBSD: _fileno.c,v 1.3 2005/07/30 15:21:20 christos Exp $     */
 
 /*
  * Copyright (c) 1996 Christos Zoulas.  All rights reserved.



Home | Main Index | Thread Index | Old Index