mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-11 15:50:06 +00:00
f332db0256
* version.c (banner): New static const variable, complete version banner text. (__libc_print_version): Use it, and use __write instead of printf. * configure.in (sysnames): Don't cache the value, because it depends only on libc sources. Merge uniquifying third pass into Implies/parent expansion second pass. Report each unique name as it is added in partial report string, terminated when finished. * Makeconfig (sysdep_dir): Move defn before config.status rule that expands it. (sysdep-configures): Variable removed. (config.status): Use its contents directly, tighten up a bit, and include Implies files. * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null. * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink. * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Add comment. * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps. * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as weak alias for _mcount. * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/* Copyright (C) 1991, 92, 93, 94, 95, 96 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., 675 Mass Ave,
|
||
Cambridge, MA 02139, USA. */
|
||
|
||
#include "version.h"
|
||
const char __libc_release[] = RELEASE;
|
||
const char __libc_version[] = VERSION;
|
||
|
||
static const char banner[] =
|
||
"GNU C Library "RELEASE" release version "VERSION", by Roland McGrath et al.\n\
|
||
Compiled by GNU CC version "__VERSION__".\n\
|
||
Copyright (C) 1992, 93, 94, 95, 96 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.";
|
||
|
||
#include <unistd.h>
|
||
|
||
void
|
||
__libc_print_version (void)
|
||
{
|
||
__write (STDOUT_FILENO, banner, sizeof banner - 1);
|
||
}
|
||
|
||
#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:
|
||
*/
|