Bug #2259
closedoff_t type definition
0%
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
Updated by swildner almost 13 years ago
"blkcnt_t and off_t shall be signed integer types."
says POSIX
Updated by swildner almost 13 years 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 almost 13 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/2259Author: 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 theoff_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 almost 13 years ago
- Status changed from New to Closed
Yes it is int64_t on Free and long long on open, both signed.