diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-14 15:27:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-14 15:27:14 +0000 |
commit | 645fc9548232d49537ec07cd06faa513572a3f24 (patch) | |
tree | f0993b158518aeba0100171a2986b7c97ba707a9 | |
parent | pthread_cond_destroy: added enable dispatch to EBUSY case (diff) | |
download | rtems-645fc9548232d49537ec07cd06faa513572a3f24.tar.bz2 |
pthread_attr_setscope: returns ENOTSUP not ENOSYS for unsupport scope
-rw-r--r-- | c/src/tests/psxtests/psx07/init.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psx07/init.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/c/src/tests/psxtests/psx07/init.c b/c/src/tests/psxtests/psx07/init.c index 830f82920c..4cd65a8426 100644 --- a/c/src/tests/psxtests/psx07/init.c +++ b/c/src/tests/psxtests/psx07/init.c @@ -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 ); diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c index 830f82920c..4cd65a8426 100644 --- a/testsuites/psxtests/psx07/init.c +++ b/testsuites/psxtests/psx07/init.c @@ -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 ); |