Bug #2259

off_t type definition

Added by robin.carey1 almost 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Dear DragonFlyBSD bugs,

Whilst checking some software I wrote (on leaf.dragonflybsd.org), I
discovered that the

off_t

type is a signed value (on leaf.dragonflybsd.org).

On OpenBSD and FreeBSD, off_t is an unsigned value (which I assume is what
it is supposed to be).

--
Sincerely,

Robin Carey BSc

History

#1 Updated by swildner almost 3 years ago

"blkcnt_t and off_t shall be signed integer types."

says POSIX

#3 Updated by alexh almost 3 years ago

off_t is a signed type on every OS I know - and it most definitely is
signed on FreeBSD as well.

On 12/12/11 16:22, Robin Carey via Redmine wrote:
>
> Issue #2259 has been reported by Robin Carey.
>
> ----------------------------------------
> Bug #2259: off_t type definition
> http://bugs.dragonflybsd.org/issues/2259
>
> Author: Robin Carey
> Status: New
> Priority: Normal
> Assignee:
> Category:
> Target version:
>
>
> Dear DragonFlyBSD bugs,
>
> Whilst checking some software I wrote (on leaf.dragonflybsd.org), I
> discovered that the
>
> off_t
>
> type is a signed value (on leaf.dragonflybsd.org).
>
> On OpenBSD and FreeBSD, off_t is an unsigned value (which I assume is what
> it is supposed to be).
>

#4 Updated by swildner almost 3 years ago

  • Status changed from New to Closed

Yes it is int64_t on Free and long long on open, both signed.

Also available in: Atom PDF