aboutsummaryrefslogtreecommitdiff
path: root/nptl/semaphoreP.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-12-12 13:17:21 -0800
committerRoland McGrath <roland@hack.frob.com>2014-12-12 15:01:30 -0800
commite4f639e4a106d90c6f3159230788653fd6e40a26 (patch)
tree0273305e960bcb5f46e3debc523eecc312e1bba8 /nptl/semaphoreP.h
parentc76d1ff5149bd03210f2bb8cd64446c51618d016 (diff)
downloadglibc-e4f639e4a106d90c6f3159230788653fd6e40a26.zip
glibc-e4f639e4a106d90c6f3159230788653fd6e40a26.tar.gz
glibc-e4f639e4a106d90c6f3159230788653fd6e40a26.tar.bz2
NPTL: Refactor named semaphore code to use shm-directory.h
Diffstat (limited to 'nptl/semaphoreP.h')
-rw-r--r--nptl/semaphoreP.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/nptl/semaphoreP.h b/nptl/semaphoreP.h
index 5e6a701..7ab5039 100644
--- a/nptl/semaphoreP.h
+++ b/nptl/semaphoreP.h
@@ -19,13 +19,7 @@
#include <semaphore.h>
#include "pthreadP.h"
-
-/* Mount point of the shared memory filesystem. */
-struct mountpoint_info
-{
- char *dir;
- size_t dirlen;
-};
+#define SEM_SHM_PREFIX "sem."
/* Keeping track of currently used mappings. */
struct inuse_sem
@@ -38,11 +32,6 @@ struct inuse_sem
};
-/* Variables used in multiple interfaces. */
-extern struct mountpoint_info mountpoint attribute_hidden;
-
-extern pthread_once_t __namedsem_once attribute_hidden;
-
/* The search tree for existing mappings. */
extern void *__sem_mappings attribute_hidden;
@@ -50,9 +39,6 @@ extern void *__sem_mappings attribute_hidden;
extern int __sem_mappings_lock attribute_hidden;
-/* Initializer for mountpoint. */
-extern void __where_is_shmfs (void) attribute_hidden;
-
/* Comparison function for search in tree with existing mappings. */
extern int __sem_search (const void *a, const void *b) attribute_hidden;