Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2001 16:55:01 +0300
From:      Peter Pentchev <roam@orbitel.bg>
To:        freebsd-hackers@FreeBSD.org
Subject:   Re: swapping bytes, fpos_t
Message-ID:  <20010626165501.B549@ringworld.oblivion.bg>
In-Reply-To: <20010626130659.400C437B405@hub.freebsd.org>; from 3d@hub.freebsd.org on Tue, Jun 26, 2001 at 06:06:59AM -0700
References:  <20010626130659.400C437B405@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 26, 2001 at 06:06:59AM -0700, Marc van Woerkom wrote:
> Oh yes, and I used fpos_t in all parts of libdvdread,
> that were used for seeking.
> Is this ugly, should better use the uint64 type
> burried deep with the machine dependent headers?
> What is good coding practice here?

For seeking, use off_t.  It is a 64-bit signed integer.
If you need real 64-bit offsets (unsigned), then you
might use uoff_t; but off_t should be enough, and it *is*
the standard type for seek offsets.

G'luck,
Peter

-- 
Thit sentence is not self-referential because "thit" is not a word.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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