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

Unified Diff: src/untrusted/irt/irt_fdio.c

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_dev.h ('k') | src/untrusted/irt/irt_filename.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/irt/irt_fdio.c
diff --git a/src/untrusted/irt/irt_fdio.c b/src/untrusted/irt/irt_fdio.c
index 4599faf08cba5f7d59ed0ed85dcfa15d137a6e4c..76fb2c521285df0e369c9582b0e56673775f7760 100644
--- a/src/untrusted/irt/irt_fdio.c
+++ b/src/untrusted/irt/irt_fdio.c
@@ -68,23 +68,23 @@ static int nacl_irt_getdents(int fd, struct dirent *buf, size_t count,
}
static int nacl_irt_fchdir(int fd) {
- return ENOSYS;
+ return -NACL_SYSCALL(fchdir)(fd);
}
static int nacl_irt_fchmod(int fd, mode_t mode) {
- return ENOSYS;
+ return -NACL_SYSCALL(fchmod)(fd, mode);
}
static int nacl_irt_fsync(int fd) {
- return ENOSYS;
+ return -NACL_SYSCALL(fsync)(fd);
}
static int nacl_irt_fdatasync(int fd) {
- return ENOSYS;
+ return -NACL_SYSCALL(fdatasync)(fd);
}
-static int nacl_irt_ftruncate(int fd, off_t legnth) {
- return ENOSYS;
+static int nacl_irt_ftruncate(int fd, off_t length) {
+ return -NACL_SYSCALL(ftruncate)(fd, length);
}
static int nacl_irt_isatty(int fd, int *result) {
« no previous file with comments | « src/untrusted/irt/irt_dev.h ('k') | src/untrusted/irt/irt_filename.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698