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

Unified Diff: src/untrusted/nacl/syscall_bindings_trampoline.h

Issue 1235633004: DON'T USE THIS -- Providing some missing POSIX File syscalls. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « src/untrusted/irt/irt_interfaces.c ('k') | tests/syscalls/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nacl/syscall_bindings_trampoline.h
diff --git a/src/untrusted/nacl/syscall_bindings_trampoline.h b/src/untrusted/nacl/syscall_bindings_trampoline.h
index 6386057e03b6589bd84f3b1adf16f443dba65004..80085c827fb94138e05c22477d02862c1d87208c 100644
--- a/src/untrusted/nacl/syscall_bindings_trampoline.h
+++ b/src/untrusted/nacl/syscall_bindings_trampoline.h
@@ -18,6 +18,7 @@ extern "C" {
#include <stdint.h>
#include <sys/types.h>
#include <time.h>
+#include <utime.h>
#include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h"
#include "native_client/src/trusted/service_runtime/nacl_config.h"
@@ -83,6 +84,16 @@ typedef int (*TYPE_nacl_lseek) (int desc,
typedef int (*TYPE_nacl_stat) (const char *file, struct stat *st);
+typedef int (*TYPE_nacl_fchdir) (int fd);
+
+typedef int (*TYPE_nacl_fchmod) (int fd, mode_t mode);
+
+typedef int (*TYPE_nacl_fsync) (int fd);
+
+typedef int (*TYPE_nacl_fdatasync) (int fd);
+
+typedef int (*TYPE_nacl_ftruncate) (int fd, off_t length);
+
typedef int (*TYPE_nacl_pread) (int fd, void *buf, size_t count, off_t *offset);
typedef int (*TYPE_nacl_pwrite) (int fd,
@@ -224,6 +235,8 @@ typedef int (*TYPE_nacl_readlink) (const char *path, char *buf, size_t bufsize);
typedef int (*TYPE_nacl_utimes) (const char *path, const struct timeval *times);
+typedef int (*TYPE_nacl_utime) (const char *path, const struct utimbuf *times);
+
#ifdef __GNUC__
typedef void (*TYPE_nacl_exit) (int status) __attribute__((noreturn));
#else
« no previous file with comments | « src/untrusted/irt/irt_interfaces.c ('k') | tests/syscalls/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698