From a2fe9c76a9d7645c63288eda807e01a6b1901d29 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 20 May 1995 00:13:43 +0000 Subject: Fri May 19 17:16:46 1995 Roland McGrath * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle args on stack from kernel. * posix/Makefile, sysdeps/alpha/Makefile, * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile, * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail in the absence of CVS dirs. * hurd/hurdstartup.c: Don't call __mach_init. Grok args from the kernel on the stack properly. * set-init.c: Never call _init/_fini; just run __libc_subinit. * Makerules (LDFLAGS-c.so): Add -nostartfiles. * mach/Machrules (LDFLAGS-$(interface.so)): Likewise. * configure.in: Move defaulting of --with-elf and --with-gnu-* based on host os outside the AC_CACHE_VAL for the sysdirs calculation. * Makeconfig (localedir, nlsdir): New variables. * values.h: New file. * Makefile (headers): Add values.h. * locale/Makefile (distribute): Add error.h. * locale/localedef.c: Include "error.h". (main): Use error_message_count instead of warning_cntr. --- set-init.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'set-init.c') diff --git a/set-init.c b/set-init.c index 34c0dbd804..8bf9d053a3 100644 --- a/set-init.c +++ b/set-init.c @@ -19,24 +19,5 @@ Cambridge, MA 02139, USA. */ #include #include "set-hooks.h" -DEFINE_HOOK_RUNNER (__libc_subinit, __libc_subinit_runner, +DEFINE_HOOK_RUNNER (__libc_subinit, __libc_init, (int argc, char **argv, char **envp), (argc, argv, envp)) - -void -__libc_init (argc, argv, envp) - int argc; - char **argv; - char **envp; -{ - __libc_subinit_runner (argc, argv, envp); - -#ifdef HAVE_ELF - { - /* These functions are defined in crti.o to run the .init and .fini - sections, which are used for initializers in ELF. */ - extern void _init __P ((void)), _fini __P ((void)); - atexit (_fini); /* Arrange for _fini to run at exit. */ - _init (); - } -#endif -} -- cgit 1.4.1