/* 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.
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 *);