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_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_WRAP_H_ |
6 #define LIBRARIES_NACL_IO_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 "sdk_util/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 |
17 #endif | 17 #endif |
18 | 18 |
19 #if defined(WIN32) | 19 #if defined(WIN32) |
20 typedef int chmod_mode_t; | 20 typedef int chmod_mode_t; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 int stat(const char* path, struct stat* buf) NOTHROW; | 80 int stat(const char* path, struct stat* buf) NOTHROW; |
81 #endif | 81 #endif |
82 int symlink(const char* oldpath, const char* newpath) NOTHROW; | 82 int symlink(const char* oldpath, const char* newpath) NOTHROW; |
83 int umount(const char* path) NOTHROW; | 83 int umount(const char* path) NOTHROW; |
84 int NAME(unlink)(const char* path) NOTHROW; | 84 int NAME(unlink)(const char* path) NOTHROW; |
85 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); | 85 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); |
86 | 86 |
87 EXTERN_C_END | 87 EXTERN_C_END |
88 | 88 |
89 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_H_ | 89 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_H_ |
OLD | NEW |