version.c 1.4 KB

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