From 5b3e496d6a0a70427a87083bee63722122ed9701 Mon Sep 17 00:00:00 2001 From: bms Date: Sat, 9 Aug 2003 03:23:24 +0000 Subject: Add the POSIX 1003.1-2001 posix_madvise() interface. PR: standards/54634 Reviewed by: das Approved by: jake (mentor) --- lib/libc/gen/Makefile.inc | 3 ++- lib/libc/gen/pmadvise.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/libc/gen') 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 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); } -- cgit v1.1