epoc32/include/stdapis/sys/mman.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 /*-
     1 /*-
     2  * Copyright (c) 1982, 1986, 1993
     2  * Copyright (c) 1982, 1986, 1993
     3  *	The Regents of the University of California.  All rights reserved.
     3  *	The Regents of the University of California.  All rights reserved.
     4  * © Portions copyright (c) 2006 Symbian Software Ltd. All rights reserved.
       
     5  *
     4  *
     6  * Redistribution and use in source and binary forms, with or without
     5  * Redistribution and use in source and binary forms, with or without
     7  * modification, are permitted provided that the following conditions
     6  * modification, are permitted provided that the following conditions
     8  * are met:
     7  * are met:
     9  * 1. Redistributions of source code must retain the above copyright
     8  * 1. Redistributions of source code must retain the above copyright
    24  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    25  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    26  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    27  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    28  * SUCH DAMAGE.
    27  * SUCH DAMAGE.
    29  * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
    28  *  Portions Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
    30  *	@(#)mman.h	8.2 (Berkeley) 1/9/95
    29  *	@(#)mman.h	8.2 (Berkeley) 1/9/95
    31  * $FreeBSD: src/sys/sys/mman.h,v 1.40 2005/04/02 12:33:31 das Exp $
    30  * $FreeBSD: src/sys/sys/mman.h,v 1.40 2005/04/02 12:33:31 das Exp $
    32  */
    31  */
    33 
    32 
    34 #ifndef _SYS_MMAN_H_
    33 #ifndef _SYS_MMAN_H_
   108  * posix_typed_mem_open().
   107  * posix_typed_mem_open().
   109  */
   108  */
   110 #ifndef _MMAP_DECLARED
   109 #ifndef _MMAP_DECLARED
   111 #define	_MMAP_DECLARED
   110 #define	_MMAP_DECLARED
   112 IMPORT_C void *	mmap(void *, size_t, int, int, int, off_t);
   111 IMPORT_C void *	mmap(void *, size_t, int, int, int, off_t);
       
   112 
       
   113 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
       
   114 #define mmap64	mmap
       
   115 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
       
   116 
   113 #endif
   117 #endif
   114 IMPORT_C int	mprotect(const void *, size_t, int);
   118 IMPORT_C int	mprotect(const void *, size_t, int);
   115 IMPORT_C int	msync(void *, size_t, int);
   119 IMPORT_C int	msync(void *, size_t, int);
   116 IMPORT_C int	munmap(void *, size_t);
   120 IMPORT_C int	munmap(void *, size_t);
       
   121 #if __POSIX_VISIBLE >= 199309
       
   122 IMPORT_C int	shm_open(const char *, int, mode_t);
       
   123 IMPORT_C int	shm_unlink(const char *);
       
   124 #endif
   117 __END_DECLS
   125 __END_DECLS
   118 
   126 
   119 #endif /* !_KERNEL */
   127 #endif /* !_KERNEL */
   120 
   128 
   121 #ifdef __cplusplus
   129 #ifdef __cplusplus