瀏覽代碼

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 21 年之前
父節點
當前提交
139ea40709
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 };