Skip to contentSkip to conversation

IA-32 emulation patch: ipc_perm32.patch

Linux-ia64 Arun Sharma 2 participants 2 messages May 23, 2003 – May 29, 2003

lore
Share & tools
lore
#0 lore raw

In the absence of the patch, this system call fails:

shmctl(shmid, IPC_STAT, &shmid_ds)

The patch corrects the definition of the ipc_perm32 structure.

-Arun

=== linux-ia64-2.4/arch/ia64/ia32/sys_ia32.c 1.16 vs edited ==--- 1.16/arch/ia64/ia32/sys_ia32.c Fri Apr 18 10:55:20 2003
+++ edited/linux-ia64-2.4/arch/ia64/ia32/sys_ia32.c Thu May 22 17:59:55 2003
@@ -2085,7 +2085,7 @@
};

struct shmid64_ds32 {
- struct ipc64_perm shm_perm;
+ struct ipc64_perm32 shm_perm;
__kernel_size_t32 shm_segsz;
__kernel_time_t32 shm_atime;
unsigned int __unused1;

#1 lore raw
Quoted 5 lines · Arun Sharma

In the absence of the patch, this system call fails:

shmctl(shmid, IPC_STAT, &shmid_ds)

The patch corrects the definition of the ipc_perm32 structure.

I applied this for 2.4.