]> andersk Git - moira.git/blobdiff - include/gdb.h
Bump GDB_MAX_CONNECTIONS from 25 to 40
[moira.git] / include / gdb.h
index 9250b41c1bd54aae895e7c9fe6b2e19fe40bf15b..72ce94284b710e80c61d59c39aa5e9ebf5706bc3 100644 (file)
 #ifndef howmany
 #define        howmany(x, y)   (((x)+((y)-1))/(y))
 #endif
+#ifndef FD_SETSIZE
+#define FD_SETSIZE 256
+#endif
 #ifndef FD_SET
 #define FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
 #define FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
 #define FD_ISSET(n, p)  ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
 #define FD_ZERO(p)      bzero(p, sizeof(*(p)))
+typedef long fd_mask;
+typedef struct fd_set {fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)];} fd_set;
 #endif 
 
 
@@ -77,6 +82,8 @@
 
 #define GDB_ROUNDUP(n,b) ((((n)+(b)-1)/(b))*(b))
 
+extern int     gdb_Options;                    /* Control optional features */
+#define GDB_OPT_KEEPALIVE      1
 extern int     gdb_Debug;                      /* debugging flags are */
                                                /* stored here */
 extern FILE *gdb_log;                          /* file descriptor for */
@@ -398,7 +405,7 @@ typedef struct rel_dat *RELATION;           /* handle on a relation */
 #define GDB_BIND_RETRY_INTERVAL 10             /* Number of seconds to wait */
                                                /* between attempts to bind */
                                                /* the listening socket */
-#define GDB_MAX_CONNECTIONS 25                 /* maximum number of */
+#define GDB_MAX_CONNECTIONS 40                 /* maximum number of */
                                                /* connections that */
                                                /* any one process can */
                                                /* control simultaneously */
@@ -580,7 +587,7 @@ extern struct con_data gdb_cons[GDB_MAX_CONNECTIONS];
 extern fd_set gdb_crfds, gdb_cwfds, gdb_cefds; /* connection related file */
                                                /* descriptor maps to be */
                                                /* used in select */
-fd_set last_crfds, last_cwfds, last_cefds;     /* these file desc. bit */
+extern fd_set last_crfds, last_cwfds, last_cefds;/* these file desc. bit */
                                                /* masks are set up */
                                                /* for each select call */
                                                /* to include the user */
This page took 0.05377 seconds and 4 git commands to generate.