summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-02-17 20:08:50 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-17 20:08:50 +0100
commit061217669b843f765992c57ea1de07293efa0f86 (patch)
tree1c6f67d46146ceb8b8a609bb0f9cf3fb70a4a7a0 /file.c
parent86738a232d74ddea29d2b9c90e8d036f63c438fd (diff)
downloadstrace-061217669b843f765992c57ea1de07293efa0f86.tar.gz
strace-061217669b843f765992c57ea1de07293efa0f86.tar.bz2
strace-061217669b843f765992c57ea1de07293efa0f86.tar.xz
Use explicit long type instead of off_t
* file.c (sys_lseek): Use long instead of off_t. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index bea5312..fb59f0d 100644
--- a/file.c
+++ b/file.c
@@ -559,7 +559,7 @@ sys_lseek(struct tcb *tcp)
int
sys_lseek(struct tcb *tcp)
{
- off_t offset;
+ long offset;
int whence;
if (entering(tcp)) {
@@ -586,7 +586,8 @@ sys_lseek(struct tcb *tcp)
* ((loff_t) hi << 32) | lo
* Note that for architectures with kernel's long wider than userspace long
* (such as x32), combining code will use *kernel's*, i.e. *wide* longs
- * for hi and lo. We may need to use tcp->ext_arg[N]!
+ * for hi and lo. We would need to use tcp->ext_arg[N] on x32...
+ * ...however, x32 (and x86_64) does not _have_ llseek syscall as such.
*/
int
sys_llseek(struct tcb *tcp)