mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
2009-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/getpagesize.c, posix/Makefile.am: Eliminate one copy of getpagesize() and make it return an int. * posix/src/getpagesize.c: Removed.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libcsupport/src/getpagesize.c, posix/Makefile.am: Eliminate one copy
|
||||
of getpagesize() and make it return an int.
|
||||
* posix/src/getpagesize.c: Removed.
|
||||
|
||||
2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* posix/Makefile.am: Add getpagesize(). Now required by GNU Ada.
|
||||
|
||||
@@ -9,16 +9,14 @@
|
||||
#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)
|
||||
int getpagesize(void)
|
||||
{
|
||||
return PAGE_SIZE;
|
||||
}
|
||||
|
||||
@@ -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/getpagesize.c
|
||||
src/sched_setscheduler.c src/sched_yield.c src/sysconf.c
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
* 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