diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-08 15:25:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-12 11:50:39 +0200 |
commit | 18b32d7635efbd1345846f786a51281437bcfd54 (patch) | |
tree | 816bed3574fb63a0bc5fc3acf83a3e8a1a003753 /cpukit/posix/src | |
parent | serdbg: Fix warning (diff) | |
download | rtems-18b32d7635efbd1345846f786a51281437bcfd54.tar.bz2 |
posix: Ignore pshared for semaphores
Since we have only one process, sharing between processes is trivial.
Close #3124.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/semaphorecreatesupp.c | 7 | ||||
-rw-r--r-- | cpukit/posix/src/seminit.c | 1 | ||||
-rw-r--r-- | cpukit/posix/src/semopen.c | 1 |
3 files changed, 0 insertions, 9 deletions
diff --git a/cpukit/posix/src/semaphorecreatesupp.c b/cpukit/posix/src/semaphorecreatesupp.c index d66e1942c9..4a33336230 100644 --- a/cpukit/posix/src/semaphorecreatesupp.c +++ b/cpukit/posix/src/semaphorecreatesupp.c @@ -42,7 +42,6 @@ int _POSIX_Semaphore_Create_support( const char *name_arg, size_t name_len, - int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem ) @@ -50,10 +49,6 @@ int _POSIX_Semaphore_Create_support( POSIX_Semaphore_Control *the_semaphore; char *name; - /* Sharing semaphores among processes is not currently supported */ - if (pshared != 0) - rtems_set_errno_and_return_minus_one( ENOSYS ); - /* * Make a copy of the user's string for name just in case it was * dynamically constructed. @@ -73,8 +68,6 @@ int _POSIX_Semaphore_Create_support( rtems_set_errno_and_return_minus_one( ENOSPC ); } - the_semaphore->process_shared = pshared; - if ( name ) { the_semaphore->named = true; the_semaphore->open_count = 1; diff --git a/cpukit/posix/src/seminit.c b/cpukit/posix/src/seminit.c index 249edf67ee..cf06f6ce41 100644 --- a/cpukit/posix/src/seminit.c +++ b/cpukit/posix/src/seminit.c @@ -55,7 +55,6 @@ int sem_init( status = _POSIX_Semaphore_Create_support( NULL, 0, - pshared, value, &the_semaphore ); diff --git a/cpukit/posix/src/semopen.c b/cpukit/posix/src/semopen.c index b844b08bb4..98163cca8d 100644 --- a/cpukit/posix/src/semopen.c +++ b/cpukit/posix/src/semopen.c @@ -119,7 +119,6 @@ sem_t *sem_open( status =_POSIX_Semaphore_Create_support( name, name_len, - false, /* not shared across processes */ value, &the_semaphore ); |