K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-05-05T18:53:13.000000Z K 7 svn:log V 1448 Merge sysv_msg.c:1.54, sysv_sem.c:1.71-1.72, sysv_shm.c:1.98, msg.h:1.18: Second of several commits to allow kernel System V IPC data structures to be modified and extended without breaking the user space ABI: Use _kernel variants on _ds structures for System V sempahores, message queues, and shared memory. When interfacing with userspace, export only the _ds subsets of the _kernel data structures. A lot of search and replace. Define the message structure in the _KERNEL portion of msg.h so that it can be used by other kernel consumers, but not exposed to user space. Submitted by: Dandekar Hrishikesh Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Correct two incorrectly merged changes introduced in sysv_sem.c:1.71: return EINVAL rather than setting error, and don't free sops unconditionally. The first change was merged accidentally as part of the larger set of changes to introduce MAC labels and access control, and potentially lead to continued processing of a request even after it was determined to be invalid. The second change was due to changes in the semaphore code since the original work was performed. Pointed out by: truckman NOTE: Change to ipcs.c in user space that catches up with kernel header changes to follow shortly in a second commit. The API has changed, but not the ABI. Requested by: ps END