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_MOUNTS_KERNEL_WRAP_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_WRAP_H_ |
6 #define LIBRARIES_NACL_MOUNTS_KERNEL_WRAP_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_WRAP_H_ |
7 | 7 |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include "utils/macros.h" | 10 #include "utils/macros.h" |
11 | 11 |
12 #if defined(__GLIBC__) | 12 #if defined(__GLIBC__) |
13 #include <sys/cdefs.h> | 13 #include <sys/cdefs.h> |
14 #define NOTHROW __THROW | 14 #define NOTHROW __THROW |
15 #else | 15 #else |
16 #define NOTHROW | 16 #define NOTHROW |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #else | 75 #else |
76 int stat(const char* path, struct stat* buf) NOTHROW; | 76 int stat(const char* path, struct stat* buf) NOTHROW; |
77 #endif | 77 #endif |
78 int symlink(const char* oldpath, const char* newpath) NOTHROW; | 78 int symlink(const char* oldpath, const char* newpath) NOTHROW; |
79 int umount(const char* path) NOTHROW; | 79 int umount(const char* path) NOTHROW; |
80 int NAME(unlink)(const char* path) NOTHROW; | 80 int NAME(unlink)(const char* path) NOTHROW; |
81 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); | 81 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); |
82 | 82 |
83 EXTERN_C_END | 83 EXTERN_C_END |
84 | 84 |
85 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_WRAP_H_ | 85 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_H_ |
OLD | NEW |