Annotation of embedaddon/lighttpd/src/settings.h, revision 1.1.1.2

1.1       misho       1: #ifndef _LIGHTTPD_SETTINGS_H_
                      2: #define _LIGHTTPD_SETTINGS_H_
                      3: 
                      4: #ifndef _GNU_SOURCE
                      5: # define _GNU_SOURCE
                      6: #endif
                      7: 
                      8: #ifndef __USE_GNU
                      9: # define __USE_GNU /* a hack in my eyes, <fcntl.h> F_SETSIG should work with _GNU_SOURCE */
                     10: #endif
                     11: 
1.1.1.2 ! misho      12: #ifdef __GNUC__
        !            13: # define LI_NORETURN __attribute__((noreturn))
        !            14: #else
        !            15: # define LI_NORETURN
        !            16: #endif
        !            17: 
1.1       misho      18: #define BV(x) (1 << x)
                     19: 
                     20: #define INET_NTOP_CACHE_MAX 4
                     21: #define FILE_CACHE_MAX      16
                     22: 
                     23: /**
                     24:  * max size of a buffer which will just be reset
                     25:  * to ->used = 0 instead of really freeing the buffer
                     26:  *
                     27:  * 64kB (no real reason, just a guess)
                     28:  */
                     29: #define BUFFER_MAX_REUSE_SIZE  (4 * 1024)
                     30: 
                     31: /* both should be way smaller than SSIZE_MAX :) */
                     32: #define MAX_READ_LIMIT (256*1024)
                     33: #define MAX_WRITE_LIMIT (256*1024)
                     34: 
                     35: /**
                     36:  * max size of the HTTP request header
                     37:  *
                     38:  * 32k should be enough for everything (just a guess)
                     39:  *
                     40:  */
                     41: #define MAX_HTTP_REQUEST_HEADER  (32 * 1024)
                     42: 
                     43: typedef enum { HANDLER_UNSET,
                     44:                HANDLER_GO_ON,
                     45:                HANDLER_FINISHED,
                     46:                HANDLER_COMEBACK,
                     47:                HANDLER_WAIT_FOR_EVENT,
                     48:                HANDLER_ERROR,
                     49:                HANDLER_WAIT_FOR_FD
                     50: } handler_t;
                     51: 
                     52: #define HTTP_LINGER_TIMEOUT 5
                     53: 
                     54: /* we use it in a enum */
                     55: #ifdef TRUE
                     56: #undef TRUE
                     57: #endif
                     58: 
                     59: #ifdef FALSE
                     60: #undef FALSE
                     61: #endif
                     62: 
                     63: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>