mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-21 02:58:29 +08:00
New (moved from posix/src).
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
* Get System Page Size (from SVR4 and 4.2+ BSD)
|
||||
*
|
||||
* This is not a functional version but the SPARC backend for at least
|
||||
* gcc 2.8.1 plus gnat 3.13p and gcc 3.0.1 require it to be there and
|
||||
* return a reasonable value.
|
||||
*/
|
||||
|
||||
size_t getpagesize(void)
|
||||
{
|
||||
return PAGE_SIZE;
|
||||
}
|
||||
Reference in New Issue
Block a user