diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-18 04:13:14 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-18 04:13:14 +0100 |
commit | 88c63f21b18bcf345856c5ef2ca9504f29e9ace8 (patch) | |
tree | 8b899e6d186a25a02f446df1ab82fa3e58f660e8 /file.c | |
parent | 8677913953ecf97f4824f6ce666cdc36fee8fe70 (diff) | |
download | strace-88c63f21b18bcf345856c5ef2ca9504f29e9ace8.tar.gz strace-88c63f21b18bcf345856c5ef2ca9504f29e9ace8.tar.bz2 strace-88c63f21b18bcf345856c5ef2ca9504f29e9ace8.tar.xz |
Remove unused version of sys_lseek
It is buggy: it returns RVAL_LUDECIMAL, which means the return value
is in tcp->u_lrval. But tcp->u_lrval is never set
(on Linux - it used to be set on other OSes).
* file.c (sys_lseek): Remove a version of this function which is
supposed to be used if off_t is long long. It appears to be buggy
and unused.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -520,25 +520,6 @@ sys_lseek(struct tcb *tcp) return RVAL_UDECIMAL; } # endif -#else /* HAVE_LONG_LONG_OFF_T */ -/* - * ??? Any arch using it? I386 doesn't... - */ -int -sys_lseek(struct tcb *tcp) -{ - if (entering(tcp)) { - int argn; - printfd(tcp, tcp->u_arg[0]); - tprints(", "); - if (tcp->u_arg[3] == SEEK_SET) - argn = printllval(tcp, "%llu, ", 1); - else - argn = printllval(tcp, "%lld, ", 1); - printxval(whence, tcp->u_arg[argn], "SEEK_???"); - } - return RVAL_LUDECIMAL; -} #endif int |