]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 29 Nov 2000 00:04:54 +0000 (00:04 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 29 Nov 2000 00:04:54 +0000 (00:04 +0000)
* dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
* dlfcn/defaultmod2.c: Likewise.
* dlfcn/dlopen.c: Likewise.
* dlfcn/dlopenold.c: Likewise.
* dlfcn/failtestmod.c: Likewise.
* dlfcn/glreflib1.c: Likewise.
* dlfcn/glreflib2.c: Likewise.
* dlfcn/eval.c: Likewise.  Add attributes.

* ctype/ctype-extn.c: Define isblank and not __isblank.

ChangeLog
ctype/ctype-extn.c
dlfcn/defaultmod1.c
dlfcn/defaultmod2.c
dlfcn/dlopen.c
dlfcn/dlopenold.c
dlfcn/eval.c
dlfcn/failtestmod.c
dlfcn/glreflib1.c
dlfcn/glreflib2.c

index a6c56608dca9542db929f44262789610e494650c..25da4389ac513163beb1bfb37d9c14db92e0e579 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
 
+       * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
+       * dlfcn/defaultmod2.c: Likewise.
+       * dlfcn/dlopen.c: Likewise.
+       * dlfcn/dlopenold.c: Likewise.
+       * dlfcn/failtestmod.c: Likewise.
+       * dlfcn/glreflib1.c: Likewise.
+       * dlfcn/glreflib2.c: Likewise.
+       * dlfcn/eval.c: Likewise.  Add attributes.
+
+       * ctype/ctype-extn.c: Define isblank and not __isblank.
+
        * time/strftime.c: Add const where necessary to avoid warnings.
        * time/strptime.c (strptime_internal): Add casts to avoid warnings.
 
index cfc8b87d4136e8f5373525672313af19c6607f02..2177df020a6058a0c86534936cedff82629c3660 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 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
 #define        __NO_CTYPE
 #include <ctype.h>
 
-/* Real function versions of the non-ANSI ctype functions.  */
+/* Real function versions of the non-ANSI ctype functions.  isblank is
+   now in ISO C99 but we leave it here.  */
 
 int
-__isblank (int c)
+isblank (int c)
 {
   return __isctype (c, _ISblank);
 }
-weak_alias (__isblank, isblank)
 
 int
 _tolower (int c)
index 2c26e389bc9b94f2402d04c602b1efd4ef3cbfcd..9f330b7f2959d7806b0f6c571374d598d88b233c 100644 (file)
@@ -1,6 +1,7 @@
 #include <dlfcn.h>
 #include <stdio.h>
 
+extern int found_in_mod1 (void);
 int
 found_in_mod1 (void)
 {
@@ -8,6 +9,7 @@ found_in_mod1 (void)
 }
 
 
+extern int test_in_mod1 (void *mainp);
 int
 test_in_mod1 (void *mainp)
 {
index 4cacced3b5a9041ea2735455b8ec76f0ed21571f..c8615e2dc3d34a00384d16a05d07f72da3ce4f4e 100644 (file)
@@ -1,12 +1,14 @@
 #include <dlfcn.h>
 #include <stdio.h>
 
+extern int found_in_mod1 (void);
 int
 found_in_mod1 (void)
 {
   return 1;
 }
 
+extern int found_in_mod2 (void);
 int
 found_in_mod2 (void)
 {
@@ -14,6 +16,7 @@ found_in_mod2 (void)
 }
 
 
+extern int test_in_mod2 (void *mainp);
 int
 test_in_mod2 (void *mainp)
 {
index 793891e89684d6f8526088f24e5ebc02b259cf56..0891ca55f78a07e27fea12c34e46a5f91847988f 100644 (file)
@@ -41,6 +41,7 @@ dlopen_doit (void *a)
 }
 
 
+extern void *__dlopen_check (const char *file, int mode);
 void *
 __dlopen_check (const char *file, int mode)
 {
index 0d6cea95c5e8f88d6d86dc538378bb57cf223eac..83ec801b2bdd6e1c54831c49a95268194c1de651 100644 (file)
@@ -46,6 +46,7 @@ dlopen_doit (void *a)
                        args->caller);
 }
 
+extern void *__dlopen_nocheck (const char *file, int mode);
 void *
 __dlopen_nocheck (const char *file, int mode)
 {
index ce452b722ce54e6b65c5d736cf9a273f670f430f..1f9421ddda1d1b292fdaaeac9af125fd43301bb6 100644 (file)
@@ -1,5 +1,5 @@
 /* You don't really want to know what this hack is for.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 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
@@ -122,7 +122,9 @@ eval (char **stringp)
 }
 
 
+extern void _start (void) __attribute__ ((noreturn));
 void
+__attribute__ ((noreturn))
 _start (void)
 {
   char *buf = NULL;
index 595da4d567834c8e1ab90be9326d42d1181bf9b6..a03f90b734132d8d7b17d5b41e824e8edf71e3db 100644 (file)
@@ -2,6 +2,7 @@
 #include <stdio.h>
 
 
+extern void constr (void) __attribute__ ((__constructor__));
 void
 __attribute__ ((__constructor__))
 constr (void)
index 224ff5b097ca6ee11f0066c67325f208db876d48..d8d4f4a605e98a2ddf803f9e451d781785273a41 100644 (file)
@@ -17,6 +17,7 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+extern int ref1 (void);
 int
 ref1 (void)
 {
index 6f8f970a17d57de9ebf15a00c3345b579ef0efd8..b4e61e0a4e4493c612850650805f33c8e7ecaa99 100644 (file)
@@ -19,6 +19,7 @@
 
 extern int ref1 (void);
 
+extern int ref2 (void);
 int
 ref2 (void)
 {