Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 1995 13:43:13 -0800
From:      "Amancio Hasty Jr." <hasty@rah.star-gate.com>
To:        Bakul Shah <bakul@netcom.com>
Cc:        hackers@freebsd.org
Subject:   Re: linux's lseek vs freebsd's lseek 
Message-ID:  <199511122143.NAA03928@rah.star-gate.com>
In-Reply-To: Your message of "Sun, 12 Nov 1995 13:06:36 PST." <199511122106.NAA21837@netcom22.netcom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

Hi,

I will have to investigate further more since without this change
doom and the music server do not work.

	Tnks,
	Amancio

>>> Bakul Shah said:
 > >                 (int)fp->f_offset += (int)uap->offset;
 > >                 ^^^^                 ^^^^
 > > The question is what is the implication of doing a signed addition as
 > > supposed to an unsigned addition as it is in the original file.
 > 
 > Huh? f_offset & uap->offset are of type quad_t, which is a
 > signed quantity and -ve offsets are perfectly reasonable
 > when you seek relative to file-end or current-position.
 > 




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