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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Socket support functions | 170 // Socket support functions |
171 virtual int accept(int fd, struct sockaddr* addr, socklen_t* len); | 171 virtual int accept(int fd, struct sockaddr* addr, socklen_t* len); |
172 virtual int bind(int fd, const struct sockaddr* addr, socklen_t len); | 172 virtual int bind(int fd, const struct sockaddr* addr, socklen_t len); |
173 virtual int connect(int fd, const struct sockaddr* addr, socklen_t len); | 173 virtual int connect(int fd, const struct sockaddr* addr, socklen_t len); |
174 virtual struct hostent* gethostbyname(const char* name); | 174 virtual struct hostent* gethostbyname(const char* name); |
175 virtual void freeaddrinfo(struct addrinfo* res); | 175 virtual void freeaddrinfo(struct addrinfo* res); |
176 virtual int getaddrinfo(const char* node, | 176 virtual int getaddrinfo(const char* node, |
177 const char* service, | 177 const char* service, |
178 const struct addrinfo* hints, | 178 const struct addrinfo* hints, |
179 struct addrinfo** res); | 179 struct addrinfo** res); |
| 180 virtual int getnameinfo(const struct sockaddr *sa, |
| 181 socklen_t salen, |
| 182 char *host, |
| 183 size_t hostlen, |
| 184 char *serv, |
| 185 size_t servlen, |
| 186 int flags); |
180 virtual int getpeername(int fd, struct sockaddr* addr, socklen_t* len); | 187 virtual int getpeername(int fd, struct sockaddr* addr, socklen_t* len); |
181 virtual int getsockname(int fd, struct sockaddr* addr, socklen_t* len); | 188 virtual int getsockname(int fd, struct sockaddr* addr, socklen_t* len); |
182 virtual int getsockopt(int fd, | 189 virtual int getsockopt(int fd, |
183 int lvl, | 190 int lvl, |
184 int optname, | 191 int optname, |
185 void* optval, | 192 void* optval, |
186 socklen_t* len); | 193 socklen_t* len); |
187 virtual int listen(int fd, int backlog); | 194 virtual int listen(int fd, int backlog); |
188 virtual ssize_t recv(int fd, void* buf, size_t len, int flags); | 195 virtual ssize_t recv(int fd, void* buf, size_t len, int flags); |
189 virtual ssize_t recvfrom(int fd, | 196 virtual ssize_t recvfrom(int fd, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); | 249 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); |
243 #endif | 250 #endif |
244 | 251 |
245 ScopedEventEmitter signal_emitter_; | 252 ScopedEventEmitter signal_emitter_; |
246 DISALLOW_COPY_AND_ASSIGN(KernelProxy); | 253 DISALLOW_COPY_AND_ASSIGN(KernelProxy); |
247 }; | 254 }; |
248 | 255 |
249 } // namespace nacl_io | 256 } // namespace nacl_io |
250 | 257 |
251 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ | 258 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ |
OLD | NEW |