PR/4269: Chris Demetriou: msync now takes a third argument
This commit is contained in:
parent
84fa30f8f0
commit
e66010e32e
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mman.h,v 1.12 1997/01/22 07:09:18 mikel Exp $ */
|
/* $NetBSD: mman.h,v 1.13 1997/10/16 23:31:21 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1982, 1986, 1993
|
* Copyright (c) 1982, 1986, 1993
|
||||||
|
@ -79,19 +79,26 @@
|
||||||
#define MADV_WILLNEED 3 /* will need these pages */
|
#define MADV_WILLNEED 3 /* will need these pages */
|
||||||
#define MADV_DONTNEED 4 /* dont need these pages */
|
#define MADV_DONTNEED 4 /* dont need these pages */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flags to msync
|
||||||
|
*/
|
||||||
|
#define MS_ASYNC 0x01 /* perform asynchronous writes */
|
||||||
|
#define MS_SYNC 0x02 /* perform synchronous writes */
|
||||||
|
#define MS_INVALIDATE 0x04 /* invalidate cached data */
|
||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
/* Some of these int's should probably be size_t's */
|
/* Some of these int's should probably be size_t's */
|
||||||
caddr_t mmap __P((caddr_t, size_t, int, int, int, off_t));
|
void *mmap __P((void *, size_t, int, int, int, off_t));
|
||||||
int mprotect __P((caddr_t, size_t, int));
|
int munmap __P((void *, size_t));
|
||||||
int munmap __P((caddr_t, size_t));
|
int mprotect __P((void *, size_t, int));
|
||||||
int msync __P((caddr_t, size_t));
|
int msync __P((void *, size_t, int));
|
||||||
int mlock __P((caddr_t, size_t));
|
int mlock __P((void *, size_t));
|
||||||
int munlock __P((caddr_t, size_t));
|
int munlock __P((void *, size_t));
|
||||||
int madvise __P((caddr_t, size_t, int));
|
int madvise __P((void *, size_t, int));
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* !_KERNEL */
|
#endif /* !_KERNEL */
|
||||||
|
|
Loading…
Reference in New Issue