Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2007 15:31:14 +0100
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: a question regarding <sys/shm.h>
Message-ID:  <20070131153114.4e76a6ea@localhost>
In-Reply-To: <20070131105024.L91177@fledge.watson.org>
References:  <45C04593.2090704@gmail.com> <20070131085206.GW892@turion.vk2pj.dyndns.org> <45C06167.60401@gmail.com> <86odofjyua.fsf@dwp.des.no> <20070131105024.L91177@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Robert Watson <rwatson@FreeBSD.org> wrote:

> On Wed, 31 Jan 2007, Dag-Erling Smørgrav wrote:
> 
> > Pascal Hofstee <caelian@gmail.com> writes:
> >> Any additional sugestions/objections are always greatly appreciated.
> >
> > On 32-bit platforms (i386, powerpc), int is a 32-bit signed integer while 
> > size_t is a 32-bit unsigned integer.
> >
> > On 64-bit platforms (amd64, sparc64 etc), int is a 32-bit signed integer 
> > while size_t is a 64-bit unsigned integer.
> >
> > In both cases, changing this structure member from int to size_t will break 
> > the ABI.
> >
> > This doesn't mean you shouldn't do it, just that it should be done with 
> > care.
> 
> If we do decide to go ahead with the ABI change, there are a number of other 
> things that should be done simultaneously, such as changing the uid and gid 
> fields to uid_t and gid_t.

struct tm's members could be changed as well.

Quoting a response I got from Juliusz Chroboczek
(the author of Polipo) after reporting a compiler
warning:

|By the way, IEEE 1003.1-2003 says that tv_sec should be a time_t,
|hence by making it a long, FreeBSD and NetBSD are violating the POSIX
|standard.  Could you please file a bug report with them?

I didn't find any claims about FreeBSD being IEEE 1003.1-2003
compliant and therefore didn't consider it a bug, but given that
the topic is *_t changes and time_t hasn't come up yet,
I'd like to mention it anyway.

Fabian

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFwKg7BYqIVf93VJ0RAkgkAJ46e6l4q5xAOmv1QCpCoD33so+U6QCfeeJo
8K137VWewQtzvGOxM27m5gc=
=h41F
-----END PGP SIGNATURE-----

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