Bug #2259
off_t type definition
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due 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
Related todos
History
Updated by swildner over 1 year ago
"blkcnt_t and off_t shall be signed integer types."
says POSIX
Updated by swildner over 1 year ago
Sorry forgot URLs:
Issue 6:
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html
Issue 7 says it too:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
Updated by alexh over 1 year 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).
>
Updated by swildner over 1 year ago
- Status changed from New to Closed
Yes it is int64_t on Free and long long on open, both signed.