aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-06-12 10:32:18 -0700
committerRoland McGrath <roland@hack.frob.com>2014-06-12 10:32:18 -0700
commite876b09076d859836f948691dee5a1e3b956256e (patch)
tree5ee92f8f789b5d16eb7a6c82dc10d65bcb97f9f6
parentf6b07b3d48eb1d28d033b2c342a8a5571dca2e18 (diff)
downloadglibc-e876b09076d859836f948691dee5a1e3b956256e.zip
glibc-e876b09076d859836f948691dee5a1e3b956256e.tar.gz
glibc-e876b09076d859836f948691dee5a1e3b956256e.tar.bz2
Consolidate NPTL sigprocmask.
-rw-r--r--ChangeLog3
-rw-r--r--nptl/sysdeps/pthread/sigprocmask.c19
-rw-r--r--sysdeps/unix/sysv/linux/sigprocmask.c3
3 files changed, 5 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index b3097e9..0f66198 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-06-12 Roland McGrath <roland@hack.frob.com>
+ * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
+ * nptl/sysdeps/pthread/sigprocmask.c: File removed.
+
* nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
* sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
* nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
diff --git a/nptl/sysdeps/pthread/sigprocmask.c b/nptl/sysdeps/pthread/sigprocmask.c
deleted file mode 100644
index 3c7802a..0000000
--- a/nptl/sysdeps/pthread/sigprocmask.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Copyright (C) 1997-2014 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
- <http://www.gnu.org/licenses/>. */
-
-#include <nptl/pthreadP.h>
-#include <sysdeps/unix/sysv/linux/sigprocmask.c>
diff --git a/sysdeps/unix/sysv/linux/sigprocmask.c b/sysdeps/unix/sysv/linux/sigprocmask.c
index fe0a150..8199874 100644
--- a/sysdeps/unix/sysv/linux/sigprocmask.c
+++ b/sysdeps/unix/sysv/linux/sigprocmask.c
@@ -17,12 +17,13 @@
#include <errno.h>
#include <signal.h>
-#include <string.h> /* Neede for string function builtin redirection. */
+#include <string.h> /* Needed for string function builtin redirection. */
#include <unistd.h>
#include <sysdep.h>
#include <sys/syscall.h>
+#include <nptl/pthreadP.h> /* SIGCANCEL, SIGSETXID */
#include <kernel-features.h>