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

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

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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_WRAP_H_ 5 #ifndef LIBRARIES_NACL_IO_KERNEL_WRAP_H_
6 #define LIBRARIES_NACL_IO_KERNEL_WRAP_H_ 6 #define LIBRARIES_NACL_IO_KERNEL_WRAP_H_
7 7
8 #include <signal.h> 8 #include <signal.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 int _stat32(const char* path, struct _stat32* buf); 89 int _stat32(const char* path, struct _stat32* buf);
90 int _stat64(const char* path, struct _stat64* buf); 90 int _stat64(const char* path, struct _stat64* buf);
91 int _stat32i64(const char* path, struct _stat32i64* buf); 91 int _stat32i64(const char* path, struct _stat32i64* buf);
92 int _stat64i32(const char* path, struct _stat64i32* buf); 92 int _stat64i32(const char* path, struct _stat64i32* buf);
93 #else 93 #else
94 int stat(const char* path, struct stat* buf) NOTHROW; 94 int stat(const char* path, struct stat* buf) NOTHROW;
95 #endif 95 #endif
96 int symlink(const char* oldpath, const char* newpath) NOTHROW; 96 int symlink(const char* oldpath, const char* newpath) NOTHROW;
97 int umount(const char* path) NOTHROW; 97 int umount(const char* path) NOTHROW;
98 int NAME(unlink)(const char* path) NOTHROW; 98 int NAME(unlink)(const char* path) NOTHROW;
99 uint64_t usec_since_epoch();
100 int utime(const char* filename, const struct utimbuf* times); 99 int utime(const char* filename, const struct utimbuf* times);
101 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); 100 read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte);
102 101
103 #ifdef PROVIDES_SOCKET_API 102 #ifdef PROVIDES_SOCKET_API
104 // Socket Functions 103 // Socket Functions
105 int accept(int fd, struct sockaddr* addr, socklen_t* len); 104 int accept(int fd, struct sockaddr* addr, socklen_t* len);
106 int bind(int fd, const struct sockaddr* addr, socklen_t len); 105 int bind(int fd, const struct sockaddr* addr, socklen_t len);
107 int connect(int fd, const struct sockaddr* addr, socklen_t len); 106 int connect(int fd, const struct sockaddr* addr, socklen_t len);
108 struct hostent* gethostbyname(const char* name); 107 struct hostent* gethostbyname(const char* name);
109 int getpeername(int fd, struct sockaddr* addr, socklen_t* len); 108 int getpeername(int fd, struct sockaddr* addr, socklen_t* len);
(...skipping 11 matching lines...) Expand all
121 int setsockopt(int fd, int lvl, int optname, const void* optval, 120 int setsockopt(int fd, int lvl, int optname, const void* optval,
122 socklen_t len); 121 socklen_t len);
123 int shutdown(int fd, int how); 122 int shutdown(int fd, int how);
124 int socket(int domain, int type, int protocol); 123 int socket(int domain, int type, int protocol);
125 int socketpair(int domain, int type, int protocl, int* sv); 124 int socketpair(int domain, int type, int protocl, int* sv);
126 #endif // PROVIDES_SOCKET_API 125 #endif // PROVIDES_SOCKET_API
127 126
128 EXTERN_C_END 127 EXTERN_C_END
129 128
130 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_H_ 129 #endif // LIBRARIES_NACL_IO_KERNEL_WRAP_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_handle.cc ('k') | native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698