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

Unified Diff: sysdeps/nacl/sysdep.h

Issue 9965011: added several syscalls for nacl mounts (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: fixed TODO Created 8 years, 9 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
« elf/Versions ('K') | « sysdeps/nacl/irt_syscalls.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/sysdep.h
diff --git a/sysdeps/nacl/sysdep.h b/sysdeps/nacl/sysdep.h
index 0f43b4dc5a0974f70b64446de5bc766d9b3fe843..bd45eb546acbb04b90177c961b3e330291f42354 100644
--- a/sysdeps/nacl/sysdep.h
+++ b/sysdeps/nacl/sysdep.h
@@ -114,7 +114,7 @@ INTERNAL_SYSCALL_capset_2 (int *err, struct __user_cap_header_struct *hdrp,
__extern_always_inline int
INTERNAL_SYSCALL_chdir_1 (int *err, const char *path)
{
- *err = (38 /* ENOSYS */);
+ *err = __nacl_irt_chdir (path);
return 0;
}
@@ -588,8 +588,8 @@ INTERNAL_SYSCALL_getcpu_3 (int *err, unsigned *cpu, unsigned *node,
__extern_always_inline int
INTERNAL_SYSCALL_getcwd_2 (int *err, char *buf, size_t size)
{
- *err = (38 /* ENOSYS */);
- return 0;
+ char* ret = __nacl_irt_getcwd (buf, size) > 0 ? buf : 0;
+ return ret > 0 ? 0 : errno;
pasko-google - do not use 2012/03/30 12:36:29 *err must be updated in case of error and we shoul
}
__extern_always_inline gid_t
@@ -915,7 +915,7 @@ INTERNAL_SYSCALL_mincore_3 (int *err, void *addr, size_t length,
__extern_always_inline int
INTERNAL_SYSCALL_mkdir_2 (int *err, const char *pathname, mode_t mode)
{
- *err = (38 /* ENOSYS */);
+ *err = __nacl_irt_mkdir (pathname, mode);
return 0;
}
@@ -1305,7 +1305,7 @@ INTERNAL_SYSCALL_renameat_4 (int *err, int olddfd, const char *oldname,
__extern_always_inline int
INTERNAL_SYSCALL_rmdir_1 (int *err, const char *pathname)
{
- *err = (38 /* ENOSYS */);
+ *err = __nacl_irt_rmdir (pathname);
return 0;
}
« elf/Versions ('K') | « sysdeps/nacl/irt_syscalls.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698