| 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_PROXY_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_PROXY_H_ |
| 6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 virtual int select(int nfds, fd_set* readfds, fd_set* writefds, | 152 virtual int select(int nfds, fd_set* readfds, fd_set* writefds, |
| 153 fd_set* exceptfds, struct timeval* timeout); | 153 fd_set* exceptfds, struct timeval* timeout); |
| 154 | 154 |
| 155 virtual int poll(struct pollfd *fds, nfds_t nfds, int timeout); | 155 virtual int poll(struct pollfd *fds, nfds_t nfds, int timeout); |
| 156 | 156 |
| 157 // Socket support functions | 157 // Socket support functions |
| 158 virtual int accept(int fd, struct sockaddr* addr, socklen_t* len); | 158 virtual int accept(int fd, struct sockaddr* addr, socklen_t* len); |
| 159 virtual int bind(int fd, const struct sockaddr* addr, socklen_t len); | 159 virtual int bind(int fd, const struct sockaddr* addr, socklen_t len); |
| 160 virtual int connect(int fd, const struct sockaddr* addr, socklen_t len); | 160 virtual int connect(int fd, const struct sockaddr* addr, socklen_t len); |
| 161 virtual struct hostent* gethostbyname(const char* name); | 161 virtual struct hostent* gethostbyname(const char* name); |
| 162 virtual void freeaddrinfo(struct addrinfo *res); |
| 163 virtual int getaddrinfo(const char* node, const char* service, |
| 164 const struct addrinfo* hints, |
| 165 struct addrinfo** res); |
| 162 virtual int getpeername(int fd, struct sockaddr* addr, socklen_t* len); | 166 virtual int getpeername(int fd, struct sockaddr* addr, socklen_t* len); |
| 163 virtual int getsockname(int fd, struct sockaddr* addr, socklen_t* len); | 167 virtual int getsockname(int fd, struct sockaddr* addr, socklen_t* len); |
| 164 virtual int getsockopt(int fd, | 168 virtual int getsockopt(int fd, |
| 165 int lvl, | 169 int lvl, |
| 166 int optname, | 170 int optname, |
| 167 void* optval, | 171 void* optval, |
| 168 socklen_t* len); | 172 socklen_t* len); |
| 169 virtual int listen(int fd, int backlog); | 173 virtual int listen(int fd, int backlog); |
| 170 virtual ssize_t recv(int fd, | 174 virtual ssize_t recv(int fd, |
| 171 void* buf, | 175 void* buf, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); | 215 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); |
| 212 #endif | 216 #endif |
| 213 | 217 |
| 214 ScopedEventEmitter signal_emitter_; | 218 ScopedEventEmitter signal_emitter_; |
| 215 DISALLOW_COPY_AND_ASSIGN(KernelProxy); | 219 DISALLOW_COPY_AND_ASSIGN(KernelProxy); |
| 216 }; | 220 }; |
| 217 | 221 |
| 218 } // namespace nacl_io | 222 } // namespace nacl_io |
| 219 | 223 |
| 220 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ | 224 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ |
| OLD | NEW |