diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2002-03-03 12:52:59 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2002-03-03 12:52:59 +0000 |
commit | 009314a45d1207735e9e37436df2360d17912104 (patch) | |
tree | 0525289592d7c627b3e101eae6f30cf2f815db75 /winsup/cygwin/shm.cc | |
parent | 70228d7e0735b41fdec7958f9213844635e44d75 (diff) | |
download | cygnal-009314a45d1207735e9e37436df2360d17912104.tar.gz cygnal-009314a45d1207735e9e37436df2360d17912104.tar.bz2 cygnal-009314a45d1207735e9e37436df2360d17912104.zip |
2002-03-03 Robert Collins <rbtcollins@hotmail.com>
* shm.cc (shmat): Prevent a compile error.
(shmdt): Set errno as this function is incomplete.
Diffstat (limited to 'winsup/cygwin/shm.cc')
-rw-r--r-- | winsup/cygwin/shm.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/shm.cc b/winsup/cygwin/shm.cc index dbe9bb0e9..7fe95edde 100644 --- a/winsup/cygwin/shm.cc +++ b/winsup/cygwin/shm.cc @@ -229,7 +229,7 @@ shmat (int shmid, const void *shmaddr, int shmflg) } - class shmid_ds *shm = tempnode->shmds; + // class shmid_ds *shm = tempnode->shmds; if (shmaddr) { @@ -277,7 +277,8 @@ shmdt (const void *shmaddr) /* this should be "rare" so a hefty search is ok. If this is common, then we * should alter the data structs to allow more optimisation */ - + set_errno (ENOTSUP); + return -1; } //FIXME: who is allowed to perform STAT? |