blob: 5fa78d9f6bfc3677d05f40413fdd47fcab6622b4 [file] [log] [blame]
Alexey Samsonov298dd7c2012-06-05 07:46:31 +00001//===-- sanitizer_win.cc --------------------------------------------------===//
Alexey Samsonovdde1f112012-06-05 07:05:10 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file is shared between AddressSanitizer and ThreadSanitizer
11// run-time libraries and implements windows-specific functions from
12// sanitizer_libc.h.
13//===----------------------------------------------------------------------===//
14#ifdef _WIN32
15#include <windows.h>
16
17#include <assert.h>
18
19#include "sanitizer_defs.h"
20#include "sanitizer_libc.h"
21
22#define UNIMPLEMENTED_WIN() assert(false)
23
24namespace __sanitizer {
25
26void *internal_mmap(void *addr, uptr length, int prot, int flags,
27 int fd, u64 offset) {
28 UNIMPLEMENTED_WIN();
29 return 0;
30}
31
32fd_t internal_open(const char *filename, bool write) {
33 UNIMPLEMENTED_WIN();
34 return 0;
35}
36
37} // namespace __sanitizer
38
39#endif // _WIN32