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

next in thread | previous in thread | raw e-mail | index | archive | help
>                 (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?199511122106.NAA21837>