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

Unified Diff: libc/arch-nacl/syscalls/mkdir.c

Issue 156883002: Prep dynamic linker. (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-bionic.git@master
Patch Set: Created 6 years, 10 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 | « libc/arch-nacl/syscalls/kill.c ('k') | libc/arch-nacl/syscalls/select.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libc/arch-nacl/syscalls/mkdir.c
diff --git a/libc/arch-nacl/syscalls/mkdir.c b/libc/arch-nacl/syscalls/mkdir.c
index 1946f6f3eeb827ca40d08dd4bfb24483be1b18e7..597c47300049687dbcf31672d725b16bbca938b1 100644
--- a/libc/arch-nacl/syscalls/mkdir.c
+++ b/libc/arch-nacl/syscalls/mkdir.c
@@ -6,11 +6,16 @@
#include <sys/stat.h>
int mkdir(const char *pathname, mode_t mode) {
- size_t nwrite;
- int result = nacl_irt_mkdir(pathname, mode);
- if (result != 0) {
- errno = result;
- return -1;
+ if (__nacl_irt_mkdir) {
+ size_t nwrite;
+ int result = __nacl_irt_mkdir(pathname, mode);
+ if (result != 0) {
+ errno = result;
+ return -1;
+ }
+ return 0;
}
+ errno = ENOSYS;
+ return -1;
}
« no previous file with comments | « libc/arch-nacl/syscalls/kill.c ('k') | libc/arch-nacl/syscalls/select.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698