Re: a question regarding <sys/shm.h>
- From: Pascal Hofstee <caelian@xxxxxxxxx>
- Date: Wed, 31 Jan 2007 10:29:11 +0100
Peter Jeremy wrote:
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>).
First of all, thanks for the quick response. At the very least this sheds some light onto the history and how this situation likely came to pass. I'll see if i can put together a patch during the next week or so that would bring our definitions regarding System V IPC in synch, i'll also try to see if i can find additional occurances of similar discrepancies so these could be fixed in a single run.
Any additional sugestions/objections are always greatly appreciated.
--
Pascal Hofstee
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: a question regarding <sys/shm.h>
- From: Dag-Erling Smørgrav
- Re: a question regarding <sys/shm.h>
- References:
- a question regarding <sys/shm.h>
- From: Pascal Hofstee
- Re: a question regarding <sys/shm.h>
- From: Peter Jeremy
- a question regarding <sys/shm.h>
- Prev by Date: Re: a question regarding <sys/shm.h>
- Next by Date: Re: a question regarding <sys/shm.h>
- Previous by thread: Re: a question regarding <sys/shm.h>
- Next by thread: Re: a question regarding <sys/shm.h>
- Index(es):
Relevant Pages
- Re: BEWARE: New EULA lets MS ADMIN YOUR Systems!
... the law does not rely on "common sense". ... disables DRM IN THE MEDIA
PLAYER, then the EULA should have said so. ... >>> download this patch from Windows
Update, ... >>> say in what MS installs because I agree to install this one patch?
... (microsoft.public.security) - [PATCH 10/14] change lspp ipc auditing
... The patch below converts IPC auditing to collect sid's and convert to context
... string only if it needs to output an audit record. ... struct selinux_audit_rule;
... (Linux-Kernel) - Re: pain patch/oxycontin?
... but so many of us reject common sense in hopes of finding a magic ... >I
found the patch worked better for me than Oxycontin as I don't get the ... >> if
this does not would he wil pit me on the pain patch. ... I take 120 mg of oxy, ...
(alt.support.chronic-pain) - Need an answer to this please.
... I have validated from Microsoft ... apply SP4 over SP4 and the patch
is still valid. ... People, please do not pass speculation on, only facts ... Common
sense says that if you do ... (microsoft.public.security) - [PATCH] Add definitions of USHRT_MAX
... Add definitions of USHRT_MAX and others into kernel. ... ipc uses it
and ... slub implementation might also use it. ... The patch is against 2.6.25-rc6.
... (Linux-Kernel)