a question regarding <sys/shm.h>
peterjeremy at optushome.com.au
Wed Jan 31 09:16:59 UTC 2007
On Wed, 2007-Jan-31 08:30:27 +0100, Pascal Hofstee wrote:
>In a recent attempt in trying to clean up some compiler warnings in a
>GNUstep related project i came upon a case where the FreeBSD datatypes
>seemed to disagree with the Linux ones. Though this in itself is not
>unusual i do wonder if in this case the Linux definition isn't the more
>The definition in question is inside <sys/shm.h> and involves
>struct shmid_ds.shm_segsz which seems to be defined as "int" whereas
>Linux defines this as "size_t".
Whilst I agree that the Linux defn is the more sensible one, System V
IPC and common sense are not commonly found together. Tradionally the
definition was "int". It appears that the definition changed from
"int" to "size_t" in issue 5 of the Open Group base definition but
FreeBSD has not caught up with this.
I'm not sure what plans there are to change this. You could try
putting together a patch to address this and submitting it as a PR
(this means addressing all references to shm_segsz in the base
system, not just <sys/shm.h>).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070131/2efdeb15/attachment.pgp
More information about the freebsd-hackers