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

Unified Diff: native_client_sdk/src/libraries/nacl_io/include/sys/mount.h

Issue 22642016: [NaCL SDK] Ship sys/mount.h for newlib/pnacl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
Index: native_client_sdk/src/libraries/nacl_io/include/sys/mount.h
diff --git a/native_client_sdk/src/libraries/nacl_io/syscalls/mount.c b/native_client_sdk/src/libraries/nacl_io/include/sys/mount.h
similarity index 52%
copy from native_client_sdk/src/libraries/nacl_io/syscalls/mount.c
copy to native_client_sdk/src/libraries/nacl_io/include/sys/mount.h
index 666e09c0e49bc4790a486bd033b74f9c6af835da..2ef9277353560e691c5a93ee3df09343b650fb7a 100644
--- a/native_client_sdk/src/libraries/nacl_io/syscalls/mount.c
+++ b/native_client_sdk/src/libraries/nacl_io/include/sys/mount.h
@@ -2,10 +2,12 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
-#include "nacl_io/kernel_intercept.h"
-#include "nacl_io/kernel_wrap.h"
+#ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H
+#define LIBRARIES_NACL_IO_INCLUDE_MOUNT_H
binji 2013/08/09 21:10:39 bad include guard
Sam Clegg 2013/08/09 21:19:02 Done.
int mount(const char* source, const char* target, const char* filesystemtype,
- unsigned long mountflags, const void* data) {
- return ki_mount(source, target, filesystemtype, mountflags, data);
-}
+ unsigned long mountflags, const void *data);
+
+int umount(const char *target);
+
+#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H */

Powered by Google App Engine
This is Rietveld 408576698