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 <assert.h> | 8 #include <assert.h> |
9 #include <signal.h> | 9 #include <signal.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 int _stat32(const char* path, struct _stat32* buf); | 109 int _stat32(const char* path, struct _stat32* buf); |
110 int _stat64(const char* path, struct _stat64* buf); | 110 int _stat64(const char* path, struct _stat64* buf); |
111 int _stat32i64(const char* path, struct _stat32i64* buf); | 111 int _stat32i64(const char* path, struct _stat32i64* buf); |
112 int _stat64i32(const char* path, struct _stat64i32* buf); | 112 int _stat64i32(const char* path, struct _stat64i32* buf); |
113 #elif !defined(__linux__) | 113 #elif !defined(__linux__) |
114 extern int stat(const char* path, struct stat* buf) NOTHROW; | 114 extern int stat(const char* path, struct stat* buf) NOTHROW; |
115 #endif | 115 #endif |
116 int symlink(const char* oldpath, const char* newpath) NOTHROW; | 116 int symlink(const char* oldpath, const char* newpath) NOTHROW; |
117 int umount(const char* path) NOTHROW; | 117 int umount(const char* path) NOTHROW; |
118 int NAME(unlink)(const char* path) NOTHROW; | 118 int NAME(unlink)(const char* path) NOTHROW; |
119 int utime(const char* filename, const struct utimbuf* times); | 119 int utime(const char* filename, const struct utimbuf* times) NOTHROW; |
120 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); | 120 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); |
121 | 121 |
122 #ifdef PROVIDES_SOCKET_API | 122 #ifdef PROVIDES_SOCKET_API |
123 // Socket Functions | 123 // Socket Functions |
124 int accept(int fd, struct sockaddr* addr, socklen_t* len); | 124 int accept(int fd, struct sockaddr* addr, socklen_t* len); |
125 int bind(int fd, const struct sockaddr* addr, socklen_t len); | 125 int bind(int fd, const struct sockaddr* addr, socklen_t len); |
126 int connect(int fd, const struct sockaddr* addr, socklen_t len); | 126 int connect(int fd, const struct sockaddr* addr, socklen_t len); |
127 struct hostent* gethostbyname(const char* name); | 127 struct hostent* gethostbyname(const char* name); |
128 int getpeername(int fd, struct sockaddr* addr, socklen_t* len); | 128 int getpeername(int fd, struct sockaddr* addr, socklen_t* len); |
129 int getsockname(int fd, struct sockaddr* addr, socklen_t* len); | 129 int getsockname(int fd, struct sockaddr* addr, socklen_t* len); |
(...skipping 17 matching lines...) Expand all Loading... |
147 ssize_t sendmsg(int fd, const struct msghdr* msg, int flags); | 147 ssize_t sendmsg(int fd, const struct msghdr* msg, int flags); |
148 int setsockopt(int fd, int lvl, int optname, const void* optval, socklen_t len); | 148 int setsockopt(int fd, int lvl, int optname, const void* optval, socklen_t len); |
149 int shutdown(int fd, int how); | 149 int shutdown(int fd, int how); |
150 int socket(int domain, int type, int protocol); | 150 int socket(int domain, int type, int protocol); |
151 int socketpair(int domain, int type, int protocl, int* sv); | 151 int socketpair(int domain, int type, int protocl, int* sv); |
152 #endif // PROVIDES_SOCKET_API | 152 #endif // PROVIDES_SOCKET_API |
153 | 153 |
154 EXTERN_C_END | 154 EXTERN_C_END |
155 | 155 |
156 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_H_ | 156 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_H_ |
OLD | NEW |