void *POSIX_Init( void *ignored ) { TEST_BEGIN(); /* Initialize thread id */ Init_id = pthread_self(); Validate_setaffinity_errors(); Validate_getaffinity_errors(); Validate_affinity(); TEST_END(); rtems_test_exit(0); }
static void Init(rtems_task_argument arg) { int sc; TEST_BEGIN(); /* Initialize thread id */ sc = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &Init_id ); directive_failed( sc, "Identify Init Task" ); Validate_setaffinity_errors(); Validate_getaffinity_errors(); Validate_affinity(); TEST_END(); rtems_test_exit(0); }