]> git.ipfire.org Git - thirdparty/glibc.git/blame - nptl/version.c
Add per-thread cache to malloc
[thirdparty/glibc.git] / nptl / version.c
CommitLineData
e436eb79 1/* Entry point for libpthread DSO.
bfff8b1b 2 Copyright (C) 2002-2017 Free Software Foundation, Inc.
fb48047a
UD
3 This file is part of the GNU C Library.
4 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
fb48047a
UD
19
20#include <unistd.h>
21#include <sysdep.h>
22
23
24static const char banner[] =
25#include "banner.h"
58b587c1 26"Copyright (C) 2017 Free Software Foundation, Inc.\n\
fb48047a
UD
27This is free software; see the source for copying conditions.\n\
28There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\
09d65ff3 29PARTICULAR PURPOSE.\n"
09d65ff3 30"Forced unwind support included.\n"
09d65ff3 31;
fb48047a
UD
32
33
e436eb79
RM
34/* This is made the e_entry of libpthread.so by LDFLAGS-pthread.so. */
35__attribute__ ((noreturn))
fb48047a
UD
36void
37__nptl_main (void)
38{
f05e73f6 39 __libc_write (STDOUT_FILENO, banner, sizeof banner - 1);
fb48047a
UD
40 _exit (0);
41}