diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 18:08:38 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 18:08:38 +0200 |
commit | 24f261f27fb8fd19ae294ff2a13bc5b7a0bafc91 (patch) | |
tree | 951f4d5f87bbd0183d63f8b10adc42006251f455 /nptl | |
parent | 2b6a4307e96d0ffffb72edada27574c4658bd9a0 (diff) | |
download | glibc-24f261f27fb8fd19ae294ff2a13bc5b7a0bafc91.tar glibc-24f261f27fb8fd19ae294ff2a13bc5b7a0bafc91.tar.gz glibc-24f261f27fb8fd19ae294ff2a13bc5b7a0bafc91.tar.bz2 glibc-24f261f27fb8fd19ae294ff2a13bc5b7a0bafc91.zip |
nptl: Remove __h_errno_location from libpthread
The existing definition in libc will be used instead.
The symbol was moved (that is, removed) using
scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/Makefile | 1 | ||||
-rw-r--r-- | nptl/Versions | 1 | ||||
-rw-r--r-- | nptl/herrno.c | 34 |
3 files changed, 0 insertions, 36 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 80b699b750..fba3c8153e 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -148,7 +148,6 @@ libpthread-routines = \ flockfile \ ftrylockfile \ funlockfile \ - herrno \ libpthread-compat \ nptl-init \ nptlfreeres \ diff --git a/nptl/Versions b/nptl/Versions index 6982b17850..03e159ee0f 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -246,7 +246,6 @@ libpthread { _IO_ftrylockfile; _IO_funlockfile; __errno_location; - __h_errno_location; _exit; flockfile; ftrylockfile; diff --git a/nptl/herrno.c b/nptl/herrno.c deleted file mode 100644 index 0e1239d1b1..0000000000 --- a/nptl/herrno.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 1996-2021 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 Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <https://www.gnu.org/licenses/>. */ - -#include <features.h> -#include <netdb.h> -#undef h_errno - -#include <tls.h> - -/* We need to have the error status variable of the resolver - accessible in the libc. */ -extern __thread int __h_errno; - - -/* When threaded, h_errno may be a per-thread variable. */ -int * -__h_errno_location (void) -{ - return &__h_errno; -} |