From e4f639e4a106d90c6f3159230788653fd6e40a26 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 12 Dec 2014 13:17:21 -0800 Subject: NPTL: Refactor named semaphore code to use shm-directory.h --- nptl/semaphoreP.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'nptl/semaphoreP.h') diff --git a/nptl/semaphoreP.h b/nptl/semaphoreP.h index 5e6a701970..7ab50391cb 100644 --- a/nptl/semaphoreP.h +++ b/nptl/semaphoreP.h @@ -19,13 +19,7 @@ #include #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; -- cgit 1.4.1