* 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.
This commit is contained in:
Corinna Vinschen
2004-03-30 15:20:08 +00:00
parent 66c8e18830
commit 5c7b73ed97
3 changed files with 31 additions and 3 deletions

View File

@ -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. */