about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-29 00:04:54 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-29 00:04:54 +0000
commit20bb288327254c60dcf7f28ad3ea22c48cffcc58 (patch)
tree9d317f8044d64112c5112ef088688f366864726e /dlfcn
parent5eefad82e96d213f69e216857ad638dab981f705 (diff)
downloadglibc-20bb288327254c60dcf7f28ad3ea22c48cffcc58.tar.gz
glibc-20bb288327254c60dcf7f28ad3ea22c48cffcc58.tar.xz
glibc-20bb288327254c60dcf7f28ad3ea22c48cffcc58.zip
Update.
	* 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.
Diffstat (limited to 'dlfcn')
-rw-r--r--dlfcn/defaultmod1.c2
-rw-r--r--dlfcn/defaultmod2.c3
-rw-r--r--dlfcn/dlopen.c1
-rw-r--r--dlfcn/dlopenold.c1
-rw-r--r--dlfcn/eval.c4
-rw-r--r--dlfcn/failtestmod.c1
-rw-r--r--dlfcn/glreflib1.c1
-rw-r--r--dlfcn/glreflib2.c1
8 files changed, 13 insertions, 1 deletions
diff --git a/dlfcn/defaultmod1.c b/dlfcn/defaultmod1.c
index 2c26e389bc..9f330b7f29 100644
--- a/dlfcn/defaultmod1.c
+++ b/dlfcn/defaultmod1.c
@@ -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)
 {
diff --git a/dlfcn/defaultmod2.c b/dlfcn/defaultmod2.c
index 4cacced3b5..c8615e2dc3 100644
--- a/dlfcn/defaultmod2.c
+++ b/dlfcn/defaultmod2.c
@@ -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)
 {
diff --git a/dlfcn/dlopen.c b/dlfcn/dlopen.c
index 793891e896..0891ca55f7 100644
--- a/dlfcn/dlopen.c
+++ b/dlfcn/dlopen.c
@@ -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)
 {
diff --git a/dlfcn/dlopenold.c b/dlfcn/dlopenold.c
index 0d6cea95c5..83ec801b2b 100644
--- a/dlfcn/dlopenold.c
+++ b/dlfcn/dlopenold.c
@@ -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)
 {
diff --git a/dlfcn/eval.c b/dlfcn/eval.c
index ce452b722c..1f9421ddda 100644
--- a/dlfcn/eval.c
+++ b/dlfcn/eval.c
@@ -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;
diff --git a/dlfcn/failtestmod.c b/dlfcn/failtestmod.c
index 595da4d567..a03f90b734 100644
--- a/dlfcn/failtestmod.c
+++ b/dlfcn/failtestmod.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 
 
+extern void constr (void) __attribute__ ((__constructor__));
 void
 __attribute__ ((__constructor__))
 constr (void)
diff --git a/dlfcn/glreflib1.c b/dlfcn/glreflib1.c
index 224ff5b097..d8d4f4a605 100644
--- a/dlfcn/glreflib1.c
+++ b/dlfcn/glreflib1.c
@@ -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)
 {
diff --git a/dlfcn/glreflib2.c b/dlfcn/glreflib2.c
index 6f8f970a17..b4e61e0a4e 100644
--- a/dlfcn/glreflib2.c
+++ b/dlfcn/glreflib2.c
@@ -19,6 +19,7 @@
 
 extern int ref1 (void);
 
+extern int ref2 (void);
 int
 ref2 (void)
 {