pthread_attr_setscope: returns ENOTSUP not ENOSYS for unsupport scope

This commit is contained in:
Joel Sherrill
1996-08-14 15:27:14 +00:00
parent dce801df4e
commit 645fc95482
2 changed files with 4 additions and 4 deletions

View File

@@ -158,9 +158,9 @@ void *POSIX_Init(
status = pthread_attr_setscope( NULL, PTHREAD_SCOPE_PROCESS );
assert( status == EINVAL );
puts( "Init: pthread_attr_setscope - ENOSYS" );
puts( "Init: pthread_attr_setscope - ENOTSUP" );
status = pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM );
assert( status == ENOSYS );
assert( status == ENOTSUP );
puts( "Init: pthread_attr_setscope - EINVAL (not initialized attr)" );
status = pthread_attr_setscope( &destroyed_attr, PTHREAD_SCOPE_PROCESS );

View File

@@ -158,9 +158,9 @@ void *POSIX_Init(
status = pthread_attr_setscope( NULL, PTHREAD_SCOPE_PROCESS );
assert( status == EINVAL );
puts( "Init: pthread_attr_setscope - ENOSYS" );
puts( "Init: pthread_attr_setscope - ENOTSUP" );
status = pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM );
assert( status == ENOSYS );
assert( status == ENOTSUP );
puts( "Init: pthread_attr_setscope - EINVAL (not initialized attr)" );
status = pthread_attr_setscope( &destroyed_attr, PTHREAD_SCOPE_PROCESS );