mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/src/sysconf.c: Add support for _SC_PAGESIZE (PR 1215).
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* posix/src/sysconf.c: Add support for _SC_PAGESIZE (PR 1215).
|
||||||
* score/inline/rtems/score/coremsg.inl: More size_t and consts.
|
* score/inline/rtems/score/coremsg.inl: More size_t and consts.
|
||||||
|
|
||||||
2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
#include <rtems/system.h>
|
#include <rtems/system.h>
|
||||||
#include <rtems/score/tod.h>
|
#include <rtems/score/tod.h>
|
||||||
|
|
||||||
|
#include <sys/param.h>
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
*
|
*
|
||||||
* 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95
|
* 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95
|
||||||
@@ -35,6 +37,9 @@ long sysconf(
|
|||||||
case _SC_GETPW_R_SIZE_MAX:
|
case _SC_GETPW_R_SIZE_MAX:
|
||||||
return 1024;
|
return 1024;
|
||||||
|
|
||||||
|
case _SC_PAGESIZE:
|
||||||
|
return PAGE_SIZE;
|
||||||
|
|
||||||
#if defined(__sparc__)
|
#if defined(__sparc__)
|
||||||
case 515: /* Solaris _SC_STACK_PROT */
|
case 515: /* Solaris _SC_STACK_PROT */
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user