| 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) {
|
|
|