aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-10 15:48:58 +0000
committerMike Frysinger <vapier@gentoo.org>2008-11-10 15:48:58 +0000
commitf27622d796b1ee07a604b0fdb3a2c15c9e0c3343 (patch)
tree5bf92d6bb93018d3283f887ff4acab6337d5c141 /libsandbox/wrapper-funcs/truncate64.c
parentlibsandbox: break function args out into WRAPPER_ARGS and func name into STRI... (diff)
downloadsandbox-f27622d796b1ee07a604b0fdb3a2c15c9e0c3343.tar.gz
sandbox-f27622d796b1ee07a604b0fdb3a2c15c9e0c3343.tar.bz2
sandbox-f27622d796b1ee07a604b0fdb3a2c15c9e0c3343.zip
libsandbox: unify 64bit versions with the non-64bit versions
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/wrapper-funcs/truncate64.c')
-rw-r--r--libsandbox/wrapper-funcs/truncate64.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/libsandbox/wrapper-funcs/truncate64.c b/libsandbox/wrapper-funcs/truncate64.c
index 519ed9b..a06b895 100644
--- a/libsandbox/wrapper-funcs/truncate64.c
+++ b/libsandbox/wrapper-funcs/truncate64.c
@@ -3,24 +3,8 @@
*
* Copyright 1999-2008 Gentoo Foundation
* Licensed under the GPL-2
- *
- * Partly Copyright (C) 1998-9 Pancrazio `Ezio' de Mauro <p@demauro.net>,
- * as some of the InstallWatch code was used.
*/
-#define WRAPPER_ARGS const char *path, __off64_t length
-extern int EXTERN_NAME(WRAPPER_ARGS);
-static int (*WRAPPER_TRUE_NAME)(WRAPPER_ARGS) = NULL;
-
-int WRAPPER_NAME(WRAPPER_ARGS)
-{
- int result = -1;
-
- if FUNCTION_SANDBOX_SAFE(STRING_NAME, path) {
- check_dlsym(WRAPPER_TRUE_NAME, WRAPPER_SYMNAME,
- WRAPPER_SYMVER);
- result = WRAPPER_TRUE_NAME(path, length);
- }
-
- return result;
-}
+#include "__64_pre.h"
+#include "truncate.c"
+#include "__64_post.h"