#ifndef OS_H
#define OS_H
#include <X11/Xtrans.h>
extern fd_set AllSockets;
extern fd_set AllClients;
extern fd_set LastSelectMask;
extern fd_set WellKnownConnections;
extern fd_set ClientsWithInput;
extern fd_set ClientsWriteBlocked;
extern fd_set OutputPending;
extern int WaitForSomething(
#if NeedFunctionPrototypes
int * ,
Bool
#endif
);
extern Bool NewOutputPending;
extern Bool AnyClientsWriteBlocked;
extern int GrabInProgress;
extern void InitConnectionLimits(
#if NeedFunctionPrototypes
void
#endif
);
extern void CreateServerSockets(
#if NeedFunctionPrototypes
int *
#endif
);
extern void CloseServerSockets(
#if NeedFunctionPrototypes
void
#endif
);
extern void CreateWellKnownSockets(
#if NeedFunctionPrototypes
void
#endif
);
extern void ListenToProxyManager (
#if NeedFunctionPrototypes
void
#endif
);
extern void ListenWellKnownSockets (
#if NeedFunctionPrototypes
void
#endif
);
extern void ResetWellKnownSockets(
#if NeedFunctionPrototypes
void
#endif
);
extern void AvailableClientInput(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern ClientPtr AllocNewConnection(
#if NeedFunctionPrototypes
int ,
int ,
Bool ,
XtransConnInfo
#endif
);
extern void SwitchConnectionFuncs(
#if NeedFunctionPrototypes
ClientPtr ,
int (* )(),
int (* )()
#endif
);
extern void StartOutputCompression(
#if NeedFunctionPrototypes
ClientPtr ,
void (* )(),
void (* )()
#endif
);
extern Bool EstablishNewConnections(
#if NeedFunctionPrototypes
ClientPtr ,
pointer
#endif
);
extern void CloseDownFileDescriptor(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void CheckConnections(
#if NeedFunctionPrototypes
void
#endif
);
extern void CloseDownConnection(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void OnlyListenToOneClient(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void ListenToAllClients(
#if NeedFunctionPrototypes
void
#endif
);
extern void IgnoreClient(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void AttendClient(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void MakeClientGrabImpervious(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void MakeClientGrabPervious(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern unsigned long StandardRequestLength(
#if NeedFunctionPrototypes
xReq * ,
ClientPtr ,
int ,
Bool *
#endif
);
extern int StandardReadRequestFromClient(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern int PendingClientOutput(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern int CheckPendingClientInput(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void MarkConnectionWriteBlocked(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern int BytesInClientBuffer(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void SkipInClientBuffer(
#if NeedFunctionPrototypes
ClientPtr ,
int ,
int
#endif
);
extern Bool InsertFakeRequest(
#if NeedFunctionPrototypes
ClientPtr ,
char * ,
int
#endif
);
extern void ResetCurrentRequest(
#if NeedFunctionPrototypes
ClientPtr
#endif
);
extern void FlushAllOutput(
#if NeedFunctionPrototypes
void
#endif
);
extern int StandardWriteToClient(
#if NeedFunctionPrototypes
ClientPtr ,
int ,
char *
#endif
);
extern int UncompressWriteToClient(
#if NeedFunctionPrototypes
ClientPtr ,
int ,
char *
#endif
);
extern void ResetOsBuffers(
#if NeedFunctionPrototypes
void
#endif
);
extern void OsInit(
#if NeedFunctionPrototypes
void
#endif
);
#endif