From 139ea40709b94e0869d4cf7f12fe56656980f163 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 2 Nov 2004 15:15:10 +0000 Subject: 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 --- libc/sysdeps/linux/common/bits/ipc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/bits/ipc.h b/libc/sysdeps/linux/common/bits/ipc.h index 97f9b5808..7103365ac 100644 --- a/libc/sysdeps/linux/common/bits/ipc.h +++ b/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; }; -- cgit v1.2.3