diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-01-21 17:14:39 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-01-21 17:14:39 +0000 |
commit | 7ffaa17c80379b1a5b5f66865ee72e1c89584386 (patch) | |
tree | 43f525530c89be0d02f751021356a7c71042d865 /winsup/cygwin/sem.cc | |
parent | d9ad7a9c4edb8d5b8cadd7d1f0599c5f45635940 (diff) | |
download | cygnal-7ffaa17c80379b1a5b5f66865ee72e1c89584386.tar.gz cygnal-7ffaa17c80379b1a5b5f66865ee72e1c89584386.tar.bz2 cygnal-7ffaa17c80379b1a5b5f66865ee72e1c89584386.zip |
ChangeLog:
* configure.in: Remove --enable-server option. Allways add the
cygserver directory to $SUBDIRS.
* configure: Regenerate.
cygwin/ChangeLog:
Remove USE_SERVER define. Accommodate throughout.
* configure.in: Remove --enable-server option.
* configure: Regenerate.
* environ.cc: Remove CYGWIN=server setting.
cygserver/ChangeLog:
* client.cc (allow_server): Remove variable.
(client_request_get_version::client_request_get_version): Drop checking
allow_server.
utils/ChangeLog:
* passwd.c: Remove CYGWIN=server requirement from usage text.
doc/ChangeLog:
* cygserver.sgml: Remove the "How to use the Cygserver services"
section.
* cygwinenv.sgml: Move "(no)server" to the removed options section.
* faq-programming.xml: Remove CYGWIN=server requirement for running
the Cygwin testsuite.
* ntsec.sgml: Ditto for using `passwd -R'.
Diffstat (limited to 'winsup/cygwin/sem.cc')
-rw-r--r-- | winsup/cygwin/sem.cc | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/winsup/cygwin/sem.cc b/winsup/cygwin/sem.cc index c00190c5d..a87ee3269 100644 --- a/winsup/cygwin/sem.cc +++ b/winsup/cygwin/sem.cc @@ -1,6 +1,6 @@ /* sem.cc: XSI IPC interface for Cygwin. - Copyright 2003 Red Hat, Inc. + Copyright 2003, 2004, 2009 Red Hat, Inc. This file is part of Cygwin. @@ -9,7 +9,6 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #include "winsup.h" -#ifdef USE_SERVER #include <unistd.h> #include "sigproc.h" @@ -67,7 +66,6 @@ client_request_sem::client_request_sem (int semid, msglen (sizeof (_parameters.in)); } -#endif /* USE_SERVER */ /* * XSI semaphore API. These are exported by the DLL. @@ -76,7 +74,6 @@ client_request_sem::client_request_sem (int semid, extern "C" int semctl (int semid, int semnum, int cmd, ...) { -#ifdef USE_SERVER union semun arg = {0}; if (cmd == IPC_STAT || cmd == IPC_SET || cmd == IPC_INFO || cmd == SEM_INFO || cmd == GETALL || cmd == SETALL || cmd == SETVAL) @@ -101,17 +98,11 @@ semctl (int semid, int semnum, int cmd, ...) return -1; } return request.retval (); -#else - set_errno (ENOSYS); - raise (SIGSYS); - return -1; -#endif } extern "C" int semget (key_t key, int nsems, int semflg) { -#ifdef USE_SERVER syscall_printf ("semget (key = %U, nsems = %d, semflg = 0x%x)", key, nsems, semflg); client_request_sem request (key, nsems, semflg); @@ -124,17 +115,11 @@ semget (key_t key, int nsems, int semflg) return -1; } return request.retval (); -#else - set_errno (ENOSYS); - raise (SIGSYS); - return -1; -#endif } extern "C" int semop (int semid, struct sembuf *sops, size_t nsops) { -#ifdef USE_SERVER syscall_printf ("semop (semid = %d, sops = %p, nsops = %d)", semid, sops, nsops); myfault efault; @@ -150,9 +135,4 @@ semop (int semid, struct sembuf *sops, size_t nsops) return -1; } return request.retval (); -#else - set_errno (ENOSYS); - raise (SIGSYS); - return -1; -#endif } |