pike.git / src / modules / HTTPLoop / accept_and_parse.h

version» Context lines:

pike.git/src/modules/HTTPLoop/accept_and_parse.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information.   */      /* #define AAP_DEBUG 1 */   #define CACHE_HTABLE_SIZE 40951      #if !defined(__NT__) && !defined(__WIN32__) - #ifdef HAVE_SIGNAL - # define HAVE_TIMEOUTS + #define HAVE_TIMEOUTS   #endif - #endif +       struct res   {    struct pike_string *protocol;       ptrdiff_t header_start;    ptrdiff_t method_len;    ptrdiff_t body_start;       char *url;
pike.git/src/modules/HTTPLoop/accept_and_parse.h:69:   {    struct pstring base;   #ifdef FS_STATS /* These can be wrong, but should give an indication.. */    unsigned int lookups;    unsigned int hits;    unsigned int notfile;    unsigned int noperm;   #endif   };    - #ifdef INT64 - #define LONG_LONG INT64 - #else - #define LONG_LONG long - #endif -  +    struct cache   { -  MUTEX_T mutex; +  PIKE_MUTEX_T mutex;    struct cache *next;    struct cache_entry *htable[CACHE_HTABLE_SIZE]; -  unsigned LONG_LONG size, entries, max_size; -  unsigned LONG_LONG hits, misses, stale; +  UINT64 size, entries, max_size; +  UINT64 hits, misses, stale;    size_t num_requests, sent_data, received_data;    int gone;   };      struct args   {    int fd;    struct args *next;    struct res res;    int timeout;
pike.git/src/modules/HTTPLoop/accept_and_parse.h:120:    PIKE_SOCKADDR from;    struct pstring method;    struct pike_string *protocol;   };      struct log   {    struct log *next;    struct log_entry *log_head;    struct log_entry *log_tail; -  MUTEX_T log_lock; +  PIKE_MUTEX_T log_lock;   };         struct log_object   {    INT_TYPE time;    INT_TYPE reply;    INT_TYPE sent_bytes;    INT_TYPE received_bytes;    struct pike_string *raw;
pike.git/src/modules/HTTPLoop/accept_and_parse.h:164:    }\    } while(0)      #define WRITE(X,Y,Z) aap_swrite(X,Y,Z)   #undef THIS   #define THIS ((struct c_request_object *)Pike_fp->current_storage)   #define LTHIS ((struct args *)Pike_fp->current_storage)      void aap_handle_connection(struct args *arg);   void free_args( struct args *arg ); - struct args *new_args( ); -  -  -  - #if 0 - # define aap_malloc debug_aap_malloc - # define aap_free debug_aap_free - #else - # define aap_malloc malloc - # define aap_free free - #endif -  - void *debug_aap_malloc( int nbytes ); - void debug_aap_free( void *what ); + struct args *new_args( void );