OSDN Git Service

struct ipc_perm, as used by shmctl() when soing shared memory stuff,
authorEric Andersen <andersen@codepoet.org>
Tue, 2 Nov 2004 15:15:10 +0000 (15:15 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 2 Nov 2004 15:15:10 +0000 (15:15 -0000)
was incorrect in uClibc, and was 2 bytes too short.  This caused uClibc
shared memory stuff to not behave correctly since struct ipc_perm was
included as the first member of, i.e. struct msqid_ds, so the content
of that struct were all shifted by two bytes.  ugh.  Apparently, few
people have used shared memory, msgctl(), etc with uClibc thus far,
 -Erik

libc/sysdeps/linux/common/bits/ipc.h

index 97f9b58..7103365 100644 (file)
@@ -51,6 +51,6 @@ struct ipc_perm
     __kernel_uid_t     cuid;
     __kernel_gid_t     cgid;
     __kernel_mode_t    mode; 
-    unsigned short     __seq;
+    unsigned long      seq;
 };