summaryrefslogtreecommitdiff
path: root/mem.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-02-18 15:49:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-18 15:49:57 +0100
commitafd0072c376bfb438b02327e65b7996e2909f6ff (patch)
tree56fe7927f54bd53e12a301c8d5085e65966a7db9 /mem.c
parent8435d672ebbc318648a54beef1d491f1ce0531a3 (diff)
downloadstrace-afd0072c376bfb438b02327e65b7996e2909f6ff.tar.gz
strace-afd0072c376bfb438b02327e65b7996e2909f6ff.tar.bz2
strace-afd0072c376bfb438b02327e65b7996e2909f6ff.tar.xz
Remove unused function sys_mmap64
No wonder that it is unused. It's code looked quite questionable. * mem.c (sys_mmap64): Remove this function. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/mem.c b/mem.c
index 653429b..b67a1b6 100644
--- a/mem.c
+++ b/mem.c
@@ -300,59 +300,6 @@ sys_mmap(struct tcb *tcp)
return print_mmap(tcp, tcp->u_arg, offset);
}
-#if _LFS64_LARGEFILE
-/* TODO: comment which arches use this routine.
- * For one, does ALPHA on Linux use this??
- * From code it seems that it might use 7 or 8 registers,
- * which is strange - Linux syscalls can pass maximum of 6 parameters!
- */
-int
-sys_mmap64(struct tcb *tcp)
-{
- if (entering(tcp)) {
-#if defined(ALPHA) || defined(X32)
- long *u_arg = tcp->u_arg;
-#else
- long u_arg[7];
- if (umoven(tcp, tcp->u_arg[0], sizeof u_arg,
- (char *) u_arg) == -1)
- return 0;
-#endif
- /* addr */
- if (!u_arg[0])
- tprints("NULL, ");
- else
- tprintf("%#lx, ", u_arg[0]);
- /* len */
- tprintf("%lu, ", u_arg[1]);
- /* prot */
- printflags(mmap_prot, u_arg[2], "PROT_???");
- tprints(", ");
- /* flags */
-#ifdef MAP_TYPE
- printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
- addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
-#else
- printflags(mmap_flags, u_arg[3], "MAP_???");
-#endif
- /* fd */
- tprints(", ");
- printfd(tcp, u_arg[4]);
- /* offset */
-#if defined(ALPHA) || defined(X32)
- printllval(tcp, ", %#llx", 5);
-#else
- /* NOTE: not verified that [5] and [6] should be used.
- * It's possible that long long is 64-bit aligned in memory
- * and we need to use [6] and [7] here instead:
- */
- tprintf(", %#llx", LONG_LONG(u_arg[5], u_arg[6]));
-#endif
- }
- return RVAL_HEX;
-}
-#endif
-
int
sys_munmap(struct tcb *tcp)
{