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'.
This commit is contained in:
Corinna Vinschen
2009-01-21 17:14:39 +00:00
parent d9ad7a9c4e
commit 7ffaa17c80
24 changed files with 2561 additions and 2351 deletions

View File

@@ -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
}