[asan] Add a few stubs to fix windows build.

llvm-svn: 209717
This commit is contained in:
Evgeniy Stepanov 2014-05-28 08:26:24 +00:00
parent 18b92eeacb
commit a00ff194b7
1 changed files with 12 additions and 0 deletions

View File

@ -137,6 +137,10 @@ void *MapFileToMemory(const char *file_name, uptr *buff_size) {
UNIMPLEMENTED(); UNIMPLEMENTED();
} }
void *MapWritableFileToMemory(void *addr, uptr size, uptr fd, uptr offset) {
UNIMPLEMENTED();
}
static const int kMaxEnvNameLength = 128; static const int kMaxEnvNameLength = 128;
static const DWORD kMaxEnvValueLength = 32767; static const DWORD kMaxEnvValueLength = 32767;
@ -352,6 +356,14 @@ void internal__exit(int exitcode) {
ExitProcess(exitcode); ExitProcess(exitcode);
} }
uptr internal_ftruncate(fd_t fd, uptr size) {
UNIMPLEMENTED();
}
uptr internal_rename(const char *oldpath, const char *newpath) {
UNIMPLEMENTED();
}
// ---------------------- BlockingMutex ---------------- {{{1 // ---------------------- BlockingMutex ---------------- {{{1
const uptr LOCK_UNINITIALIZED = 0; const uptr LOCK_UNINITIALIZED = 0;
const uptr LOCK_READY = (uptr)-1; const uptr LOCK_READY = (uptr)-1;