Browse Source

struct ipc_perm, as used by shmctl() when soing shared memory stuff,
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

Eric Andersen 19 years ago
parent
commit
139ea40709
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/common/bits/ipc.h

+ 1 - 1
libc/sysdeps/linux/common/bits/ipc.h

@@ -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;
 };