From c7562c74ed1b18fda99bfd5f6c4b61a449bcb35f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 8 May 1998 20:42:23 +0000 Subject: Update. * intl/locale.alias: Change italian to it_IT.ISO-8859-1. Reported by Ottavio G. Rizzo . 1998-05-08 19:24 Zack Weinberg * Makefile (+subdir-inits): Delete variable. (+init_subdirs): Likewise. (aux): Likewise. (before-compile): Likewise. (libc-init): Delete stanza. (version-info.h): Delete rule and associated variable. (distribute): Don't distribute moved files. * Makerules (interp-obj): It lives in elf now. Only use it if $(elf) is set. Delete rule to build it. * csu/Makefile: Build set-init.o and/or munch-init.o. Build version.o and version-info.h. Minor cleanups. (routines): Add libc-init, sysdep, version. (generated): Add version-info.h. * elf/Makefile: Build interp.os. * interp.c: Moved to elf. * set-init.c: Moved to csu. * munch-init.c: Likewise. * munch.awk: Likewise. * version.c: Likewise. * Makeconfig: Add emacs mode marker. * Makerules: Likewise. * Rules: Likewise, and also unconfuse syntax highlighting with a fake comment. 1998-05-08 Ulrich Drepper --- ChangeLog | 33 +++++++++++++++++++++++++ Makeconfig | 4 +++ Makefile | 53 ++-------------------------------------- Makerules | 13 +++++----- Rules | 5 ++++ csu/Makefile | 57 +++++++++++++++++++++++++++++++++++++++---- csu/munch-tmpl.c | 38 +++++++++++++++++++++++++++++ csu/munch.awk | 11 +++++++++ csu/set-init.c | 23 ++++++++++++++++++ csu/version.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ elf/Makefile | 7 ++++-- elf/interp.c | 21 ++++++++++++++++ interp.c | 21 ---------------- intl/locale.alias | 2 +- munch-tmpl.c | 38 ----------------------------- munch.awk | 11 --------- set-init.c | 23 ------------------ sunrpc/Makefile | 2 +- version.c | 73 ------------------------------------------------------- 19 files changed, 276 insertions(+), 232 deletions(-) create mode 100644 csu/munch-tmpl.c create mode 100644 csu/munch.awk create mode 100644 csu/set-init.c create mode 100644 csu/version.c create mode 100644 elf/interp.c delete mode 100644 interp.c delete mode 100644 munch-tmpl.c delete mode 100644 munch.awk delete mode 100644 set-init.c delete mode 100644 version.c diff --git a/ChangeLog b/ChangeLog index 792436da10..489be7598a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,36 @@ +1998-05-08 Ulrich Drepper + + * intl/locale.alias: Change italian to it_IT.ISO-8859-1. + Reported by Ottavio G. Rizzo . + +1998-05-08 19:24 Zack Weinberg + + * Makefile (+subdir-inits): Delete variable. + (+init_subdirs): Likewise. + (aux): Likewise. + (before-compile): Likewise. + (libc-init): Delete stanza. + (version-info.h): Delete rule and associated variable. + (distribute): Don't distribute moved files. + * Makerules (interp-obj): It lives in elf now. Only use it + if $(elf) is set. Delete rule to build it. + * csu/Makefile: Build set-init.o and/or munch-init.o. Build + version.o and version-info.h. Minor cleanups. + (routines): Add libc-init, sysdep, version. + (generated): Add version-info.h. + * elf/Makefile: Build interp.os. + + * interp.c: Moved to elf. + * set-init.c: Moved to csu. + * munch-init.c: Likewise. + * munch.awk: Likewise. + * version.c: Likewise. + + * Makeconfig: Add emacs mode marker. + * Makerules: Likewise. + * Rules: Likewise, and also unconfuse syntax highlighting with + a fake comment. + 1998-05-08 Ulrich Drepper * sysdeps/unix/sysv/linux/syscalls.list: Add capset and capget diff --git a/Makeconfig b/Makeconfig index 1948e79512..ccaa085d33 100644 --- a/Makeconfig +++ b/Makeconfig @@ -795,3 +795,7 @@ $(common-objpfx)sysd-dirs: $(common-objpfx)config.make $(all-Subdirs-files) mv -f $@-tmp $@ endif # Makeconfig not yet included + +# Local Variables: +# mode: makefile +# End: diff --git a/Makefile b/Makefile index bbece0bd08..bfbd474a63 100644 --- a/Makefile +++ b/Makefile @@ -50,12 +50,6 @@ endif configure: configure.in aclocal.m4; $(autoconf-it) %/configure: %/configure.in aclocal.m4; $(autoconf-it) -# All initialization source files. -+subdir_inits := $(wildcard $(foreach dir,$(subdirs),$(dir)/init-$(dir).c)) -# All subdirectories containing initialization source files. -+init_subdirs := $(patsubst %/,%,$(dir $(+subdir_inits))) - - # These are the targets that are made by making them in each subdirectory. +subdir_targets := subdir_lib objects objs others subdir_mostlyclean \ subdir_clean subdir_distclean subdir_realclean \ @@ -68,8 +62,6 @@ configure: configure.in aclocal.m4; $(autoconf-it) headers := errno.h sys/errno.h bits/errno.h limits.h values.h \ features.h gnu-versions.h bits/libc-lock.h bits/xopen_lim.h \ gnu/libc-version.h -aux = sysdep $(libc-init) version -before-compile += $(objpfx)version-info.h echo-headers: subdir_echo-headers @@ -85,17 +77,6 @@ ifeq (yes,$(build-shared)) install-others += $(inst_includedir)/gnu/lib-names.h endif -ifeq (yes,$(gnu-ld)) -libc-init = set-init -else -libc-init = munch-init -$(objpfx)munch-init.c: munch.awk munch-tmpl.c $(+subdir_inits) - $(AWK) -f $< subdirs='$(+init_subdirs)' $(word 2,$^) > $@-t - mv -f $@-t $@ -generated := $(generated) munch-init.c -endif - - include Makerules # Install from subdirectories too. @@ -133,35 +114,6 @@ ifeq (yes,$(build-shared)) lib: $(common-objpfx)libc.so endif -all-Banner-files = $(wildcard $(addsuffix /Banner, $(subdirs))) -$(objpfx)version-info.h: $(+sysdir_pfx)config.make $(all-Banner-files) - (case $(config-os) in \ - linux*) version=`(echo -e "#include \nUTS_RELEASE"\ - | $(CC) -E -P - | \ - sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\ - if [ -z "$$version" ]; then \ - if [ -r /proc/version ]; then \ - version=`sed 's/.*version \([^ ]*\) .*/>>\1< $@T - mv -f $@T $@ - -version.c-objects := $(addprefix $(objpfx)version,$(object-suffixes)) -$(version.c-objects): $(objpfx)version-info.h - # Makerules creates a file `stubs' in each subdirectory, which # contains `#define __stub_FUNCTION' for each function defined in that # directory which is a stub. @@ -285,18 +237,17 @@ parent_echo-distinfo: distribute := README README.libm INSTALL FAQ NOTES NEWS PROJECTS BUGS \ COPYING.LIB COPYING ChangeLog ChangeLog.[0-9] \ Makefile Makeconfig Makerules Rules Make-dist MakeTAGS \ - extra-lib.mk o-iterator.mk \ + extra-lib.mk o-iterator.mk autolock.sh rellns-sh \ libc.map mkinstalldirs move-if-change install-sh \ configure configure.in aclocal.m4 config.sub config.guess\ config.h.in config.make.in config-name.in Makefile.in \ - autolock.sh rellns-sh munch-tmpl.c munch.awk interp.c \ sysdep.h set-hooks.h libc-symbols.h version.h shlib-versions \ rpm/Makefile rpm/template rpm/rpmrc glibcbug.in abi-tags \ stub-tag.h test-installation.pl test-skeleton.c \ include/des.h distribute := $(strip $(distribute)) -generated := $(generated) stubs.h version-info.h +generated := $(generated) stubs.h README: README.template version.h ; # Make-dist should update README. diff --git a/Makerules b/Makerules index 6aca3083b2..8b81a69290 100644 --- a/Makerules +++ b/Makerules @@ -344,14 +344,11 @@ else no-whole-archive = endif -interp-obj = $(common-objpfx)interp.os -$(interp-obj): $(common-objpfx)%.os: $(..)%.c - $(compile-command.c) -common-generated += interp.os -CFLAGS-interp.c = -D'RUNTIME_LINKER="$(slibdir)/$(rtld-installed-name)"' - +ifeq ($(elf),yes) +interp-obj = $(common-objpfx)elf/interp.os $(common-objpfx)libc.so: $(interp-obj) $(patsubst %,$(objpfx)%.so,$(extra-libs)): $(interp-obj) +endif define build-shlib $(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \ @@ -977,3 +974,7 @@ ifeq ($(with-cvs),yes) endif endif endif + +# Local Variables: +# mode: makefile +# End: diff --git a/Rules b/Rules index 20aa84a8fe..57f75ebe8e 100644 --- a/Rules +++ b/Rules @@ -31,6 +31,7 @@ include ../Makeconfig ifndef subdir Each subdirectory makefile must define the `subdir' variable. endif +# This ` unconfuses emacs. # This is benign and useless in GNU make before 3.63. export subdir := $(subdir) @@ -188,3 +189,7 @@ $(common-objpfx)dummy$o: $(common-objpfx)dummy.c $(before-compile); endef object-suffixes-left := $(object-suffixes) include $(o-iterator) + +# Local Variables: +# mode: makefile +# End: diff --git a/csu/Makefile b/csu/Makefile index da17b2c301..6d804f46aa 100644 --- a/csu/Makefile +++ b/csu/Makefile @@ -27,7 +27,7 @@ subdir := csu -routines = init-first libc-start +routines = init-first libc-start $(libc-init) sysdep version csu-dummies = $(filter-out $(start-installed-name),crt1.o Mcrt1.o) extra-objs = start.o gmon-start.o \ $(start-installed-name) g$(start-installed-name) \ @@ -36,17 +36,35 @@ omit-deps = $(patsubst %.o,%,$(start-installed-name) g$(start-installed-name) \ $(csu-dummies)) install-lib = $(start-installed-name) g$(start-installed-name) \ $(csu-dummies) -distribute = initfini.c gmon-start.c start.c defs.awk abi-note.S init.c +distribute = initfini.c gmon-start.c start.c defs.awk munch.awk \ + abi-note.S init.c +generated = version-info.h +before-compile = $(objpfx)version-info.h all: # Make this the default target; it will be defined in Rules. include ../Makeconfig -ifeq ($(elf),yes) -before-compile = $(objpfx)abi-tag.h +ifeq (yes,$(elf)) +before-compile += $(objpfx)abi-tag.h generated += abi-tag.h endif +ifeq (yes,$(gnu-ld)) +libc-init = set-init +else +libc-init = munch-init +$(objpfx)munch-init.c: munch.awk munch-tmpl.c $(+subdir_inits) + $(AWK) -f $< subdirs='$(+init_subdirs)' $(word 2,$^) > $@-t + mv -f $@-t $@ +generated += munch-init.c + +# All initialization source files. ++subdir_inits := $(wildcard $(foreach dir,$(subdirs),$(dir)/init-$(dir).c)) +# All subdirectories containing initialization source files. ++init_subdirs := $(patsubst %/,%,$(dir $(+subdir_inits))) +endif + ifeq ($(have-initfini),yes) CPPFLAGS += -DHAVE_INITFINI @@ -130,11 +148,12 @@ $(addprefix $(objpfx),$(filter-out $(start-installed-name),$(csu-dummies))): $(COMPILE.c) $(@:.o=.c) $(OUTPUT_OPTION) rm -f $(@:.o=.c) +# These headers are used by the startup code. / := $$/# bite me. $(objpfx)abi-tag.h: $(..)abi-tags $(make-target-directory) rm -f $@.new - sed 's/#.*$//;/^[ ]*$$/d' $< | while read conf tag; do \ + sed 's/#.*$//;/^[ ]*$/d' $< | while read conf tag; do \ test `expr '$(config-machine)-$(config-vendor)-$(config-os)' \ : "$$conf"` != 0 || continue; \ echo "$$tag" | sed > $@.new \ @@ -142,3 +161,31 @@ $(objpfx)abi-tag.h: $(..)abi-tags done if test -r $@.new; then mv -f $@.new $@; \ else echo >&2 'This configuration not matched in $<'; exit 1; fi + +all-Banner-files = $(wildcard $(addsuffix /Banner, \ + $(addprefix $(..), $(subdirs)))) +$(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files) + $(make-target-directory) + (case $(config-os) in \ + linux*) version=`(echo -e "#include \nUTS_RELEASE"\ + | $(CC) -E -P - | \ + sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\ + if [ -z "$$version" ]; then \ + if [ -r /proc/version ]; then \ + version=`sed 's/.*version \([^ ]*\) .*/>>\1< $@T + mv -f $@T $@ diff --git a/csu/munch-tmpl.c b/csu/munch-tmpl.c new file mode 100644 index 0000000000..c24eb89787 --- /dev/null +++ b/csu/munch-tmpl.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1991, 1995, 1997 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 + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include + + +EXTERNS + +void +__libc_init (int argc, char **argv, char **envp) +{ + CALLS + +#ifdef HAVE_INITFINI + { + /* These functions are defined in crti.o to run the .init and .fini + sections, which are used for initializers and finalizers. */ + extern void _init __P ((void)), _fini __P ((void)); + atexit (&_fini); /* Arrange for _fini to run at exit. */ + _init (); + } +#endif +} diff --git a/csu/munch.awk b/csu/munch.awk new file mode 100644 index 0000000000..1ed68686c1 --- /dev/null +++ b/csu/munch.awk @@ -0,0 +1,11 @@ +BEGIN { special = 0 } + +/EXTERNS/ { ndirs = split(subdirs, dirs) + for (i = 1; i <= ndirs; ++i) + printf "extern void __init_%s __P ((int argc, char **argv, char **envp));\n", dirs[i] + special = 1 } +/CALLS/ { ndirs = split(subdirs, dirs) + for (i = 1; i <= ndirs; ++i) printf " __init_%s (argc, argv, envp);\n", dirs[i] + special = 1 } + +{ if (special == 0) print $0; special = 0 } diff --git a/csu/set-init.c b/csu/set-init.c new file mode 100644 index 0000000000..4aea847db5 --- /dev/null +++ b/csu/set-init.c @@ -0,0 +1,23 @@ +/* Copyright (C) 1991, 1992, 1994, 1995, 1997 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 + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include +#include + +DEFINE_HOOK_RUNNER (__libc_subinit, __libc_init, + (int argc, char **argv, char **envp), (argc, argv, envp)) diff --git a/csu/version.c b/csu/version.c new file mode 100644 index 0000000000..2285c75506 --- /dev/null +++ b/csu/version.c @@ -0,0 +1,73 @@ +/* Copyright (C) 1991,92,93,94,95,96,97,98 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 + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include "version.h" +#include + +static const char __libc_release[] = RELEASE; +static const char __libc_version[] = VERSION; + +static const char banner[] = +"GNU C Library "RELEASE" release version "VERSION", by Roland McGrath et al.\n\ +Copyright (C) 1992, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.\n\ +This is free software; see the source for copying conditions.\n\ +There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\ +PARTICULAR PURPOSE.\n\ +Compiled by GNU CC version "__VERSION__".\n" +#include "version-info.h" +"Report bugs using the `glibcbug' script to .\n"; + +#include + +void +__libc_print_version (void) +{ + __write (STDOUT_FILENO, banner, sizeof banner - 1); +} + +const char * +__gnu_get_libc_release (void) +{ + return __libc_release; +} +weak_alias (__gnu_get_libc_release, gnu_get_libc_release) + +const char * +__gnu_get_libc_version (void) +{ + return __libc_version; +} +weak_alias (__gnu_get_libc_version, gnu_get_libc_version) + +#ifdef HAVE_ELF +/* This function is the entry point for the shared object. + Running the library as a program will get here. */ + +void +__libc_main (void) +{ + __libc_print_version (); + _exit (0); +} +#endif + +/* + Local Variables: + version-control: never + End: +*/ diff --git a/elf/Makefile b/elf/Makefile index 9ce3ac51e2..2c164158b3 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -39,7 +39,7 @@ ld-map = $(libc-map) distribute = $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.h \ dl-hash.h soinit.c sofini.c ldd.sh.in ldd.bash.in eval.c \ genrtldtbl.awk atomicity.h dl-procinfo.h ldsodefs.h \ - dl-librecon.h + dl-librecon.h interp.c extra-libs = libdl extra-libs-others = $(extra-libs) @@ -54,7 +54,7 @@ all: # Make this the default target; it will be defined in Rules. include ../Makeconfig ifeq (yes,$(build-shared)) -extra-objs = $(rtld-routines:=.os) soinit.os sofini.os eval.os +extra-objs = $(rtld-routines:=.os) soinit.os sofini.os eval.os interp.os generated = librtld.os dl-allobjs.os ld.so trusted-dirs.h rtldtbl.h install-others = $(inst_slibdir)/$(rtld-installed-name) install-bin = ldd @@ -124,6 +124,9 @@ endef # The dl code in the static libc needs a default library path. CFLAGS-dl-support.c = -D'DEFAULT_RPATH="$(default-rpath)"' +# interp.c exists just to get this string into the libraries. +CFLAGS-interp.c = -D'RUNTIME_LINKER="$(slibdir)/$(rtld-installed-name)"' + ifneq (ld.so,$(rtld-installed-name)) # Make sure ld.so.1 exists in the build directory so we can link # against it. diff --git a/elf/interp.c b/elf/interp.c new file mode 100644 index 0000000000..540a303620 --- /dev/null +++ b/elf/interp.c @@ -0,0 +1,21 @@ +/* interp - add information about dynamic loader to shared library objects. + Copyright (C) 1996 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 + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +const char __invoke_dynamic_linker__[] __attribute__ ((section (".interp"))) + = RUNTIME_LINKER; diff --git a/interp.c b/interp.c deleted file mode 100644 index 540a303620..0000000000 --- a/interp.c +++ /dev/null @@ -1,21 +0,0 @@ -/* interp - add information about dynamic loader to shared library objects. - Copyright (C) 1996 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 - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -const char __invoke_dynamic_linker__[] __attribute__ ((section (".interp"))) - = RUNTIME_LINKER; diff --git a/intl/locale.alias b/intl/locale.alias index 61dfe917dd..175dd8cd31 100644 --- a/intl/locale.alias +++ b/intl/locale.alias @@ -39,7 +39,7 @@ greek el_GR.ISO-8859-7 hebrew iw_IL.ISO-8859-8 hungarian hu_HU.ISO-8859-2 icelandic is_IS.ISO-8859-1 -italian it_CH.ISO-8859-1 +italian it_IT.ISO-8859-1 japanese ja_JP.EUC norwegian no_NO.ISO-8859-1 polish pl_PL.ISO-8859-2 diff --git a/munch-tmpl.c b/munch-tmpl.c deleted file mode 100644 index c24eb89787..0000000000 --- a/munch-tmpl.c +++ /dev/null @@ -1,38 +0,0 @@ -/* Copyright (C) 1991, 1995, 1997 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 - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#include - - -EXTERNS - -void -__libc_init (int argc, char **argv, char **envp) -{ - CALLS - -#ifdef HAVE_INITFINI - { - /* These functions are defined in crti.o to run the .init and .fini - sections, which are used for initializers and finalizers. */ - extern void _init __P ((void)), _fini __P ((void)); - atexit (&_fini); /* Arrange for _fini to run at exit. */ - _init (); - } -#endif -} diff --git a/munch.awk b/munch.awk deleted file mode 100644 index 1ed68686c1..0000000000 --- a/munch.awk +++ /dev/null @@ -1,11 +0,0 @@ -BEGIN { special = 0 } - -/EXTERNS/ { ndirs = split(subdirs, dirs) - for (i = 1; i <= ndirs; ++i) - printf "extern void __init_%s __P ((int argc, char **argv, char **envp));\n", dirs[i] - special = 1 } -/CALLS/ { ndirs = split(subdirs, dirs) - for (i = 1; i <= ndirs; ++i) printf " __init_%s (argc, argv, envp);\n", dirs[i] - special = 1 } - -{ if (special == 0) print $0; special = 0 } diff --git a/set-init.c b/set-init.c deleted file mode 100644 index 4aea847db5..0000000000 --- a/set-init.c +++ /dev/null @@ -1,23 +0,0 @@ -/* Copyright (C) 1991, 1992, 1994, 1995, 1997 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 - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#include -#include - -DEFINE_HOOK_RUNNER (__libc_subinit, __libc_init, - (int argc, char **argv, char **envp), (argc, argv, envp)) diff --git a/sunrpc/Makefile b/sunrpc/Makefile index 5ea09e6a4b..2cdcbb9595 100644 --- a/sunrpc/Makefile +++ b/sunrpc/Makefile @@ -54,7 +54,7 @@ headers = $(addprefix rpc/,auth.h auth_unix.h clnt.h netdb.h pmap_clnt.h \ des_crypt.h key_prot.h rpc_des.h) \ $(rpcsvc:%=rpcsvc/%) install-others = $(inst_sysconfdir)/rpc -generated = $(rpcsvc:%.x=x%.c) $(rpcsvc:%.x=x%.stmp) \ +generated = $(rpcsvc:%.x=rpcsvc/%.h) $(rpcsvc:%.x=x%.c) $(rpcsvc:%.x=x%.stmp) \ rpc-proto.c rpc-proto.d rpcgen generated-dirs = rpcsvc diff --git a/version.c b/version.c deleted file mode 100644 index 2285c75506..0000000000 --- a/version.c +++ /dev/null @@ -1,73 +0,0 @@ -/* Copyright (C) 1991,92,93,94,95,96,97,98 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 - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#include "version.h" -#include - -static const char __libc_release[] = RELEASE; -static const char __libc_version[] = VERSION; - -static const char banner[] = -"GNU C Library "RELEASE" release version "VERSION", by Roland McGrath et al.\n\ -Copyright (C) 1992, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.\n\ -This is free software; see the source for copying conditions.\n\ -There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\ -PARTICULAR PURPOSE.\n\ -Compiled by GNU CC version "__VERSION__".\n" -#include "version-info.h" -"Report bugs using the `glibcbug' script to .\n"; - -#include - -void -__libc_print_version (void) -{ - __write (STDOUT_FILENO, banner, sizeof banner - 1); -} - -const char * -__gnu_get_libc_release (void) -{ - return __libc_release; -} -weak_alias (__gnu_get_libc_release, gnu_get_libc_release) - -const char * -__gnu_get_libc_version (void) -{ - return __libc_version; -} -weak_alias (__gnu_get_libc_version, gnu_get_libc_version) - -#ifdef HAVE_ELF -/* This function is the entry point for the shared object. - Running the library as a program will get here. */ - -void -__libc_main (void) -{ - __libc_print_version (); - _exit (0); -} -#endif - -/* - Local Variables: - version-control: never - End: -*/ -- cgit v1.2.3