changed ENOMEM error message

This commit is contained in:
Mark Johannes
1996-08-15 19:38:46 +00:00
parent 7fb19bbb79
commit 9ac3e76569
2 changed files with 8 additions and 2 deletions

View File

@@ -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 &&