* file.c (sys_lseek): Use long instead of off_t.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
int
sys_lseek(struct tcb *tcp)
{
- off_t offset;
+ long offset;
int whence;
if (entering(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)