mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 21:44:05 +08:00
2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsysconf/init.c, psxsysconf/psxsysconf.scn: Add test for getpagesize().
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* psxsysconf/init.c, psxsysconf/psxsysconf.scn: Add test for
|
||||
getpagesize().
|
||||
|
||||
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* psxclock/init.c, psxclock/psxclock.scn, psxenosys/init.c,
|
||||
|
||||
@@ -53,6 +53,11 @@ void *POSIX_Init(
|
||||
if ( sc == -1 )
|
||||
rtems_test_exit(0);
|
||||
|
||||
sc = getpagesize();
|
||||
printf( "getpagesize = %d\n", sc );
|
||||
if ( sc == -1 )
|
||||
rtems_test_exit(0);
|
||||
|
||||
sc = sysconf( 0x12345678 );
|
||||
printf( "sysconf - bad parameter = %d errno=%s\n", sc, strerror(errno) );
|
||||
if ( (sc != -1) || (errno != EINVAL) )
|
||||
|
||||
@@ -5,6 +5,7 @@ sysconf - _SC_CLK_TCK=100
|
||||
sysconf - _SC_OPEN_MAX=3
|
||||
sysconf - _SC_GETPW_R_SIZE_MAX=1024
|
||||
sysconf - _SC_PAGESIZE=4096
|
||||
getpagesize = 4096
|
||||
sysconf - bad parameter = -1 errno=Invalid argument
|
||||
sysconf - (SPARC only) _SC_STACK_PROT=4096
|
||||
*** END OF POSIX TEST SYSCONF ***
|
||||
|
||||
Reference in New Issue
Block a user