summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2003-08-09 03:23:24 +0000
committerbms <bms@FreeBSD.org>2003-08-09 03:23:24 +0000
commit5b3e496d6a0a70427a87083bee63722122ed9701 (patch)
tree9bd2e3958aed729b89eb0f7c0b3fb003f049354c /lib/libc/gen
parent5d2c6e8c37e32d5a6ba172b69829289710aaccfa (diff)
downloadFreeBSD-src-5b3e496d6a0a70427a87083bee63722122ed9701.zip
FreeBSD-src-5b3e496d6a0a70427a87083bee63722122ed9701.tar.gz
Add the POSIX 1003.1-2001 posix_madvise() interface.
PR: standards/54634 Reviewed by: das Approved by: jake (mentor)
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/Makefile.inc3
-rw-r--r--lib/libc/gen/pmadvise.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 9ab8616..e26ed2f 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -19,7 +19,8 @@ SRCS+= __xuname.c _pthread_stubs.c _rand48.c _spinlock_stub.c _thread_init.c \
initgroups.c isatty.c jrand48.c lcong48.c \
lockf.c lrand48.c mrand48.c nice.c \
nlist.c nrand48.c ntp_gettime.c opendir.c \
- pause.c popen.c posixshm.c pselect.c psignal.c pw_scan.c pwcache.c \
+ pause.c pmadvise.c popen.c posixshm.c pselect.c \
+ psignal.c pw_scan.c pwcache.c \
raise.c readdir.c readpassphrase.c rewinddir.c \
scandir.c seed48.c seekdir.c semctl.c \
setdomainname.c sethostname.c setjmperr.c setmode.c \
diff --git a/lib/libc/gen/pmadvise.c b/lib/libc/gen/pmadvise.c
index 4024d64..60cef63 100644
--- a/lib/libc/gen/pmadvise.c
+++ b/lib/libc/gen/pmadvise.c
@@ -10,7 +10,7 @@ __FBSDID("$FreeBSD$");
#include <sys/mman.h>
int
-(posix_madvise)(void *address, size_t size, int how)
+posix_madvise(void *address, size_t size, int how)
{
- return posix_madvise(address, size, how);
+ return madvise(address, size, how);
}
OpenPOWER on IntegriCloud