| 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 #include <errno.h> | 5 #include <errno.h> |
| 6 | 6 |
| 7 #include "nacl_io/kernel_intercept.h" | 7 #include "nacl_io/kernel_intercept.h" |
| 8 #include "nacl_io/kernel_proxy.h" | 8 #include "nacl_io/kernel_proxy.h" |
| 9 #include "nacl_io/kernel_wrap.h" | 9 #include "nacl_io/kernel_wrap.h" |
| 10 #include "nacl_io/osmman.h" | 10 #include "nacl_io/osmman.h" |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 ON_NOSYS_RETURN(-1); | 250 ON_NOSYS_RETURN(-1); |
| 251 return s_kp->tcgetattr(fd, termios_p); | 251 return s_kp->tcgetattr(fd, termios_p); |
| 252 } | 252 } |
| 253 | 253 |
| 254 int ki_tcsetattr(int fd, int optional_actions, | 254 int ki_tcsetattr(int fd, int optional_actions, |
| 255 const struct termios *termios_p) { | 255 const struct termios *termios_p) { |
| 256 ON_NOSYS_RETURN(-1); | 256 ON_NOSYS_RETURN(-1); |
| 257 return s_kp->tcsetattr(fd, optional_actions, termios_p); | 257 return s_kp->tcsetattr(fd, optional_actions, termios_p); |
| 258 } | 258 } |
| 259 | 259 |
| 260 int ki_kill(pid_t pid, int sig) { |
| 261 ON_NOSYS_RETURN(-1); |
| 262 return s_kp->kill(pid, sig); |
| 263 } |
| 264 |
| 265 sighandler_t ki_signal(int signum, sighandler_t handler) { |
| 266 ON_NOSYS_RETURN(SIG_ERR); |
| 267 return s_kp->signal(signum, handler); |
| 268 } |
| 269 |
| 270 sighandler_t ki_sigset(int signum, sighandler_t handler) { |
| 271 ON_NOSYS_RETURN(SIG_ERR); |
| 272 return s_kp->sigset(signum, handler); |
| 273 } |
| 274 |
| 260 #ifdef PROVIDES_SOCKET_API | 275 #ifdef PROVIDES_SOCKET_API |
| 261 // Socket Functions | 276 // Socket Functions |
| 262 int ki_accept(int fd, struct sockaddr* addr, socklen_t* len) { | 277 int ki_accept(int fd, struct sockaddr* addr, socklen_t* len) { |
| 263 return s_kp->accept(fd, addr, len); | 278 return s_kp->accept(fd, addr, len); |
| 264 } | 279 } |
| 265 | 280 |
| 266 int ki_bind(int fd, const struct sockaddr* addr, socklen_t len) { | 281 int ki_bind(int fd, const struct sockaddr* addr, socklen_t len) { |
| 267 return s_kp->bind(fd, addr, len); | 282 return s_kp->bind(fd, addr, len); |
| 268 } | 283 } |
| 269 | 284 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 341 } |
| 327 | 342 |
| 328 int ki_socket(int domain, int type, int protocol) { | 343 int ki_socket(int domain, int type, int protocol) { |
| 329 return s_kp->socket(domain, type, protocol); | 344 return s_kp->socket(domain, type, protocol); |
| 330 } | 345 } |
| 331 | 346 |
| 332 int ki_socketpair(int domain, int type, int protocol, int* sv) { | 347 int ki_socketpair(int domain, int type, int protocol, int* sv) { |
| 333 return s_kp->socketpair(domain, type, protocol, sv); | 348 return s_kp->socketpair(domain, type, protocol, sv); |
| 334 } | 349 } |
| 335 #endif // PROVIDES_SOCKET_API | 350 #endif // PROVIDES_SOCKET_API |
| OLD | NEW |