Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-03-30 19:20:08 +0400
committerCorinna Vinschen <corinna@vinschen.de>2004-03-30 19:20:08 +0400
commit5c7b73ed978ba139423813144e4eecccf016c81a (patch)
treea1138ea59cfdc67fd737da7406aa221b10d72364 /winsup/cygwin/include
parent66c8e18830451ee6ffc231586c65fbf2c06535b2 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/ipc.h3
1 files changed, 3 insertions, 0 deletions
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. */