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

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

Issue 604513002: [NaCl SDK] nacl_io: Add chmod/fchmod (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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_PROXY_H_ 5 #ifndef LIBRARIES_NACL_IO_KERNEL_PROXY_H_
6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_ 6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual int rmdir(const char* path); 100 virtual int rmdir(const char* path);
101 virtual int stat(const char* path, struct stat* buf); 101 virtual int stat(const char* path, struct stat* buf);
102 102
103 // System calls that take a file descriptor as an argument: 103 // System calls that take a file descriptor as an argument:
104 // The kernel proxy will determine to which filesystem the file 104 // The kernel proxy will determine to which filesystem the file
105 // descriptor's corresponding file handle belongs. The 105 // descriptor's corresponding file handle belongs. The
106 // associated filesystem's function will be called. 106 // associated filesystem's function will be called.
107 virtual ssize_t read(int fd, void* buf, size_t nbyte); 107 virtual ssize_t read(int fd, void* buf, size_t nbyte);
108 virtual ssize_t write(int fd, const void* buf, size_t nbyte); 108 virtual ssize_t write(int fd, const void* buf, size_t nbyte);
109 109
110 virtual int fchmod(int fd, int prot); 110 virtual int fchmod(int fd, mode_t mode);
111 virtual int fcntl(int fd, int request, va_list args); 111 virtual int fcntl(int fd, int request, va_list args);
112 virtual int fstat(int fd, struct stat* buf); 112 virtual int fstat(int fd, struct stat* buf);
113 virtual int getdents(int fd, void* buf, unsigned int count); 113 virtual int getdents(int fd, void* buf, unsigned int count);
114 virtual int fchdir(int fd); 114 virtual int fchdir(int fd);
115 virtual int ftruncate(int fd, off_t length); 115 virtual int ftruncate(int fd, off_t length);
116 virtual int fsync(int fd); 116 virtual int fsync(int fd);
117 virtual int fdatasync(int fd); 117 virtual int fdatasync(int fd);
118 virtual int isatty(int fd); 118 virtual int isatty(int fd);
119 virtual int ioctl(int fd, int request, va_list args); 119 virtual int ioctl(int fd, int request, va_list args);
120 virtual int futimens(int fd, const struct timespec times[2]); 120 virtual int futimens(int fd, const struct timespec times[2]);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); 249 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle);
250 #endif 250 #endif
251 251
252 ScopedEventEmitter signal_emitter_; 252 ScopedEventEmitter signal_emitter_;
253 DISALLOW_COPY_AND_ASSIGN(KernelProxy); 253 DISALLOW_COPY_AND_ASSIGN(KernelProxy);
254 }; 254 };
255 255
256 } // namespace nacl_io 256 } // namespace nacl_io
257 257
258 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ 258 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698