diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-15 19:38:46 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-15 19:38:46 +0000 |
commit | 9ac3e7656946090d821e6347845bd0ee8aaeb30a (patch) | |
tree | 7adf0eecf83e9b931ac9ffdcc6f24b438816f6c6 /cpukit/posix/src/mutex.c | |
parent | init: added tests for pthread_kill and kill errors. (diff) | |
download | rtems-9ac3e7656946090d821e6347845bd0ee8aaeb30a.tar.bz2 |
changed ENOMEM error message
Diffstat (limited to 'cpukit/posix/src/mutex.c')
-rw-r--r-- | cpukit/posix/src/mutex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index c5b5e3dd4f..9306d24d0b 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -223,6 +223,9 @@ int pthread_mutex_init( if ( attr ) the_attr = attr; else the_attr = &_POSIX_Mutex_Default_attributes; + /* XXX need to check for NULL mutex */ + /* XXX EBUSY if *mutex is a valid id */ + if ( !the_attr->is_initialized ) return EINVAL; @@ -262,7 +265,7 @@ int pthread_mutex_init( if ( !the_mutex ) { _Thread_Enable_dispatch(); - return ENOMEM; + return EAGAIN; } if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED && |