mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 11:00:41 +08:00
2002-03-03 Robert Collins <rbtcollins@hotmail.com>
* shm.cc (shmat): Prevent a compile error. (shmdt): Set errno as this function is incomplete.
This commit is contained in:
parent
70228d7e07
commit
009314a45d
@ -1,3 +1,8 @@
|
||||
2002-03-03 Robert Collins <rbtcollins@hotmail.com>
|
||||
|
||||
* shm.cc (shmat): Prevent a compile error.
|
||||
(shmdt): Set errno as this function is incomplete.
|
||||
|
||||
2002-02-28 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* times.cc: Remove if 0'd code. Clean up slightly.
|
||||
|
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user