sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Name : mmap.h sl@0: * Part of : backend sl@0: * Internal header for mmap implementation sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef _MMAP_H_ sl@0: #define _MMAP_H_ sl@0: sl@0: #include sl@0: #include "reent.h" sl@0: sl@0: struct MappedMemory sl@0: { sl@0: int fd; sl@0: off_t offset; sl@0: size_t len; sl@0: int flags; sl@0: int memid; sl@0: void* addr; sl@0: void* fdescaddr; sl@0: size_t maplen; sl@0: }; sl@0: sl@0: // Function prototypes sl@0: __BEGIN_DECLS sl@0: sl@0: IMPORT_C void* _mmap_r(struct _reent *r, size_t len, int prot, int flags, int fildes, off_t offset); sl@0: sl@0: IMPORT_C int _mprotect_r(struct _reent *,const void *, size_t, int); sl@0: sl@0: IMPORT_C int _msync_r(struct _reent *,void *, size_t, int); sl@0: sl@0: IMPORT_C int _munlock_r(struct _reent *,const void *, size_t); sl@0: sl@0: IMPORT_C int _munmap_r(struct _reent *,void *, size_t); sl@0: sl@0: __END_DECLS sl@0: sl@0: #endif /* !_MMAP_H_ */