Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc

Issue 23498015: [NaCl SDK] Support non blocking TCP/UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int ki_umount(const char *path) { 124 int ki_umount(const char *path) {
125 ON_NOSYS_RETURN(-1); 125 ON_NOSYS_RETURN(-1);
126 return s_kp->umount(path); 126 return s_kp->umount(path);
127 } 127 }
128 128
129 int ki_open(const char *path, int oflag) { 129 int ki_open(const char *path, int oflag) {
130 ON_NOSYS_RETURN(-1); 130 ON_NOSYS_RETURN(-1);
131 return s_kp->open(path, oflag); 131 return s_kp->open(path, oflag);
132 } 132 }
133 133
134 int ki_pipe(int pipefds[2]) {
135 ON_NOSYS_RETURN(-1);
136 return s_kp->pipe(pipefds);
137 }
138
134 ssize_t ki_read(int fd, void *buf, size_t nbyte) { 139 ssize_t ki_read(int fd, void *buf, size_t nbyte) {
135 ON_NOSYS_RETURN(-1); 140 ON_NOSYS_RETURN(-1);
136 return s_kp->read(fd, buf, nbyte); 141 return s_kp->read(fd, buf, nbyte);
137 } 142 }
138 143
139 ssize_t ki_write(int fd, const void *buf, size_t nbyte) { 144 ssize_t ki_write(int fd, const void *buf, size_t nbyte) {
140 ON_NOSYS_RETURN(-1); 145 ON_NOSYS_RETURN(-1);
141 return s_kp->write(fd, buf, nbyte); 146 return s_kp->write(fd, buf, nbyte);
142 } 147 }
143 148
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 } 355 }
351 356
352 int ki_socket(int domain, int type, int protocol) { 357 int ki_socket(int domain, int type, int protocol) {
353 return s_kp->socket(domain, type, protocol); 358 return s_kp->socket(domain, type, protocol);
354 } 359 }
355 360
356 int ki_socketpair(int domain, int type, int protocol, int* sv) { 361 int ki_socketpair(int domain, int type, int protocol, int* sv) {
357 return s_kp->socketpair(domain, type, protocol, sv); 362 return s_kp->socketpair(domain, type, protocol, sv);
358 } 363 }
359 #endif // PROVIDES_SOCKET_API 364 #endif // PROVIDES_SOCKET_API
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ('k') | native_client_sdk/src/libraries/nacl_io/kernel_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698