os: Minor header cleanup

Move some constants near their only users, and remove some
getdtablesize() logic that's second-guessing configure.

Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2011-06-17 14:17:09 -04:00
parent 48e7a2ef57
commit c44ef2e1ff
3 changed files with 4 additions and 4 deletions

View File

@ -873,6 +873,8 @@ EstablishNewConnections(ClientPtr clientUnused, pointer closure)
* Fail a connection due to lack of client or file descriptor space * Fail a connection due to lack of client or file descriptor space
************/ ************/
#define BOTIMEOUT 200 /* in milliseconds */
static void static void
ErrorConnMax(XtransConnInfo trans_conn) ErrorConnMax(XtransConnInfo trans_conn)
{ {

View File

@ -129,6 +129,8 @@ static OsCommPtr AvailableInput = (OsCommPtr)NULL;
((xBigReq *)(req))->length) ((xBigReq *)(req))->length)
#define MAX_TIMES_PER 10 #define MAX_TIMES_PER 10
#define BUFSIZE 4096
#define BUFWATERMARK 8192
/* /*
* A lot of the code in this file manipulates a ConnectionInputPtr: * A lot of the code in this file manipulates a ConnectionInputPtr:

View File

@ -52,10 +52,6 @@ SOFTWARE.
#ifndef _OSDEP_H_ #ifndef _OSDEP_H_
#define _OSDEP_H_ 1 #define _OSDEP_H_ 1
#define BOTIMEOUT 200 /* in milliseconds */
#define BUFSIZE 4096
#define BUFWATERMARK 8192
#if defined(XDMCP) || defined(HASXDMAUTH) #if defined(XDMCP) || defined(HASXDMAUTH)
#include <X11/Xdmcp.h> #include <X11/Xdmcp.h>
#endif #endif