[netcore] Implement Thread.GetCurrentProcessorId (#18450)
[mono-project.git] / mono / metadata / file-mmap.h
bloba30f5668bebd1b7daba6abc79e7f642b2e8a9a3c
1 /**
2 * \file
3 * Managed mmap wrappers.
5 * Authors:
6 * Rodrigo Kumpera
8 * Copyright 2014 Xamarin Inc (http://www.xamarin.com)
9 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
12 #ifndef _MONO_METADATA_FILE_MMAP_H_
13 #define _MONO_METADATA_FILE_MMAP_H_
15 #include <config.h>
16 #include <glib.h>
18 #include <mono/metadata/object-internals.h>
19 #include <mono/utils/mono-compiler.h>
20 #include <mono/metadata/icalls.h>
22 ICALL_EXPORT
23 void
24 mono_mmap_close (void *mmap_handle, MonoError *error);
26 // inheritability is an enum with the values 0 and 1.
27 ICALL_EXPORT
28 void
29 mono_mmap_configure_inheritability (void *mmap_handle, gint32 inheritability, MonoError *error);
31 ICALL_EXPORT
32 void
33 mono_mmap_flush (void *mmap_handle, MonoError *error);
35 ICALL_EXPORT
36 void*
37 mono_mmap_open_file (const gunichar2 *path, gint path_length, int mode, const gunichar2 *mapName, gint mapName_length, gint64 *capacity, int access, int options, int *win32error, MonoError *error);
39 ICALL_EXPORT
40 void*
41 mono_mmap_open_handle (void *handle, const gunichar2 *mapName, gint mapName_length, gint64 *capacity, int access, int options, int *win32error, MonoError *error);
43 ICALL_EXPORT
44 int
45 mono_mmap_map (void *handle, gint64 offset, gint64 *size, int access, void **mmap_handle, void **base_address, MonoError *error);
47 ICALL_EXPORT
48 MonoBoolean
49 mono_mmap_unmap (void *base_address, MonoError *error);
51 #endif /* _MONO_METADATA_FILE_MMAP_H_ */