This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

More Changes



I've fixed a number of other warnings and also added a minimal kernel
check for MIPS.  I've committed everything, the patch is appended
below FYI.

Here're the warnings I fixed:
tst-trans.c:42: warning: implicit declaration of function `exit'
tst-trans.c:63: warning: implicit declaration of function `strcmp'
tst-trans.c:64: warning: implicit declaration of function `strlen'
tst-xpg-basename.c:53: warning: implicit declaration of function `strcpy'
tst-xpg-basename.c:56: warning: implicit declaration of function `strcmp'
tst-xpg-basename.c:64: warning: implicit declaration of function `exit'
temptest.c:16: warning: implicit declaration of function `exit'
tst-fileno.c:33: warning: implicit declaration of function `exit'
tst-printfsz.c:22: warning: implicit declaration of function `strcmp'
scanf4.c:20: warning: implicit declaration of function `abort'
scanf5.c:12: warning: implicit declaration of function `abort'
tst_swscanf.c:29: warning: implicit declaration of function `strcmp'
tst_wscanf.c:19: warning: implicit declaration of function `strcmp'
clocktest.c:23: warning: implicit declaration of function `exit'
runtests.c:60: warning: implicit declaration of function `strcmp'
test-vfork.c:33: warning: implicit declaration of function `exit'
tst-getaddrinfo.c:35: warning: implicit declaration of function `memset'
wordexp-test.c:391: warning: implicit declaration of function `strcmp'
globtest.c:78: warning: implicit declaration of function `exit'
test-utime.c:36: warning: implicit declaration of function `exit'
tst-efgcvt.c:128: warning: implicit declaration of function `strcmp'
test_wcfuncs.c:86: warning: implicit declaration of function `exit'
cert.c:27: warning: implicit declaration of function `exit'
test-netdb.c:157: warning: implicit declaration of function `strcmp'
test-netdb.c:369: warning: implicit declaration of function `exit'

Btw. what has changed so that these changes are necessary now?  I
didn't find directly anything in the ChangeLogs.

Andreas

For localedata:
2000-06-21  Andreas Jaeger  <aj@suse.de>

	* tst-trans.c: Include <stdlib.h> and <string.h>.

2000-06-21  Andreas Jaeger  <aj@suse.de>

	* stdio-common/temptest.c: Include <stdlib.h>.
	* stdio-common/tst-fileno.c: Likewise.
	* stdio-common/scanf4.c: Likewise.
	* stdio-common/scanf5.c: Likewise.
	* time/clocktest.c: Likewise.
	* posix/test-vfork.c: Likewise.
	* posix/globtest.c: Likewise.
	* io/test-utime.c: Likewise.
	* wctype/test_wcfuncs.c: Likewise.
	* crypt/cert.c: Likewise.

	* stdio-common/tst-printfsz.c: Include <string.h>.
	* libio/tst_swscanf.c: Likewise.
	* libio/tst_wscanf.c: Likewise.
	* posix/runtests.c: Likewise.
	* posix/tst-getaddrinfo.c: Likewise.
	* posix/wordexp-test.c: Likewise.
	* misc/tst-efgcvt.c: Likewise.

	* stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
	* nss/test-netdb.c: Likewise.

	* sysdeps/unix/sysv/linux/configure.in: Add check for minimal
	supported kernel for MIPS.

============================================================
Index: stdio-common/temptest.c
--- stdio-common/temptest.c	1997/06/19 18:36:44	1.4
+++ stdio-common/temptest.c	2000/06/21 11:23:24
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 
 char *files[500];
============================================================
Index: stdio-common/tst-fileno.c
--- stdio-common/tst-fileno.c	1997/02/15 04:30:00	1.2
+++ stdio-common/tst-fileno.c	2000/06/21 11:23:24
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1997, 2000 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
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 static int
============================================================
Index: stdio-common/scanf4.c
--- stdio-common/scanf4.c	1996/10/08 23:37:45	1.2
+++ stdio-common/scanf4.c	2000/06/21 11:23:24
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 
 int
 main(int arc, char *argv[])
============================================================
Index: stdio-common/scanf5.c
--- stdio-common/scanf5.c	1996/10/08 23:37:46	1.2
+++ stdio-common/scanf5.c	2000/06/21 11:23:24
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 
 int
 main(int argc, char *argv[])
============================================================
Index: stdio-common/tst-printfsz.c
--- stdio-common/tst-printfsz.c	1997/04/19 00:20:06	1.1
+++ stdio-common/tst-printfsz.c	2000/06/21 11:23:24
@@ -1,6 +1,7 @@
 /* Based on code by Larry McVoy <lm@neteng.engr.sgi.com>.  */
 #include <printf.h>
 #include <stdio.h>
+#include <string.h>
 
 #define V       12345678.12345678
 
============================================================
Index: time/clocktest.c
--- time/clocktest.c	1998/02/27 15:54:37	1.4
+++ time/clocktest.c	2000/06/21 11:23:24
@@ -1,5 +1,6 @@
 #include <signal.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
 
============================================================
Index: posix/test-vfork.c
--- posix/test-vfork.c	1999/02/14 20:00:16	1.4
+++ posix/test-vfork.c	2000/06/21 11:23:24
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <error.h>
 #include <errno.h>
============================================================
Index: posix/globtest.c
--- posix/globtest.c	2000/03/20 00:45:09	1.5
+++ posix/globtest.c	2000/06/21 11:23:24
@@ -18,6 +18,7 @@
 
 #include <getopt.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <glob.h>
 
============================================================
Index: posix/runtests.c
--- posix/runtests.c	1998/12/10 09:56:03	1.2
+++ posix/runtests.c	2000/06/21 11:23:24
@@ -28,6 +28,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 
 
============================================================
Index: posix/tst-getaddrinfo.c
--- posix/tst-getaddrinfo.c	2000/04/18 07:55:23	1.1
+++ posix/tst-getaddrinfo.c	2000/06/21 11:23:25
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
============================================================
Index: posix/wordexp-test.c
--- posix/wordexp-test.c	2000/03/14 09:09:43	1.26
+++ posix/wordexp-test.c	2000/06/21 11:23:25
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000 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
@@ -23,6 +23,7 @@
 #include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <wordexp.h>
 
 #define IFS " \n\t"
============================================================
Index: io/test-utime.c
--- io/test-utime.c	1997/02/15 04:27:51	1.4
+++ io/test-utime.c	2000/06/21 11:23:25
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1996, 1997, 2000 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
@@ -18,6 +18,7 @@
 
 #include <fcntl.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <utime.h>
============================================================
Index: wctype/test_wcfuncs.c
--- wctype/test_wcfuncs.c	1999/04/14 23:02:57	1.1
+++ wctype/test_wcfuncs.c	2000/06/21 11:23:25
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000 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
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <wctype.h>
 
 int
============================================================
Index: crypt/cert.c
--- crypt/cert.c	2000/02/29 02:46:06	1.1
+++ crypt/cert.c	2000/06/21 11:23:25
@@ -7,6 +7,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "crypt.h"
 
 int totfails = 0;
============================================================
Index: libio/tst_swscanf.c
--- libio/tst_swscanf.c	1999/06/16 22:07:30	1.1
+++ libio/tst_swscanf.c	2000/06/21 11:23:25
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <string.h>
 #include <wchar.h>
 
 int
============================================================
Index: libio/tst_wscanf.c
--- libio/tst_wscanf.c	1999/06/16 22:07:56	1.1
+++ libio/tst_wscanf.c	2000/06/21 11:23:25
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <string.h>
 #include <wchar.h>
 
 int
============================================================
Index: misc/tst-efgcvt.c
--- misc/tst-efgcvt.c	1999/11/10 17:58:57	1.11
+++ misc/tst-efgcvt.c	2000/06/21 11:23:26
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 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
@@ -23,6 +23,7 @@
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 int error_count;
 
============================================================
Index: stdlib/tst-xpg-basename.c
--- stdlib/tst-xpg-basename.c	1999/10/17 03:40:49	1.1
+++ stdlib/tst-xpg-basename.c	2000/06/21 11:23:26
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 1999.
 
@@ -19,6 +19,8 @@
 
 #include <libgen.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 static struct
 {
============================================================
Index: nss/test-netdb.c
--- nss/test-netdb.c	2000/02/22 08:49:04	1.6
+++ nss/test-netdb.c	2000/06/21 11:23:26
@@ -1,6 +1,6 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
+   Contributed by Andreas Jaeger <aj@suse.de>, 1998.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -33,6 +33,8 @@
 #include <netdb.h>
 #include <rpc/netdb.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
 #include <sys/param.h>
============================================================
Index: localedata/tst-trans.c
--- localedata/tst-trans.c	2000/06/18 00:21:52	1.3
+++ localedata/tst-trans.c	2000/06/21 11:23:26
@@ -20,6 +20,8 @@
 
 #include <locale.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <wchar.h>
 #include <wctype.h>
 
============================================================
Index: sysdeps/unix/sysv/linux/configure.in
--- sysdeps/unix/sysv/linux/configure.in	2000/06/14 13:49:47	1.34
+++ sysdeps/unix/sysv/linux/configure.in	2000/06/21 11:24:12
@@ -39,6 +39,9 @@
 # kernel headers are young enough.  Additionally we have minimal
 # kernel versions for some architectures.
 case "$machine" in
+  mips*)
+    arch_minimum_kernel=2.2.15
+    ;;
   sh*)
     arch_minimum_kernel=2.3.99
     ;;

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]