From: Robert Collins Date: Sun, 3 Mar 2002 12:52:59 +0000 (+0000) Subject: 2002-03-03 Robert Collins X-Git-Tag: w32api-1_5~468 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=009314a45d1207735e9e37436df2360d17912104;p=newlib-cygwin.git 2002-03-03 Robert Collins * shm.cc (shmat): Prevent a compile error. (shmdt): Set errno as this function is incomplete. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1b8bbb9ea..2a0bce12e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-03-03 Robert Collins + + * shm.cc (shmat): Prevent a compile error. + (shmdt): Set errno as this function is incomplete. + 2002-02-28 Christopher Faylor * times.cc: Remove if 0'd code. Clean up slightly. 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?