OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 #ifndef LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ |
6 #define LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ |
7 | 7 |
8 #include "nacl_io/ostypes.h" | 8 #include "nacl_io/ostypes.h" |
9 #include "utils/macros.h" | 9 #include "sdk_util/macros.h" |
10 | 10 |
11 EXTERN_C_BEGIN | 11 EXTERN_C_BEGIN |
12 | 12 |
13 int _real_close(int fd); | 13 int _real_close(int fd); |
14 int _real_fstat(int fd, struct stat *buf); | 14 int _real_fstat(int fd, struct stat *buf); |
15 int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t *nread); | 15 int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t *nread); |
16 int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset); | 16 int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset); |
17 int _real_mkdir(const char* pathname, mode_t mode); | 17 int _real_mkdir(const char* pathname, mode_t mode); |
18 int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, | 18 int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, |
19 off_t offset); | 19 off_t offset); |
20 int _real_munmap(void* addr, size_t length); | 20 int _real_munmap(void* addr, size_t length); |
21 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd); | 21 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd); |
22 int _real_open_resource(const char* file, int* fd); | 22 int _real_open_resource(const char* file, int* fd); |
23 int _real_read(int fd, void *buf, size_t count, size_t *nread); | 23 int _real_read(int fd, void *buf, size_t count, size_t *nread); |
24 int _real_rmdir(const char* pathname); | 24 int _real_rmdir(const char* pathname); |
25 int _real_write(int fd, const void *buf, size_t count, size_t *nwrote); | 25 int _real_write(int fd, const void *buf, size_t count, size_t *nwrote); |
26 | 26 |
27 EXTERN_C_END | 27 EXTERN_C_END |
28 | 28 |
29 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ | 29 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ |
OLD | NEW |