/*
    AUTOMATICALLY GENERATED BY tspec 2.10
    API SUBSET: svid3:sys/mman.h (VERSION 2.6)
*/

#ifndef __TDF_SVID3_SYS_MMAN_H
#define __TDF_SVID3_SYS_MMAN_H

#ifdef __cplusplus
extern "C" {
#endif

#pragma TenDRA declaration block api__svid3__sys_mman begin

#ifndef __TDF_SVID3__CONFIG
#pragma extend interface "../../shared/svid3.api/config.h"
#endif /* __TDF_SVID3__CONFIG */
#if __SYSV_KERNEL_EXTENSION
#ifndef __TDF_SVID3_SYS_TYPES_H
#pragma extend interface "../../svid3.api/sys/types.h"
#endif /* __TDF_SVID3_SYS_TYPES_H */
#pragma token EXP const : int : PROT_READ # svid3.mman.PROT_READ
#pragma token EXP const : int : PROT_WRITE # svid3.mman.PROT_WRITE
#pragma token EXP const : int : PROT_EXEC # svid3.mman.PROT_EXEC
#pragma token EXP const : int : PROT_NONE # svid3.mman.PROT_NONE
#pragma token EXP const : int : MAP_SHARED # svid3.mman.MAP_SHARED
#pragma token EXP const : int : MAP_PRIVATE # svid3.mman.MAP_PRIVATE
#pragma token EXP const : int : MAP_FIXED # svid3.mman.MAP_FIXED
#pragma token EXP const : int : MS_ASYNC # svid3.mman.MS_ASYNC
#pragma token EXP const : int : MS_SYNC # svid3.mman.MS_SYNC
#pragma token EXP const : int : MS_INVALIDATE # svid3.mman.MS_INVALIDATE
#pragma token FUNC caddr_t (caddr_t, size_t, int, int, int, off_t) : mmap # svid3.mman.mmap
#pragma token FUNC int (caddr_t, size_t, int) : mprotect # svid3.mman.mprotect
#pragma token FUNC int (caddr_t, size_t, int) : msync # svid3.mman.msync
#pragma token FUNC int (caddr_t, size_t) : munmap # svid3.mman.munmap
#if __SYSV_REAL_TIME
#pragma token EXP const : int : SHARED # svid3.mman.SHARED
#pragma token EXP const : int : PRIVATE # svid3.mman.PRIVATE
#pragma token EXP const : int : PROC_TEXT # svid3.mman.PROC_TEXT
#pragma token EXP const : int : PROC_DATA # svid3.mman.PROC_DATA
#pragma token EXP const : int : MC_LOCK # svid3.mman.MC_LOCK
#pragma token EXP const : int : MC_LOCKAS # svid3.mman.MC_LOCKAS
#pragma token EXP const : int : MC_SYNC # svid3.mman.MC_SYNC
#pragma token EXP const : int : MC_UNLOCK # svid3.mman.MC_UNLOCK
#pragma token EXP const : int : MC_UNLOCKAS # svid3.mman.MC_UNLOCKAS
#pragma token EXP const : int : MCL_CURRENT # svid3.mman.MCL_CURRENT
#pragma token EXP const : int : MCL_FUTURE # svid3.mman.MCL_FUTURE
/* Error in book? */
#pragma token FUNC int (caddr_t, size_t, caddr_t, int, int, int) : memcntl # svid3.mman.memcntl
#pragma token FUNC int (caddr_t, size_t) : mlock # svid3.mman.mlock
#pragma token FUNC int (caddr_t, size_t) : munlock # svid3.mman.munlock
#pragma token FUNC int (int) : mlockall # svid3.mman.mlockall
#pragma token FUNC int (void) : munlockall # svid3.mman.munlockall
#endif /* __SYSV_REAL_TIME */
#endif /* __SYSV_KERNEL_EXTENSION */

#if __SYSV_KERNEL_EXTENSION
#pragma interface PROT_READ PROT_WRITE PROT_EXEC PROT_NONE MAP_SHARED
#pragma interface MAP_PRIVATE MAP_FIXED MS_ASYNC MS_SYNC MS_INVALIDATE mmap
#pragma interface mprotect msync munmap
#if __SYSV_REAL_TIME
#pragma interface SHARED PRIVATE PROC_TEXT PROC_DATA MC_LOCK MC_LOCKAS
#pragma interface MC_SYNC MC_UNLOCK MC_UNLOCKAS MCL_CURRENT MCL_FUTURE
#pragma interface memcntl mlock munlock mlockall munlockall
#endif /* __SYSV_REAL_TIME */
#endif /* __SYSV_KERNEL_EXTENSION */

#pragma TenDRA declaration block end

#ifdef __cplusplus
}
#endif

#endif /* __TDF_SVID3_SYS_MMAN_H */
