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

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

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 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ 5 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_
6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ 6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_
7 7
8 #include <ppapi/c/ppb.h> 8 #include <ppapi/c/ppb.h>
9 #include <ppapi/c/pp_instance.h> 9 #include <ppapi/c/pp_instance.h>
10 10
(...skipping 26 matching lines...) Expand all
37 int ki_dup(int oldfd); 37 int ki_dup(int oldfd);
38 int ki_dup2(int oldfd, int newfd); 38 int ki_dup2(int oldfd, int newfd);
39 int ki_chmod(const char* path, mode_t mode); 39 int ki_chmod(const char* path, mode_t mode);
40 int ki_stat(const char* path, struct stat* buf); 40 int ki_stat(const char* path, struct stat* buf);
41 int ki_mkdir(const char* path, mode_t mode); 41 int ki_mkdir(const char* path, mode_t mode);
42 int ki_rmdir(const char* path); 42 int ki_rmdir(const char* path);
43 int ki_mount(const char* source, const char* target, const char* filesystemtype, 43 int ki_mount(const char* source, const char* target, const char* filesystemtype,
44 unsigned long mountflags, const void *data); 44 unsigned long mountflags, const void *data);
45 int ki_umount(const char* path); 45 int ki_umount(const char* path);
46 int ki_open(const char* path, int oflag); 46 int ki_open(const char* path, int oflag);
47 int ki_pipe(int pipefds[2]);
47 ssize_t ki_read(int fd, void* buf, size_t nbyte); 48 ssize_t ki_read(int fd, void* buf, size_t nbyte);
48 ssize_t ki_write(int fd, const void* buf, size_t nbyte); 49 ssize_t ki_write(int fd, const void* buf, size_t nbyte);
49 int ki_fstat(int fd, struct stat *buf); 50 int ki_fstat(int fd, struct stat *buf);
50 int ki_getdents(int fd, void* buf, unsigned int count); 51 int ki_getdents(int fd, void* buf, unsigned int count);
51 int ki_ftruncate(int fd, off_t length); 52 int ki_ftruncate(int fd, off_t length);
52 int ki_fsync(int fd); 53 int ki_fsync(int fd);
53 int ki_isatty(int fd); 54 int ki_isatty(int fd);
54 int ki_close(int fd); 55 int ki_close(int fd);
55 off_t ki_lseek(int fd, off_t offset, int whence); 56 off_t ki_lseek(int fd, off_t offset, int whence);
56 int ki_remove(const char* path); 57 int ki_remove(const char* path);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 int ki_setsockopt(int fd, int lvl, int optname, const void* optval, 102 int ki_setsockopt(int fd, int lvl, int optname, const void* optval,
102 socklen_t len); 103 socklen_t len);
103 int ki_shutdown(int fd, int how); 104 int ki_shutdown(int fd, int how);
104 int ki_socket(int domain, int type, int protocol); 105 int ki_socket(int domain, int type, int protocol);
105 int ki_socketpair(int domain, int type, int protocl, int* sv); 106 int ki_socketpair(int domain, int type, int protocl, int* sv);
106 #endif // PROVIDES_SOCKET_API 107 #endif // PROVIDES_SOCKET_API
107 108
108 EXTERN_C_END 109 EXTERN_C_END
109 110
110 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ 111 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/fifo_packet.cc ('k') | native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698