Преглед на файлове

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 преди 20 години
родител
ревизия
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_uid_t	cuid;
     __kernel_gid_t	cgid;
     __kernel_gid_t	cgid;
     __kernel_mode_t	mode; 
     __kernel_mode_t	mode; 
-    unsigned short	__seq;
+    unsigned long	seq;
 };
 };