First set of licensing changes
[mono.git] / mono / metadata / file-mmap-windows.c
1 /*
2  * file-mmap-posix.c: File mmap internal calls
3  *
4  * Author:
5  *      Rodrigo Kumpera
6  *
7  * Copyright 2014 Xamarin Inc (http://www.xamarin.com)
8  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
9  */
10
11 #include <config.h>
12
13 #ifdef HOST_WIN32
14
15 #include <glib.h>
16 #include <string.h>
17 #include <errno.h>
18
19
20 #include <mono/metadata/object.h>
21 #include <mono/metadata/file-mmap.h>
22
23 void *
24 mono_mmap_open_file (MonoString *path, int mode, MonoString *mapName, gint64 *capacity, int access, int options, int *error)
25 {
26         g_error ("No windows backend");
27         return NULL;
28 }
29
30 void *
31 mono_mmap_open_handle (void *handle, MonoString *mapName, gint64 *capacity, int access, int options, int *error)
32 {
33         g_error ("No windows backend");
34         return NULL;
35 }
36
37 void
38 mono_mmap_close (void *mmap_handle)
39 {
40         g_error ("No windows backend");
41 }
42
43 void
44 mono_mmap_configure_inheritability (void *mmap_handle, gboolean inheritability)
45 {
46         g_error ("No windows backend");
47 }
48
49 void
50 mono_mmap_flush (void *mmap_handle)
51 {
52         g_error ("No windows backend");
53 }
54
55
56
57 int
58 mono_mmap_map (void *handle, gint64 offset, gint64 *size, int access, void **mmap_handle, void **base_address)
59 {
60         g_error ("No windows backend");
61         return 0;
62 }
63
64 gboolean
65 mono_mmap_unmap (void *mmap_handle)
66 {
67         g_error ("No windows backend");
68         return TRUE;
69 }
70
71 #endif