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

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

Issue 23456045: [NaCl SDK] nacl_io: Add initial support for getsockopt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 return s_kp->gethostbyname(name); 309 return s_kp->gethostbyname(name);
310 } 310 }
311 311
312 int ki_getpeername(int fd, struct sockaddr* addr, socklen_t* len) { 312 int ki_getpeername(int fd, struct sockaddr* addr, socklen_t* len) {
313 return s_kp->getpeername(fd, addr, len); 313 return s_kp->getpeername(fd, addr, len);
314 } 314 }
315 315
316 int ki_getsockname(int fd, struct sockaddr* addr, socklen_t* len) { 316 int ki_getsockname(int fd, struct sockaddr* addr, socklen_t* len) {
317 return s_kp->getsockname(fd, addr, len); 317 return s_kp->getsockname(fd, addr, len);
318 } 318 }
319
319 int ki_getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len) { 320 int ki_getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len) {
320 return s_kp->getsockopt(fd, lvl, optname, optval, len); 321 return s_kp->getsockopt(fd, lvl, optname, optval, len);
321 } 322 }
322 323
323 int ki_listen(int fd, int backlog) { 324 int ki_listen(int fd, int backlog) {
324 return s_kp->listen(fd, backlog); 325 return s_kp->listen(fd, backlog);
325 } 326 }
326 327
327 ssize_t ki_recv(int fd, void* buf, size_t len, int flags) { 328 ssize_t ki_recv(int fd, void* buf, size_t len, int flags) {
328 return s_kp->recv(fd, buf, len, flags); 329 return s_kp->recv(fd, buf, len, flags);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 361 }
361 362
362 int ki_socket(int domain, int type, int protocol) { 363 int ki_socket(int domain, int type, int protocol) {
363 return s_kp->socket(domain, type, protocol); 364 return s_kp->socket(domain, type, protocol);
364 } 365 }
365 366
366 int ki_socketpair(int domain, int type, int protocol, int* sv) { 367 int ki_socketpair(int domain, int type, int protocol, int* sv) {
367 return s_kp->socketpair(domain, type, protocol, sv); 368 return s_kp->socketpair(domain, type, protocol, sv);
368 } 369 }
369 #endif // PROVIDES_SOCKET_API 370 #endif // PROVIDES_SOCKET_API
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698