Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 1995 14:21:17 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        hasty@rah.star-gate.com, jonny@gaia.coppe.ufrj.br
Cc:        hackers@FreeBSD.ORG
Subject:   Re: linux's lseek vs freebsd's lseek
Message-ID:  <199511130321.OAA02807@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> While in the process of getting Linux's music server for Doom (musserver)
>> working, I discovered that on linux you can issue a seek with a negative
>> offset.  

>You mean the off_t parameter ?

>Hasn't this been the default since the very beginning of Unix ?????

Yes.

The linux emulator is buggy.  It uses `unsigned long off' in its
`linux_lseek_args' struct.  This causes sign extension bugs when
the offset is converted to a long long and passed to lseek().

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511130321.OAA02807>