forked from Imagelibrary/rtems
2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add getpagesize(). Now required by GNU Ada. * posix/src/getpagesize.c: New file.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* posix/Makefile.am: Add getpagesize(). Now required by GNU Ada.
|
||||
* posix/src/getpagesize.c: New file.
|
||||
|
||||
2009-09-16 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* score/src/userextaddapiset.c: Disable code that is only used when
|
||||
|
||||
@@ -173,7 +173,7 @@ EXTRA_DIST += src/README.mqueue
|
||||
libposix_a_SOURCES += src/sched_getparam.c src/sched_getprioritymax.c \
|
||||
src/sched_getprioritymin.c src/sched_getscheduler.c \
|
||||
src/sched_rr_get_interval.c src/sched_setparam.c \
|
||||
src/sched_setscheduler.c src/sched_yield.c src/sysconf.c
|
||||
src/sched_setscheduler.c src/sched_yield.c src/sysconf.c src/getpagesize.c
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
22
cpukit/posix/src/getpagesize.c
Normal file
22
cpukit/posix/src/getpagesize.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
size_t getpagesize(void)
|
||||
{
|
||||
return PAGE_SIZE;
|
||||
}
|
||||
Reference in New Issue
Block a user