blob: 432abed1ecfd5f8929931e199f98eb9052ba27ef [file] [log] [blame]
Alexey Samsonov2c5fc3b2012-06-04 14:27:50 +00001//===-- sanitizer_mac.cc --------------------------------------------------===//
2//
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 mac-specific functions from
12// sanitizer_libc.h.
13//===----------------------------------------------------------------------===//
14
15#ifdef __APPLE__
16
17#include "sanitizer_defs.h"
18#include "sanitizer_libc.h"
19
20#include <sys/mman.h>
21
22namespace __sanitizer {
23
24void *internal_mmap(void *addr, size_t length, int prot, int flags,
25 int fd, u64 offset) {
26 return mmap(addr, length, prot, flags, fd, offset);
27}
28
29} // namespace __sanitizer
30
31#endif // __APPLE__