]> sourceware.org Git - newlib-cygwin.git/commitdiff
2002-03-03 Robert Collins <rbtcollins@hotmail.com>
authorRobert Collins <rbtcollins@hotmail.com>
Sun, 3 Mar 2002 12:52:59 +0000 (12:52 +0000)
committerRobert Collins <rbtcollins@hotmail.com>
Sun, 3 Mar 2002 12:52:59 +0000 (12:52 +0000)
        * shm.cc (shmat): Prevent a compile error.
        (shmdt): Set errno as this function is incomplete.

winsup/cygwin/ChangeLog
winsup/cygwin/shm.cc

index 1b8bbb9eabb5baad99ceb268a7fcfa633f33c0c7..2a0bce12e519884ebe69eb880c1ee948b92e4de3 100644 (file)
@@ -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.
index dbe9bb0e986a844ba50a07d9fd5dd2dc70e16819..7fe95edde957ab66b5a8a269afe80ffed35f9e9c 100644 (file)
@@ -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? 
This page took 0.035009 seconds and 5 git commands to generate.