OSDN Git Service

Initial checkin of text Corinna sent to cygwin-announce.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygwin / cygserver_sem.h
index 53a5ec5..fdf6f8c 100644 (file)
@@ -1,6 +1,6 @@
 /* cygserver_sem.h: Single unix specification IPC interface for Cygwin.
 
-   Copyright 2003 Red Hat, Inc.
+   Copyright 2003, 2008 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -71,12 +71,12 @@ public:
   client_request_sem (int, struct sembuf *, size_t);   // semop
 #endif
 
-  int retval (void) const { return _parameters.out.ret; }
+  int retval () const { return msglen () ? _parameters.out.ret : -1; }
 };
 
 #ifndef __INSIDE_CYGWIN__
-int seminit (void);
-int semunload (void);
+int seminit ();
+int semunload ();
 void semexit_myhook(void *arg, struct proc *p);
 
 int semctl (struct thread *, struct semctl_args *);