This is the mail archive of the libc-hacker@sources.redhat.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] |
>>>>> Andreas Jaeger writes: > I've noticed a few prototype warnings where I'm not sure how to fix > them best: > ../sysdeps/generic/enbl-secure.c:31: warning: no previous prototype for `__libc_init_secure' > soinit.c:43: warning: no previous prototype for `__libc_global_ctors' > ../sysdeps/generic/prof-freq.c:37: warning: no previous prototype for `__profile_frequency' > noophooks.c:23: warning: no previous prototype for `__cyg_profile_func_enter' > pcprofile.c:78: warning: no previous prototype for `__cyg_profile_func_enter' > Should we add two new internal headers (one for the first three, the > second for the last two lines?) ? > Or what seems to be best? I propose to add the appended new header to glibc. Ok to commit? Afterwards I'll add the needed includes to the files and remove redundant declarations. 2000-12-31 Andreas Jaeger <aj@suse.de> * include/libc-internal.h: New file. ============================================================ Index: include/libc-internal.h --- include/libc-internal.h created +++ include/libc-internal.h Sun Dec 31 16:57:45 2000 1.1 @@ -0,0 +1,19 @@ +/* This file contains a number of internal prototype declarations that + don't fit anywhere else. */ + +#ifndef _LIBC_INTERNAL +/* Initialize the `__libc_enable_secure' flag. */ +extern void __libc_init_secure (void); + +/* This function will be called from _init in init-first.c. */ +extern void __libc_global_ctors (void); + +/* Discover the tick frequency of the machine if something goes wrong, + we return 0, an impossible hertz. */ +extern int __profile_frequency (void); + +/* Hooks for the instrumenting functions. */ +extern void __cyg_profile_func_enter (void *this_fn, void *call_site); +extern void __cyg_profile_func_exit (void *this_fn, void *call_site); + +#endif /* _LIBC_INTERNAL */ -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |