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

Unified Diff: src/untrusted/irt/irt_dev.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/trusted/service_runtime/sys_filename.c ('k') | src/untrusted/irt/irt_fdio.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/irt/irt_dev.h
diff --git a/src/untrusted/irt/irt_dev.h b/src/untrusted/irt/irt_dev.h
index 7286c92e0b7891542a7fd847263a340e6f9791e7..875877aeb444b220d3092ce4a1dd449515ab117e 100644
--- a/src/untrusted/irt/irt_dev.h
+++ b/src/untrusted/irt/irt_dev.h
@@ -9,6 +9,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <sys/types.h>
+#include <utime.h>
/* Use relative path so that irt_dev.h can be installed as a system header. */
#include "irt.h"
@@ -84,6 +85,15 @@ struct nacl_irt_dev_filename_v0_2 {
int (*chdir)(const char *pathname);
int (*getcwd)(char *pathname, size_t len);
int (*unlink)(const char *pathname);
+ int (*truncate)(const char *pathname, nacl_irt_off_t length);
+ int (*lstat)(const char *pathname, struct stat *);
+ int (*link)(const char *oldpath, const char *newpath);
+ int (*rename)(const char *oldpath, const char *newpath);
+ int (*symlink)(const char *oldpath, const char *newpath);
+ int (*chmod)(const char *path, mode_t mode);
+ int (*access)(const char *path, int amode);
+ int (*readlink)(const char *path, char *buf, size_t count, size_t *nread);
+ int (*utimes)(const char *filename, const struct timeval *times);
};
#define NACL_IRT_DEV_FILENAME_v0_3 "nacl-irt-dev-filename-0.3"
« no previous file with comments | « src/trusted/service_runtime/sys_filename.c ('k') | src/untrusted/irt/irt_fdio.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698