From 5c7b73ed978ba139423813144e4eecccf016c81a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 30 Mar 2004 15:20:08 +0000 Subject: * shm.cc (shmat): If shmid is unknown, call a special variation of shmget to retrieve the shared memory segment from Cygserver instead of failing immediately. * include/cygwin/ipc.h (IPC_KEY_IS_SHMID): New internal flag for shmget when called from shmat. --- winsup/cygwin/include/cygwin/ipc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/include') diff --git a/winsup/cygwin/include/cygwin/ipc.h b/winsup/cygwin/include/cygwin/ipc.h index 90534c29d..d0f5beaa1 100644 --- a/winsup/cygwin/include/cygwin/ipc.h +++ b/winsup/cygwin/include/cygwin/ipc.h @@ -32,6 +32,9 @@ struct ipc_perm /* Mode bits: */ +#ifdef _KERNEL +#define IPC_KEY_IS_SHMID 0x0100 /* Used in shmget when called from shmat. */ +#endif #define IPC_CREAT 0x0200 /* Create entry if key does not exist. */ #define IPC_EXCL 0x0400 /* Fail if key exists. */ #define IPC_NOWAIT 0x0800 /* Error if request must wait. */ -- cgit v1.2.3