aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-04 22:55:51 -0500
committerMike Frysinger <vapier@gentoo.org>2009-02-05 01:32:33 -0500
commit30255588cd23d0be9dda3d5f385ea27c8f9d67f1 (patch)
tree4ceb216b700136a0e65f9b2c5131e87ad72bc093 /libsandbox/wrapper-funcs
parentlibsandbox: add _xmknod wrapper point for __xmknod (diff)
downloadsandbox-30255588cd23d0be9dda3d5f385ea27c8f9d67f1.tar.gz
sandbox-30255588cd23d0be9dda3d5f385ea27c8f9d67f1.tar.bz2
sandbox-30255588cd23d0be9dda3d5f385ea27c8f9d67f1.zip
libsandbox: use xxx_t types with __xmknod
Use the public xxx_t types rather than the internal __xxx_t. The former are more portable. With glibc systems, these are the same anyways. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/wrapper-funcs')
-rw-r--r--libsandbox/wrapper-funcs/__64_pre.h2
-rw-r--r--libsandbox/wrapper-funcs/__xmknod.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libsandbox/wrapper-funcs/__64_pre.h b/libsandbox/wrapper-funcs/__64_pre.h
index f76e1b4..1e836f4 100644
--- a/libsandbox/wrapper-funcs/__64_pre.h
+++ b/libsandbox/wrapper-funcs/__64_pre.h
@@ -1,2 +1,2 @@
#define stat stat64
-#define off_t __off64_t
+#define off_t off64_t
diff --git a/libsandbox/wrapper-funcs/__xmknod.c b/libsandbox/wrapper-funcs/__xmknod.c
index 2f4cf33..178c7ae 100644
--- a/libsandbox/wrapper-funcs/__xmknod.c
+++ b/libsandbox/wrapper-funcs/__xmknod.c
@@ -5,7 +5,7 @@
* Licensed under the GPL-2
*/
-#define WRAPPER_ARGS_PROTO int ver, const char *pathname, __mode_t mode, __dev_t *dev
+#define WRAPPER_ARGS_PROTO int ver, const char *pathname, mode_t mode, dev_t *dev
#define WRAPPER_ARGS ver, pathname, mode, dev
#define WRAPPER_SAFE() FUNCTION_SANDBOX_SAFE(pathname)
#include "__wrapper_simple.c"