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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc

Issue 303223007: [NaCl SDK] nacl_io: Run clang-format over nacl_io sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc
index ab5d1998528ebd2c8586fd4632cb24970cd15f0a..807d8d718cebb918c0b357107963ff135530d61c 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc
@@ -19,11 +19,11 @@ int _real_close(int fd) {
return ENOSYS;
}
-int _real_fstat(int fd, struct stat *buf) {
+int _real_fstat(int fd, struct stat* buf) {
return 0;
}
-int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t *nread) {
+int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t* nread) {
return ENOSYS;
}
@@ -35,7 +35,11 @@ int _real_mkdir(const char* pathname, mode_t mode) {
return ENOSYS;
}
-int _real_mmap(void** addr, size_t length, int prot, int flags, int fd,
+int _real_mmap(void** addr,
+ size_t length,
+ int prot,
+ int flags,
+ int fd,
off_t offset) {
return ENOSYS;
}
@@ -52,7 +56,7 @@ int _real_open_resource(const char* file, int* fd) {
return ENOSYS;
}
-int _real_read(int fd, void *buf, size_t count, size_t *nread) {
+int _real_read(int fd, void* buf, size_t count, size_t* nread) {
*nread = count;
return 0;
}
@@ -61,7 +65,7 @@ int _real_rmdir(const char* pathname) {
return ENOSYS;
}
-int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) {
+int _real_write(int fd, const void* buf, size_t count, size_t* nwrote) {
int rtn = write(fd, buf, count);
if (rtn < 0)
return -1;

Powered by Google App Engine
This is Rietveld 408576698