Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc |
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc |
index c5dcc02679b45df130699449d6c71b2c6c06710c..cf35f96987500560eebec806e3a66c327bd57523 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc |
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc |
@@ -215,74 +215,6 @@ int _write(int fd, const void* buf, size_t nbyte) { |
return ki_write(fd, buf, nbyte); |
} |
- |
-// "real" functions, i.e. the unwrapped original functions. On Windows we don't |
-// wrap, so the real functions aren't accessible. In most cases, we just fail. |
- |
-int _real_close(int fd) { |
- return ENOSYS; |
-} |
- |
-int _real_fstat(int fd, struct stat *buf) { |
- return 0; |
-} |
- |
-int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t *nread) { |
- return ENOSYS; |
-} |
- |
-int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset) { |
- return ENOSYS; |
-} |
- |
-int _real_mkdir(const char* pathname, mode_t mode) { |
- return ENOSYS; |
-} |
- |
-int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, |
- off_t offset) { |
- return ENOSYS; |
-} |
- |
-int _real_munmap(void* addr, size_t length) { |
- return ENOSYS; |
-} |
- |
-int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) { |
- return ENOSYS; |
-} |
- |
-int _real_open_resource(const char* file, int* fd) { |
- return ENOSYS; |
-} |
- |
-int _real_read(int fd, void *buf, size_t count, size_t *nread) { |
- *nread = count; |
- return 0; |
-} |
- |
-int _real_rmdir(const char* pathname) { |
- return ENOSYS; |
-} |
- |
-int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) { |
- *nwrote = count; |
- return 0; |
-} |
- |
-#define USECS_FROM_WIN_TO_TO_UNIX_EPOCH 11644473600000LL |
-uint64_t usec_since_epoch() { |
- FILETIME ft; |
- ULARGE_INTEGER ularge; |
- GetSystemTimeAsFileTime(&ft); |
- |
- ularge.LowPart = ft.dwLowDateTime; |
- ularge.HighPart = ft.dwHighDateTime; |
- |
- // Truncate to usec resolution. |
- return ularge.QuadPart / 10; |
-} |
- |
// Do nothing for Windows, we replace the library at link time. |
void kernel_wrap_init() { |
} |