# PaCkAgE DaTaStReAm SUNWcherokee-devel 1 238 # end of header 07070100089f72000081a4000000000000000000000001442c5c3d000001d6000000660000000000000000000000000000001b00000000SUNWcherokee-devel/pkginfoPKG=SUNWcherokee-devel NAME=cherokee - Fast, flexible, lightweight web server - developer files DESC=cherokee - Fast, flexible, lightweight web server - developer files ARCH=i386 SUNW_PRODNAME=GNOME SUNW_PRODVERS=2.13.3 SUNW_PKGTYPE=usr SUNW_PKGVERS=1.0 CATEGORY=GNOME2,application,JDSosol VENDOR=Sun Microsystems, Inc. HOTLINE=Please contact your local service provider EMAIL= MAXINST=1000 VERSION=0.5.0,REV=10.0.3 BASEDIR=/usr CLASSES=none PSTAMP=solera20060330233125 07070100089f45000081a4000000000000000000000001442c5c3d0000092d000000660000000000000000000000000000001a00000000SUNWcherokee-devel/pkgmap: 1 238 1 i depend 266 22744 1143757885 1 d none include 0755 root bin 1 d none include/cherokee 0755 root root 1 f none include/cherokee/admin_client.h 0644 root root 4264 13394 1143757868 1 f none include/cherokee/buffer.h 0644 root root 5828 34329 1143757868 1 f none include/cherokee/cherokee-config.h 0644 root root 15036 5238 1143757876 1 f none include/cherokee/cherokee.h 0644 root root 1913 30118 1143757868 1 f none include/cherokee/common.h 0644 root root 2008 24936 1143757868 1 f none include/cherokee/connection.h 0644 root root 1543 61220 1143757868 1 f none include/cherokee/connection_info.h 0644 root root 2616 19105 1143757868 1 f none include/cherokee/downloader.h 0644 root root 3065 6638 1143757868 1 f none include/cherokee/encoder.h 0644 root root 2658 26379 1143757868 1 f none include/cherokee/fdpoll.h 0644 root root 2426 10305 1143757868 1 f none include/cherokee/handler.h 0644 root root 3737 38867 1143757868 1 f none include/cherokee/header.h 0644 root root 3844 2545 1143757868 1 f none include/cherokee/http.h 0644 root root 5454 35493 1143757868 1 f none include/cherokee/list.h 0644 root root 5041 28883 1143757868 1 f none include/cherokee/list_merge_sort.h 0644 root root 1070 21609 1143757868 1 f none include/cherokee/logger.h 0644 root root 3228 13413 1143757868 1 f none include/cherokee/macros.h 0644 root root 7777 38688 1143757868 1 f none include/cherokee/mime.h 0644 root root 2025 39499 1143757868 1 f none include/cherokee/mime_entry.h 0644 root root 1900 31313 1143757868 1 f none include/cherokee/module.h 0644 root root 2617 19586 1143757868 1 f none include/cherokee/module_loader.h 0644 root root 2246 59930 1143757868 1 f none include/cherokee/nonce.h 0644 root root 1807 22091 1143757868 1 f none include/cherokee/resolv_cache.h 0644 root root 1750 16490 1143757868 1 f none include/cherokee/server.h 0644 root root 2984 62458 1143757868 1 f none include/cherokee/table.h 0644 root root 2849 47019 1143757868 1 f none include/cherokee/typed_table.h 0644 root root 2720 39812 1143757868 1 f none include/cherokee/url.h 0644 root root 2063 38218 1143757868 1 f none include/cherokee/util.h 0644 root root 3347 9098 1143757868 1 d none lib 0755 root bin 1 d none lib/pkgconfig 0755 root other 1 f none lib/pkgconfig/cherokee.pc 0644 root root 283 26149 1143757876 1 i pkginfo 470 38225 1143757885 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!07070100089f72000081a4000000000000000000000001442c5c3d000001d6000000660000000000000000000000000000000800000000pkginfoPKG=SUNWcherokee-devel NAME=cherokee - Fast, flexible, lightweight web server - developer files DESC=cherokee - Fast, flexible, lightweight web server - developer files ARCH=i386 SUNW_PRODNAME=GNOME SUNW_PRODVERS=2.13.3 SUNW_PKGTYPE=usr SUNW_PKGVERS=1.0 CATEGORY=GNOME2,application,JDSosol VENDOR=Sun Microsystems, Inc. HOTLINE=Please contact your local service provider EMAIL= MAXINST=1000 VERSION=0.5.0,REV=10.0.3 BASEDIR=/usr CLASSES=none PSTAMP=solera20060330233125 07070100089f45000081a4000000000000000000000001442c5c3d0000092d000000660000000000000000000000000000000700000000pkgmap: 1 238 1 i depend 266 22744 1143757885 1 d none include 0755 root bin 1 d none include/cherokee 0755 root root 1 f none include/cherokee/admin_client.h 0644 root root 4264 13394 1143757868 1 f none include/cherokee/buffer.h 0644 root root 5828 34329 1143757868 1 f none include/cherokee/cherokee-config.h 0644 root root 15036 5238 1143757876 1 f none include/cherokee/cherokee.h 0644 root root 1913 30118 1143757868 1 f none include/cherokee/common.h 0644 root root 2008 24936 1143757868 1 f none include/cherokee/connection.h 0644 root root 1543 61220 1143757868 1 f none include/cherokee/connection_info.h 0644 root root 2616 19105 1143757868 1 f none include/cherokee/downloader.h 0644 root root 3065 6638 1143757868 1 f none include/cherokee/encoder.h 0644 root root 2658 26379 1143757868 1 f none include/cherokee/fdpoll.h 0644 root root 2426 10305 1143757868 1 f none include/cherokee/handler.h 0644 root root 3737 38867 1143757868 1 f none include/cherokee/header.h 0644 root root 3844 2545 1143757868 1 f none include/cherokee/http.h 0644 root root 5454 35493 1143757868 1 f none include/cherokee/list.h 0644 root root 5041 28883 1143757868 1 f none include/cherokee/list_merge_sort.h 0644 root root 1070 21609 1143757868 1 f none include/cherokee/logger.h 0644 root root 3228 13413 1143757868 1 f none include/cherokee/macros.h 0644 root root 7777 38688 1143757868 1 f none include/cherokee/mime.h 0644 root root 2025 39499 1143757868 1 f none include/cherokee/mime_entry.h 0644 root root 1900 31313 1143757868 1 f none include/cherokee/module.h 0644 root root 2617 19586 1143757868 1 f none include/cherokee/module_loader.h 0644 root root 2246 59930 1143757868 1 f none include/cherokee/nonce.h 0644 root root 1807 22091 1143757868 1 f none include/cherokee/resolv_cache.h 0644 root root 1750 16490 1143757868 1 f none include/cherokee/server.h 0644 root root 2984 62458 1143757868 1 f none include/cherokee/table.h 0644 root root 2849 47019 1143757868 1 f none include/cherokee/typed_table.h 0644 root root 2720 39812 1143757868 1 f none include/cherokee/url.h 0644 root root 2063 38218 1143757868 1 f none include/cherokee/util.h 0644 root root 3347 9098 1143757868 1 d none lib 0755 root bin 1 d none lib/pkgconfig 0755 root other 1 f none lib/pkgconfig/cherokee.pc 0644 root root 283 26149 1143757876 1 i pkginfo 470 38225 1143757885 07070100089f73000041ed000000000000000000000002442c5c3d00000000000000660000000000000000000000000000000800000000install07070100089f74000081a4000000000000000000000001442c5c3d0000010a000000660000000000000000000000000000000f00000000install/dependP SUNWcar Core Architecture, (Root) P SUNWkvm Core Architecture, (Kvm) P SUNWcsr Core Solaris, (Root) P SUNWcsu Core Solaris, (Usr) P SUNWcsd Core Solaris Devices P SUNWcsl Core Solaris, (Shared Libs) P SUNWcherokee cherokee - Fast, flexible, lightweight web server 07070100089f76000041ed000000000000000000000004442c5c3d00000000000000660000000000000000000000000000000600000000reloc07070100089f79000041ed000000000000000000000003442c5c3d00000000000000660000000000000000000000000000000e00000000reloc/include0707010008a1bb000041ed000000000000000000000002442c5c3d00000000000000660000000000000000000000000000001700000000reloc/include/cherokee0707010008a20b000081a4000000000000000000000001442c5c2c000010a8000000660000000000000000000000000000002600000000reloc/include/cherokee/admin_client.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_ADMIN_CLIENT_H #define CHEROKEE_ADMIN_CLIENT_H #include #include #include #include #include CHEROKEE_BEGIN_DECLS typedef struct cherokee_admin_client cherokee_admin_client_t; #define ADMIN_CLIENT(x) ((cherokee_admin_client_t *)(x)) #define RUN_CLIENT_BASE(fdpoll,func_string) { \ int re; \ cherokee_boolean_t exit; \ \ for (exit = false; !exit;) { \ re = cherokee_fdpoll_watch ( \ fdpoll, WATCH_SLEEP); \ if (re <= 0) continue; \ \ ret = func_string; \ switch (ret) { \ case ret_error: \ ret = ret_error; \ exit = true; \ break; \ case ret_ok: \ ret = ret_ok; \ exit = true; \ break; \ case ret_eagain: \ break; \ case ret_eof: \ exit = true; \ break; \ default: \ RET_UNKNOWN(ret); \ } \ } \ } #define RUN_CLIENT1(client,fdpoll,func,arg) \ cherokee_admin_client_reuse(client); \ RUN_CLIENT_BASE(fdpoll,func(client,arg)) #define RUN_CLIENT2(client,fdpoll,func,arg1,arg2) \ cherokee_admin_client_reuse(client); \ RUN_CLIENT_BASE(fdpoll,func(client,arg1,arg2)) #define RUN_CLIENT3(client,fdpoll,func,arg1,arg2,arg3) \ cherokee_admin_client_reuse(client); \ RUN_CLIENT_BASE(fdpoll,func(client,arg1,arg2,arg3)) ret_t cherokee_admin_client_new (cherokee_admin_client_t **admin); ret_t cherokee_admin_client_free (cherokee_admin_client_t *admin); ret_t cherokee_admin_client_prepare (cherokee_admin_client_t *admin, cherokee_fdpoll_t *poll, cherokee_buffer_t *url); ret_t cherokee_admin_client_connect (cherokee_admin_client_t *admin); ret_t cherokee_admin_client_reuse (cherokee_admin_client_t *admin); ret_t cherokee_admin_client_internal_step (cherokee_admin_client_t *admin); ret_t cherokee_admin_client_get_reply_code (cherokee_admin_client_t *admin, cherokee_http_t *code); /* Retrieve information methods */ ret_t cherokee_admin_client_ask_port (cherokee_admin_client_t *admin, cuint_t *port); ret_t cherokee_admin_client_ask_port_tls (cherokee_admin_client_t *admin, cuint_t *port); ret_t cherokee_admin_client_ask_rx (cherokee_admin_client_t *admin, cherokee_buffer_t *rx); ret_t cherokee_admin_client_ask_tx (cherokee_admin_client_t *admin, cherokee_buffer_t *tx); ret_t cherokee_admin_client_ask_connections (cherokee_admin_client_t *admin, list_t *conns); ret_t cherokee_admin_client_del_connection (cherokee_admin_client_t *admin, char *id); ret_t cherokee_admin_client_ask_thread_num (cherokee_admin_client_t *admin, cherokee_buffer_t *num); ret_t cherokee_admin_client_set_backup_mode (cherokee_admin_client_t *admin, cherokee_boolean_t active); CHEROKEE_END_DECLS #endif /* CHEROKEE_ADMIN_CLIENT_H */ 0707010008a20d000081a4000000000000000000000001442c5c2c000016c4000000660000000000000000000000000000002000000000reloc/include/cherokee/buffer.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_BUFFER_H #define CHEROKEE_BUFFER_H #include #include #include #include CHEROKEE_BEGIN_DECLS typedef enum { ver_full_html, /*!< Eg:
Cherokee web server 0.5.0 Port 80
*/ ver_port_html /*!< Eg:
Cherokee web server Port 80
*/ } cherokee_version_t; typedef struct { char *buf; /**< Memory chunk */ int size; /**< Total amount of memory */ int len; /**< Lenght of the string */ } cherokee_buffer_t; #define BUF(x) ((cherokee_buffer_t *)(x)) #define CHEROKEE_BUF_INIT {NULL, 0, 0} #define cherokee_buffer_is_empty(b) (BUF(b)->len == 0) #define cherokee_buffer_add_str(b,s) cherokee_buffer_add (b, s, sizeof(s)-1) #define cherokee_buffer_cmp_str(b,s) cherokee_buffer_cmp (b, s, sizeof(s)) #define cherokee_buffer_case_cmp_str(b,s) cherokee_buffer_case_cmp (b, s, sizeof(s)) ret_t cherokee_buffer_new (cherokee_buffer_t **buf); ret_t cherokee_buffer_free (cherokee_buffer_t *buf); ret_t cherokee_buffer_clean (cherokee_buffer_t *buf); ret_t cherokee_buffer_init (cherokee_buffer_t *buf); ret_t cherokee_buffer_mrproper (cherokee_buffer_t *buf); void cherokee_buffer_swap_buffers (cherokee_buffer_t *buf, cherokee_buffer_t *second); ret_t cherokee_buffer_add (cherokee_buffer_t *buf, char *txt, size_t size); ret_t cherokee_buffer_add_va (cherokee_buffer_t *buf, char *format, ...); ret_t cherokee_buffer_add_va_list (cherokee_buffer_t *buf, char *format, va_list args); ret_t cherokee_buffer_add_char_n (cherokee_buffer_t *buf, char c, int n); ret_t cherokee_buffer_add_buffer (cherokee_buffer_t *buf, cherokee_buffer_t *buf2); ret_t cherokee_buffer_prepend (cherokee_buffer_t *buf, char *txt, size_t size); ret_t cherokee_buffer_cmp (cherokee_buffer_t *buf, char *txt, cuint_t txt_len); ret_t cherokee_buffer_cmp_buf (cherokee_buffer_t *buf, cherokee_buffer_t *buf2); ret_t cherokee_buffer_case_cmp (cherokee_buffer_t *buf, char *txt, cuint_t txt_len); ret_t cherokee_buffer_case_cmp_buf (cherokee_buffer_t *buf, cherokee_buffer_t *buf2); ret_t cherokee_buffer_read_file (cherokee_buffer_t *buf, char *filename); ret_t cherokee_buffer_read_from_fd (cherokee_buffer_t *buf, int fd, size_t size, size_t *ret_size); ret_t cherokee_buffer_add_chunked (cherokee_buffer_t *buf, char *txt, size_t size); ret_t cherokee_buffer_add_buffer_chunked (cherokee_buffer_t *buf, cherokee_buffer_t *buf2); ret_t cherokee_buffer_move_to_begin (cherokee_buffer_t *buf, int pos); ret_t cherokee_buffer_drop_endding (cherokee_buffer_t *buf, int num_chars); ret_t cherokee_buffer_multiply (cherokee_buffer_t *buf, int num); ret_t cherokee_buffer_swap_chars (cherokee_buffer_t *buf, char a, char b); ret_t cherokee_buffer_remove_dups (cherokee_buffer_t *buf, char c); ret_t cherokee_buffer_remove_string (cherokee_buffer_t *buf, char *string, int string_len); ret_t cherokee_buffer_remove_chunk (cherokee_buffer_t *buf, int from, int len); ret_t cherokee_buffer_replace_string (cherokee_buffer_t *buf, char *subs, int subs_len, char *repl, int repl_len); ret_t cherokee_buffer_ensure_size (cherokee_buffer_t *buf, size_t size); int cherokee_buffer_is_endding (cherokee_buffer_t *buf, char c); char cherokee_buffer_end_char (cherokee_buffer_t *buf); crc_t cherokee_buffer_crc32 (cherokee_buffer_t *buf); ret_t cherokee_buffer_decode (cherokee_buffer_t *buf); ret_t cherokee_buffer_encode_base64 (cherokee_buffer_t *buf); ret_t cherokee_buffer_decode_base64 (cherokee_buffer_t *buf); ret_t cherokee_buffer_encode_md5 (cherokee_buffer_t *buf, cherokee_buffer_t *encoded); ret_t cherokee_buffer_encode_md5_digest (cherokee_buffer_t *buf); ret_t cherokee_buffer_encode_sha1 (cherokee_buffer_t *buf, cherokee_buffer_t *encoded); ret_t cherokee_buffer_encode_sha1_base64 (cherokee_buffer_t *buf); ret_t cherokee_buffer_encode_hex (cherokee_buffer_t *buf); ret_t cherokee_buffer_decode_hex (cherokee_buffer_t *buf); ret_t cherokee_buffer_escape_html (cherokee_buffer_t *buf, cherokee_buffer_t **maybe_new); ret_t cherokee_buffer_add_comma_marks (cherokee_buffer_t *buf); ret_t cherokee_buffer_add_version (cherokee_buffer_t *buf, int port, cherokee_version_t ver); ret_t cherokee_buffer_print_debug (cherokee_buffer_t *buf, int length); CHEROKEE_END_DECLS #endif /* CHEROKEE_BUFFER_H */ 0707010008a20e000081a4000000000000000000000001442c5c3400003abc000000660000000000000000000000000000002900000000reloc/include/cherokee/cherokee-config.h/* config.h. Generated by configure. */ /* config.h.in. Generated from configure.in by autoheader. */ /* Define to 1 if the `closedir' function returns void instead of `int'. */ /* #undef CLOSEDIR_VOID */ /* Whether the FreeBSD sendfile() API is available */ /* #undef FREEBSD_SENDFILE_API */ /* Define to 1 if you have the header file. */ #define HAVE_ARPA_INET_H 1 /* Define to 1 if you have the `bcopy' function. */ #define HAVE_BCOPY 1 /* Define if setsockopt(SO_RCVTIMEO) is broken */ #define HAVE_BROKEN_SO_RCVTIMEO 1 /* Have crypt function */ #define HAVE_CRYPT 1 /* Define to 1 if you have the header file. */ #define HAVE_CRYPT_H 1 /* Have crypt_r function */ /* #undef HAVE_CRYPT_R */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ #define HAVE_DOPRNT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_ENDIAN_H */ /* Have epoll */ /* #undef HAVE_EPOLL */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ERROR_H */ /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define if getaddrinfo exists and works well enough for APR */ #define HAVE_GETADDRINFO 1 /* Define to 1 if you have the `getdtablesize' function. */ #define HAVE_GETDTABLESIZE 1 /* Define to 1 if you have the `gethostbyname' function. */ #define HAVE_GETHOSTBYNAME 1 /* Define to 1 if you have the `gethostbyname_r' function. */ #define HAVE_GETHOSTBYNAME_R 1 /* Define if getnameinfo exists */ #define HAVE_GETNAMEINFO 1 /* Define to 1 if you have the header file. */ #define HAVE_GETOPT_H 1 /* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 /* Define to 1 if you have the `getrlimit' function. */ #define HAVE_GETRLIMIT 1 /* Define to 1 if you have the `gmtime' function. */ #define HAVE_GMTIME 1 /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Have libgnutls */ #define HAVE_GNUTLS 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `inet_addr' function. */ #define HAVE_INET_ADDR 1 /* Define to 1 if you have the `inet_ntop' function. */ #define HAVE_INET_NTOP 1 /* Define to 1 if you have the `inet_pton' function. */ #define HAVE_INET_PTON 1 /* Compile supports inline */ #define HAVE_INLINE 1 /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Set to 1 if you have the global variable timezone */ #define HAVE_INT_TIMEZONE /* Define if you have IPv6 support. */ #define HAVE_IPV6 1 /* Have kqueue */ /* #undef HAVE_KQUEUE */ /* Define to 1 if you have the `gen' library (-lgen). */ #define HAVE_LIBGEN 1 /* Define to 1 if you have the `inet' library (-linet). */ /* #undef HAVE_LIBINET */ /* Define to 1 if you have the `net' library (-lnet). */ /* #undef HAVE_LIBNET */ /* Define to 1 if you have the `nsl' library (-lnsl). */ #define HAVE_LIBNSL 1 /* Define to 1 if you have the `nsl_s' library (-lnsl_s). */ /* #undef HAVE_LIBNSL_S */ /* Define to 1 if you have the `sendfile' library (-lsendfile). */ #define HAVE_LIBSENDFILE 1 /* Define to 1 if you have the `socket' library (-lsocket). */ #define HAVE_LIBSOCKET 1 /* Define to 1 if you have the `ws2_32' library (-lws2_32). */ /* #undef HAVE_LIBWS2_32 */ /* Define to 1 if you have the `wsock32' library (-lwsock32). */ /* #undef HAVE_LIBWSOCK32 */ /* Define to 1 if you have the `localtime' function. */ #define HAVE_LOCALTIME 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Whether the host supports long long's */ #define HAVE_LONGLONG 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_MACHINE_ENDIAN_H */ /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #define HAVE_MALLOC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have a working `mmap' system call. */ #define HAVE_MMAP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_NETDB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_NETINET_IN_H 1 /* Define to 1 if you have the header file. */ #define HAVE_NETINET_TCP_H 1 /* Whether off64_t is available */ /* #undef HAVE_OFF64_T */ /* whether you have old-style readdir_r */ /* #undef HAVE_OLD_READDIR_R */ /* Have OpenSSL library */ /* #undef HAVE_OPENSSL */ /* Have poll */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Have event ports */ #define HAVE_PORT 1 /* whether you have POSIX readdir_r */ #define HAVE_POSIX_READDIR_R 1 /* Define if you have POSIX threads libraries and header files. */ #define HAVE_PTHREAD 1 /* Define to 1 if you have the header file. */ #define HAVE_PTHREAD_H 1 /* Define if your pthread library includes pthread_rwlock_t */ #define HAVE_PTHREAD_RWLOCK_T 1 /* Pthread support pthread_attr_setschedpolicy */ #define HAVE_PTHREAD_SETSCHEDPOLICY 1 /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise. */ #define HAVE_REALLOC 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_RESOURCE_H */ /* Have RTDL_GLOBAL */ #define HAVE_RTLDGLOBAL /* Have RTDL_LOCAL */ #define HAVE_RTLDLOCAL /* Have RTDL_NEXT */ #define HAVE_RTLDNEXT /* Have RTDL_NOW */ #define HAVE_RTLDNOW /* Define to 1 if you have the header file. */ #define HAVE_SECURITY_PAM_APPL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SECURITY__PAM_MACROS_H */ /* Have select */ #define HAVE_SELECT 1 /* Whether sendfile() is available */ /* #undef HAVE_SENDFILE */ /* Whether sendfile64() is available */ /* #undef HAVE_SENDFILE64 */ /* Whether sendfilev() is available */ #define HAVE_SENDFILEV 1 /* Whether sendfilev64() is available */ #define HAVE_SENDFILEV64 1 /* broken sendfile */ /* #undef HAVE_SENDFILE_BROKEN */ /* HAVE_SOCKADDR_IN6 */ #define HAVE_SOCKADDR_IN6 1 /* HAVE_SOCKADDR_STORAGE */ #define HAVE_SOCKADDR_STORAGE 1 /* HAVE_SOCKADDR_UN */ #define HAVE_SOCKADDR_UN 1 /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strcasestr' function. */ /* #undef HAVE_STRCASESTR */ /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strlcat' function. */ #define HAVE_STRLCAT 1 /* Define to 1 if you have the `strsep' function. */ /* #undef HAVE_STRSEP */ /* Define to 1 if `st_rdev' is member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_RDEV 1 /* Define to 1 if `tm_zone' is member of `struct tm'. */ /* #undef HAVE_STRUCT_TM_TM_ZONE */ /* Define to 1 if your `struct stat' has `st_rdev'. Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV' instead. */ #define HAVE_ST_RDEV 1 /* Define to 1 if you have the `syslog' function. */ #define HAVE_SYSLOG 1 /* Define to 1 if you have the header file. */ #define HAVE_SYSLOG_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_ENDIAN_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_FILIO_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ISA_DEFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_MMAN_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_RESOURCE_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SOCKET_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_UIO_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_UN_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VARARGS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* TCP_CORK was found and will be used */ #define HAVE_TCP_CORK 1 /* Have TLS support */ #define HAVE_TLS 1 /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use `HAVE_STRUCT_TM_TM_ZONE' instead. */ /* #undef HAVE_TM_ZONE */ /* Define to 1 if you don't have `tm_zone' but do have the external array `tzname'. */ #define HAVE_TZNAME 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* va_list works copying an array */ /* #undef HAVE_VA_LIST_AS_ARRAY */ /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the `vsyslog' function. */ #define HAVE_VSYSLOG 1 /* Have Win32 select */ /* #undef HAVE_WIN32_SELECT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINSOCK2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINSOCK_H */ /* Whether the hpux sendfile() API is available */ /* #undef HPUX_SENDFILE_API */ /* Whether (linux) sendfile() is broken */ /* #undef LINUX_BROKEN_SENDFILE_API */ /* Whether linux sendfile() API is available */ /* #undef LINUX_SENDFILE_API */ /* OS type */ #define OS_TYPE "OpenSolaris" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "http://bugs.0x50.org" /* Version string */ #define PACKAGE_MAJOR_VERSION "0" /* Version string */ #define PACKAGE_MICRO_VERSION "0" /* Version string */ #define PACKAGE_MINOR_VERSION "5" /* Define to the full name of this package. */ #define PACKAGE_NAME "cherokee" /* Version string */ #define PACKAGE_PATCH_VERSION "" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "cherokee 0.5.0" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "cherokee" /* Define to the version of this package. */ #define PACKAGE_VERSION "0.5.0" /* Define to the necessary symbol if this constant uses a non-standard name on your system. */ /* #undef PTHREAD_CREATE_JOINABLE */ /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void /* setenv function is thread safe */ #define SETENV_IS_THREADSAFE 1 /* The size of a `off_t', as computed by sizeof. */ #define SIZEOF_OFF_T 8 /* The size of a `unsigned int', as computed by sizeof. */ #define SIZEOF_UNSIGNED_INT 4 /* The size of a `unsigned long', as computed by sizeof. */ #define SIZEOF_UNSIGNED_LONG 4 /* The size of a `unsigned long long', as computed by sizeof. */ #define SIZEOF_UNSIGNED_LONG_LONG 8 /* It is Solaris */ #define SOLARIS 1 /* Whether the solaris sendfile() API is available */ #define SOLARIS_SENDFILE_API 1 /* Dynamic loading libraries extension */ #define SO_SUFFIX "so" /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* Define to 1 if your declares `struct tm'. */ /* #undef TM_IN_SYS_TIME */ /* Trace facility */ /* #undef TRACE_ENABLED */ /* Whether to include sendfile() support */ #define WITH_SENDFILE 1 /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ /* #undef WORDS_BIGENDIAN */ /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #define YYTEXT_POINTER 1 /* Number of bits in a file offset, on hosts where this is settable. */ #define _FILE_OFFSET_BITS 64 /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to appropriate substitue if compiler doesnt have __func__ */ /* #undef __func__ */ /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus /* #undef inline */ #endif /* Define to `unsigned' if does not define. */ /* #undef ino_t */ /* Define to `off_t' if does not define. */ #define loff_t off_t /* Define to rpl_malloc if the replacement function should be used. */ /* #undef malloc */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long' if does not define. */ /* #undef off_t */ /* Define to `loff_t' if does not define. */ /* #undef offset_t */ /* Define to `int' if does not define. */ /* #undef pid_t */ /* Define to rpl_realloc if the replacement function should be used. */ /* #undef realloc */ /* Define to `unsigned' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `unsigned short' if does not define. */ /* #undef wchar_t */ /* Give us an unsigned 32-bit data type. */ #if SIZEOF_UNSIGNED_LONG==4 #define UWORD32 unsigned long #elif SIZEOF_UNSIGNED_INT==4 #define UWORD32 unsigned int #else #error I do not know what to use for a UWORD32. #endif 0707010008a20f000081a4000000000000000000000001442c5c2c00000779000000660000000000000000000000000000002200000000reloc/include/cherokee/cherokee.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef CHEROKEE_H #define CHEROKEE_H #define CHEROKEE_INSIDE_CHEROKEE_H 1 /* Base library */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* Server library */ #include #include #include #include #include #include #include #include /* Client library */ #include /* Config library */ #include #include #undef CHEROKEE_INSIDE_CHEROKEE_H #endif /* CHEROKEE_H */ 0707010008a210000081a4000000000000000000000001442c5c2c000007d8000000660000000000000000000000000000002000000000reloc/include/cherokee/common.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_COMMON_H #define CHEROKEE_COMMON_H #include CHEROKEE_BEGIN_DECLS typedef enum { false = 0, true = 1 } cherokee_boolean_t; typedef enum { ret_no_sys = -4, ret_nomem = -3, ret_deny = -2, ret_error = -1, ret_ok = 0, ret_eof = 1, ret_eof_have_data = 2, ret_not_found = 3, ret_file_not_found = 4, ret_eagain = 5, ret_ok_and_sent = 6 } ret_t; typedef unsigned int crc_t; typedef int cint_t; typedef char cchar_t; typedef short cshort_t; typedef long clong_t; typedef long long cllong_t; typedef unsigned int cuint_t; typedef unsigned char cuchar_t; typedef unsigned short cushort_t; typedef unsigned long culong_t; typedef unsigned long long cullong_t; CHEROKEE_END_DECLS #endif /* CHEROKEE_COMMON_H */ 0707010008a211000081a4000000000000000000000001442c5c2c00000607000000660000000000000000000000000000002400000000reloc/include/cherokee/connection.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_CONNECTION_H #define CHEROKEE_CONNECTION_H #include #include CHEROKEE_BEGIN_DECLS typedef struct cherokee_connection cherokee_connection_t; #define CONN(c) ((cherokee_connection_t *)(c)) /* Public methods */ ret_t cherokee_connection_set_cork (cherokee_connection_t *cnt, int enable); ret_t cherokee_connection_parse_args (cherokee_connection_t *cnt); CHEROKEE_END_DECLS #endif /* CHEROKEE_CONNECTION_H */ 0707010008a213000081a4000000000000000000000001442c5c2c00000a38000000660000000000000000000000000000002900000000reloc/include/cherokee/connection_info.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_CONNECTION_INFO_H #define CHEROKEE_CONNECTION_INFO_H #include #include #include #include #include #include CHEROKEE_BEGIN_DECLS typedef struct { struct list_head list_entry; cherokee_buffer_t id; /* ID */ cherokee_buffer_t phase; /* Current task */ cherokee_buffer_t request; /* Request string */ cherokee_buffer_t rx; /* Data received */ cherokee_buffer_t tx; /* Data transmited */ cherokee_buffer_t total_size; /* Size of data to be sent */ cherokee_buffer_t ip; /* Remote IP */ cherokee_buffer_t percent; /* tx * 100 / total_size */ cherokee_buffer_t handler; /* Connection handler */ cherokee_buffer_t icon; /* Icon filename */ } cherokee_connection_info_t; #define CONN_INFO(i) ((cherokee_connection_info_t *)(i)) ret_t cherokee_connection_info_new (cherokee_connection_info_t **info); ret_t cherokee_connection_info_free (cherokee_connection_info_t *info); ret_t cherokee_connection_info_fill_up (cherokee_connection_info_t *info, cherokee_connection_t *conn); ret_t cherokee_connection_info_list_thread (list_t *infos_list, void *thread, cherokee_handler_t *self); ret_t cherokee_connection_info_list_server (list_t *infos_list, cherokee_server_t *server, cherokee_handler_t *self); CHEROKEE_END_DECLS #endif /* CHEROKEE_CONNECTION_INFO_H */ 0707010008a216000081a4000000000000000000000001442c5c2c00000bf9000000660000000000000000000000000000002400000000reloc/include/cherokee/downloader.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_DOWNLOADER_H #define CHEROKEE_DOWNLOADER_H #include #include #include #include CHEROKEE_BEGIN_DECLS typedef enum { downloader_event_init, downloader_event_has_headers, downloader_event_read_body, downloader_event_finish, downloader_event_NUMBER } cherokee_downloader_event_t; typedef ret_t (* cherokee_downloader_init_t) (void *downloader, void *param); typedef ret_t (* cherokee_downloader_has_headers_t) (void *downloader, void *param); typedef ret_t (* cherokee_downloader_read_body_t) (void *downloader, void *param); typedef ret_t (* cherokee_downloader_finish_t) (void *downloader, void *param); typedef struct cherokee_downloader cherokee_downloader_t; #define DOWNLOADER(d) ((cherokee_downloader_t *)(d)) ret_t cherokee_downloader_new (cherokee_downloader_t **downloader); ret_t cherokee_downloader_free (cherokee_downloader_t *downloader); ret_t cherokee_downloader_set_fdpoll (cherokee_downloader_t *downloader, cherokee_fdpoll_t *fdpoll); ret_t cherokee_downloader_set_url (cherokee_downloader_t *downloader, cherokee_buffer_t *url); ret_t cherokee_downloader_set_keepalive (cherokee_downloader_t *downloader, cherokee_boolean_t active); ret_t cherokee_downloader_get_reply_code (cherokee_downloader_t *downloader, cherokee_http_t *code); ret_t cherokee_downloader_post_set (cherokee_downloader_t *downloader, cherokee_buffer_t *post); ret_t cherokee_downloader_post_reset (cherokee_downloader_t *downloader); ret_t cherokee_downloader_step (cherokee_downloader_t *downloader); ret_t cherokee_downloader_reuse (cherokee_downloader_t *downloader); ret_t cherokee_downloader_connect (cherokee_downloader_t *downloader); ret_t cherokee_downloader_connect_event (cherokee_downloader_t *downloader, cherokee_downloader_event_t event, void *func, void *param); CHEROKEE_END_DECLS #endif /* CHEROKEE_DOWNLOADER_H */ 0707010008a217000081a4000000000000000000000001442c5c2c00000a62000000660000000000000000000000000000002100000000reloc/include/cherokee/encoder.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_ENCODER_H #define CHEROKEE_ENCODER_H #include #include #include CHEROKEE_BEGIN_DECLS /* Callback function prototipes */ typedef ret_t (* encoder_func_new_t) (void **encoder); typedef ret_t (* encoder_func_free_t) (void *encoder); typedef ret_t (* encoder_func_add_headers_t) (void *encoder, cherokee_buffer_t *buf); typedef ret_t (* encoder_func_init_t) (void *encoder); typedef ret_t (* encoder_func_encode_t) (void *encoder, cherokee_buffer_t *in, cherokee_buffer_t *out); typedef ret_t (* encoder_func_flush_t) (void *encoder, cherokee_buffer_t *in, cherokee_buffer_t *out); typedef struct { cherokee_module_t module; /* Pure virtual methods */ encoder_func_add_headers_t add_headers; encoder_func_encode_t encode; encoder_func_flush_t flush; /* Properties */ void *conn; } cherokee_encoder_t; #define ENCODER(x) ((cherokee_encoder_t *)(x)) #define ENCODER_CONN(x) (CONN(ENCODER(x)->conn)) ret_t cherokee_encoder_init_base (cherokee_encoder_t *enc); ret_t cherokee_encoder_free (cherokee_encoder_t *enc); ret_t cherokee_encoder_add_headers (cherokee_encoder_t *enc, cherokee_buffer_t *buf); ret_t cherokee_encoder_init (cherokee_encoder_t *enc, void *conn); ret_t cherokee_encoder_encode (cherokee_encoder_t *enc, cherokee_buffer_t *in, cherokee_buffer_t *out); ret_t cherokee_encoder_flush (cherokee_encoder_t *enc, cherokee_buffer_t *in, cherokee_buffer_t *out); CHEROKEE_END_DECLS #endif /* CHEROKEE_ENCODER_H */ 0707010008a219000081a4000000000000000000000001442c5c2c0000097a000000660000000000000000000000000000002000000000reloc/include/cherokee/fdpoll.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_FDPOLL_H #define CHEROKEE_FDPOLL_H #include CHEROKEE_BEGIN_DECLS typedef enum { cherokee_poll_epoll, cherokee_poll_kqueue, cherokee_poll_port, cherokee_poll_poll, cherokee_poll_select, cherokee_poll_win32, cherokee_poll_UNSET } cherokee_poll_type_t; #define FDPOLL(x) ((cherokee_fdpoll_t *)(x)) typedef struct cherokee_fdpoll cherokee_fdpoll_t; ret_t cherokee_fdpoll_new (cherokee_fdpoll_t **fdp, cherokee_poll_type_t type, int sys_limit, int limit); ret_t cherokee_fdpoll_best_new (cherokee_fdpoll_t **fdp, int sys_limit, int limit); ret_t cherokee_fdpoll_free (cherokee_fdpoll_t *fdp); ret_t cherokee_fdpoll_get_method (cherokee_fdpoll_t *fdp, cherokee_poll_type_t *type); ret_t cherokee_fdpoll_get_method_str (cherokee_fdpoll_t *fdp, char **name); ret_t cherokee_fdpoll_add (cherokee_fdpoll_t *fdp, int fd, int rw); ret_t cherokee_fdpoll_del (cherokee_fdpoll_t *fdp, int fd); ret_t cherokee_fdpoll_reset (cherokee_fdpoll_t *fdp, int fd); void cherokee_fdpoll_set_mode (cherokee_fdpoll_t *fdp, int fd, int rw); int cherokee_fdpoll_check (cherokee_fdpoll_t *fdp, int fd, int rw); int cherokee_fdpoll_watch (cherokee_fdpoll_t *fdp, int timeout_msecs); ret_t cherokee_fdpoll_is_full (cherokee_fdpoll_t *fdp); CHEROKEE_END_DECLS #endif /* CHEROKEE_FDPOLL_H */ 0707010008a21a000081a4000000000000000000000001442c5c2c00000e99000000660000000000000000000000000000002100000000reloc/include/cherokee/handler.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_HANDLER_H #define CHEROKEE_HANDLER_H #include #include #include #include CHEROKEE_BEGIN_DECLS typedef enum { hstat_unset, hstat_sending, hstat_forbidden, hstat_file_not_found, hstat_error } cherokee_handler_status_t; typedef enum { hsupport_nothing = 0, hsupport_length = 1, /* Knows the length. Eg: for keep-alive */ hsupport_maybe_length = 1 << 1, /* It might include content-length */ hsupport_range = 1 << 2, /* Can handle "Range: bytes=" requests */ hsupport_error = 1 << 3, /* It is an error handler */ } cherokee_handler_support_t; /* Callback function definitions */ typedef ret_t (* handler_func_new_t) (void **handler, void *cnt, cherokee_table_t *properties); typedef ret_t (* handler_func_init_t) (void *handler); typedef ret_t (* handler_func_free_t) (void *handler); typedef ret_t (* handler_func_step_t) (void *handler, cherokee_buffer_t *buffer); typedef ret_t (* handler_func_add_headers_t) (void *handler, cherokee_buffer_t *buffer); typedef struct { cherokee_module_t module; /* Pure virtual methods */ handler_func_step_t step; handler_func_add_headers_t add_headers; /* Properties */ void *connection; cherokee_handler_support_t support; } cherokee_handler_t; #define HANDLER(x) ((cherokee_handler_t *)(x)) #define HANDLER_CONN(h) (CONN(HANDLER(h)->connection)) #define HANDLER_SRV(h) (CONN_SRV(HANDLER_CONN(h))) #define HANDLER_THREAD(h) (CONN_THREAD(HANDLER_CONN(h))) #define HANDLER_SUPPORT_RANGE(h) (HANDLER(h)->support & hsupport_range) #define HANDLER_SUPPORT_LENGTH(h) (HANDLER(h)->support & hsupport_length) #define HANDLER_SUPPORT_MAYBE_LENGTH(h) (HANDLER(h)->support & hsupport_maybe_length) #define HANDLER_SUPPORT_COMPLEX_HEADERS(h) (HANDLER(h)->support & hsupport_complex_headers) #define HANDLER_SUPPORT_ERROR(h) (HANDLER(h)->support & hsupport_error) ret_t cherokee_handler_init_base (cherokee_handler_t *hdl, void *conn); ret_t cherokee_handler_free_base (cherokee_handler_t *hdl); ret_t cherokee_handler_init (cherokee_handler_t *hdl); ret_t cherokee_handler_free (cherokee_handler_t *hdl); ret_t cherokee_handler_step (cherokee_handler_t *hdl, cherokee_buffer_t *buffer); ret_t cherokee_handler_add_headers (cherokee_handler_t *hdl, cherokee_buffer_t *buffer); CHEROKEE_END_DECLS #endif /* CHEROKEE_HANDLER_H */ 0707010008a21b000081a4000000000000000000000001442c5c2c00000f04000000660000000000000000000000000000002000000000reloc/include/cherokee/header.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_HEADER_PROTECTED_H #define CHEROKEE_HEADER_PROTECTED_H #include "buffer.h" #include "table.h" #include "http.h" CHEROKEE_BEGIN_DECLS /* NOTE: * Keep it sync with known_headers_names of header.c */ typedef enum { header_accept, header_accept_charset, header_accept_encoding, header_accept_language, header_authorization, header_connection, header_content_length, header_cookie, header_host, header_if_modified_since, header_if_none_match, header_if_range, header_keepalive, header_location, header_range, header_referer, header_upgrade, header_user_agent, HEADER_LENGTH } cherokee_common_header_t; typedef enum { header_type_request, header_type_response, header_type_basic } cherokee_type_header_t; typedef struct cherokee_header cherokee_header_t; #define HDR(h) ((cherokee_header_t *)(h)) typedef ret_t (* cherokee_header_foreach_func_t) (cherokee_buffer_t *header, cherokee_buffer_t *content, void *data); ret_t cherokee_header_new (cherokee_header_t **hdr); ret_t cherokee_header_free (cherokee_header_t *hdr); ret_t cherokee_header_init (cherokee_header_t *hdr); ret_t cherokee_header_mrproper (cherokee_header_t *hdr); ret_t cherokee_header_clean (cherokee_header_t *hdr); ret_t cherokee_header_parse (cherokee_header_t *hdr, cherokee_buffer_t *buffer, cherokee_type_header_t type); ret_t cherokee_header_has_header (cherokee_header_t *hdr, cherokee_buffer_t *buffer, int tail_len); ret_t cherokee_header_get_length (cherokee_header_t *hdr, cuint_t *len); ret_t cherokee_header_get_number (cherokee_header_t *hdr, cuint_t *num); ret_t cherokee_header_copy_request (cherokee_header_t *hdr, cherokee_buffer_t *request); ret_t cherokee_header_copy_request_w_args (cherokee_header_t *hdr, cherokee_buffer_t *request); ret_t cherokee_header_get_request_w_args (cherokee_header_t *hdr, char **req, int *req_len); ret_t cherokee_header_get_arguments (cherokee_header_t *hdr, cherokee_buffer_t *qstring, cherokee_table_t *arguments); ret_t cherokee_header_has_known (cherokee_header_t *hdr, cherokee_common_header_t header); ret_t cherokee_header_get_known (cherokee_header_t *hdr, cherokee_common_header_t header, char **info, cuint_t *info_len); ret_t cherokee_header_get_unknown (cherokee_header_t *hdr, char *name, int name_len, char **header, cuint_t *header_len); ret_t cherokee_header_copy_known (cherokee_header_t *hdr, cherokee_common_header_t header, cherokee_buffer_t *buf); ret_t cherokee_header_copy_unknown (cherokee_header_t *hdr, char *name, int name_len, cherokee_buffer_t *buf); CHEROKEE_END_DECLS #endif /* CHEROKEE_HEADER_PROTECTED_H */ 0707010008a21c000081a4000000000000000000000001442c5c2c0000154e000000660000000000000000000000000000001e00000000reloc/include/cherokee/http.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_HTTP_H #define CHEROKEE_HTTP_H #include #include CHEROKEE_BEGIN_DECLS typedef enum { http_version_09, http_version_10, http_version_11, http_version_unknown } cherokee_http_version_t; typedef enum { http_unknown = 0, http_all_methods = 0xFFFFFFFF, http_get = 1, http_post = 1 << 1, http_head = 1 << 2, http_put = 1 << 3, http_options = 1 << 4, http_delete = 1 << 5, http_trace = 1 << 6, http_connect = 1 << 7, http_copy = 1 << 8, http_lock = 1 << 9, http_mkcol = 1 << 10, http_move = 1 << 11, http_notify = 1 << 12, http_poll = 1 << 13, http_propfind = 1 << 14, http_proppatch = 1 << 15, http_search = 1 << 16, http_subscribe = 1 << 17, http_unlock = 1 << 18, http_unsubscribe = 1 << 19 } cherokee_http_method_t; typedef enum { http_auth_nothing = 0, http_auth_basic = 1, http_auth_digest = 1 << 1 } cherokee_http_auth_t; typedef enum { http_upgrade_nothing, http_upgrade_http11, http_upgrade_tls10 } cherokee_http_upgrade_t; typedef enum { http_unset = 0, http_continue = 100, http_switching_protocols = 101, http_ok = 200, http_accepted = 202, http_partial_content = 206, http_moved_permanently = 301, http_moved_temporarily = 302, http_not_modified = 304, http_bad_request = 400, http_unauthorized = 401, http_access_denied = 403, http_not_found = 404, http_method_not_allowed = 405, http_length_required = 411, http_request_uri_too_long = 414, http_range_not_satisfiable = 416, http_upgrade_required = 426, http_internal_error = 500, http_service_unavailable = 503 } cherokee_http_t; /* 0 1 2 3 4 5 6 7 01234567890123456789012345678901234567890123456789012345678901234567890 */ #define http_continue_string "100 Continue" #define http_switching_protocols_string "101 Switching Protocols" #define http_ok_string "200 OK" #define http_accepted_string "202 Accepted" #define http_partial_content_string "206 Partial Content" #define http_moved_permanently_string "301 Moved Permanently" #define http_moved_temporarily_string "302 Moved Temporarily" #define http_not_modified_string "304 Not Modified" #define http_bad_request_string "400 Bad Request" #define http_unauthorized_string "401 Authorization Required" #define http_access_denied_string "403 Forbidden" #define http_not_found_string "404 Not Found" #define http_method_not_allowed_string "405 Method Not Allowed" #define http_length_required_string "411 Length Required" #define http_request_uri_too_long_string "414 Request-URI too long" #define http_range_not_satisfiable_string "416 Requested range not satisfiable" #define http_upgrade_required_string "426 Upgrade Required" #define http_internal_error_string "500 Internal Server Error" #define http_service_unavailable_string "503 Service Unavailable" #define http_type_200_max 206 #define http_type_300_max 307 #define http_type_400_max 417 #define http_type_500_max 505 #define http_type_200(c) ((c >= 200) && (c <= http_type_200_max)) #define http_type_300(c) ((c >= 300) && (c <= http_type_300_max)) #define http_type_400(c) ((c >= 400) && (c <= http_type_400_max)) #define http_type_500(c) ((c >= 500) && (c <= http_type_500_max)) #define http_method_with_body(m) ((m != http_head) && (m != http_options)) #define http_method_with_input(m) ((m == http_post) || \ (m == http_mkcol) || \ (m == http_search) || \ (m == http_propfind) || \ (m == http_proppatch)) ret_t cherokee_http_method_to_string (cherokee_http_method_t method, const char **str, cuint_t *str_len); ret_t cherokee_http_version_to_string (cherokee_http_version_t version, const char **str, cuint_t *str_len); ret_t cherokee_http_code_to_string (cherokee_http_t code, const char **str); ret_t cherokee_http_code_copy (cherokee_http_t code, cherokee_buffer_t *buf); CHEROKEE_END_DECLS #endif /* CHEROKEE_HTTP_H */ 0707010008a21d000081a4000000000000000000000001442c5c2c000013b1000000660000000000000000000000000000001e00000000reloc/include/cherokee/list.h/* * Some little changes: * Alvaro Lopez Ortega */ /* * linux/include/linux/list.h * * Copyright (C) 1994-1998 Linus Torvalds & authors */ #ifndef _LINUX_LIST_H #define _LINUX_LIST_H /* * Simple doubly linked list implementation. * * Some of the internal functions ("__xxx") are useful when * manipulating whole lists rather than single entries, as * sometimes we already know the next/prev entries and we can * generate better code by using them directly rather than * using the generic single-entry routines. */ struct list_head { struct list_head *next, *prev; }; typedef struct list_head list_t; #define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD(name) \ struct list_head name = LIST_HEAD_INIT(name) #define INIT_LIST_HEAD(ptr) do { \ (ptr)->next = (ptr); (ptr)->prev = (ptr); \ } while (0) /* * Insert a new entry between two known consecutive entries. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static inline void __list_add(struct list_head * new_entry, struct list_head * prev, struct list_head * next) { next->prev = new_entry; new_entry->next = next; new_entry->prev = prev; prev->next = new_entry; } /** * list_add - add a new entry * @new: new entry to be added * @head: list head to add it after * * Insert a new entry after the specified head. * This is good for implementing stacks. */ static inline void list_add(struct list_head *new_entry, struct list_head *head) { __list_add(new_entry, head, head->next); } /** * list_add_tail - add a new entry * @new: new entry to be added * @head: list head to add it before * * Insert a new entry before the specified head. * This is useful for implementing queues. */ static inline void list_add_tail(struct list_head *new_entry, struct list_head *head) { __list_add(new_entry, head->prev, head); } /* * Delete a list entry by making the prev/next entries * point to each other. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static inline void __list_del(struct list_head * prev, struct list_head * next) { next->prev = prev; prev->next = next; } /** * list_del - deletes entry from list. * @entry: the element to delete from the list. * Note: list_empty on entry does not return true after this, the entry is in an undefined state. */ static inline void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); } /** * list_del_init - deletes entry from list and reinitialize it. * @entry: the element to delete from the list. */ static inline void list_del_init(struct list_head *entry) { __list_del(entry->prev, entry->next); INIT_LIST_HEAD(entry); } /** * list_empty - tests whether a list is empty * @head: the list to test. */ static inline int list_empty(struct list_head *head) { return head->next == head; } /** * list_splice - join two lists * @list: the new list to add. * @head: the place to add it in the first list. */ static inline void list_splice(struct list_head *list, struct list_head *head) { struct list_head *first = list->next; if (first != list) { struct list_head *last = list->prev; struct list_head *at = head->next; first->prev = head; head->next = first; last->next = at; at->prev = last; } } /** * list_entry - get the struct for this entry * @ptr: the &struct list_head pointer. * @type: the type of the struct this is embedded in. * @member: the name of the list_struct within the struct. */ #define list_entry(ptr, type, member) \ ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) /** * list_for_each - iterate over a list * @pos: the &struct list_head to use as a loop counter. * @head: the head for your list. */ #define list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); \ pos = pos->next) /** * list_for_each_safe - iterate over a list safe against removal of list entry * @pos: the &struct list_head to use as a loop counter. * @n: another &struct list_head to use as temporary storage * @head: the head for your list. */ #define list_for_each_safe(pos, n, head) \ for (pos = (head)->next, n = pos->next; pos != (head); \ pos = n, n = pos->next) /** * list_for_each_prev - iterate over a list in reverse order * @pos: the &struct list_head to use as a loop counter. * @head: the head for your list. */ #define list_for_each_prev(pos, head) \ for (pos = (head)->prev; pos != (head); \ pos = pos->prev) static inline void list_reparent (struct list_head *list, struct list_head *new_entry) { if (list_empty(list)) return; new_entry->next = list->next; new_entry->prev = list->prev; new_entry->prev->next = new_entry; new_entry->next->prev = new_entry; } static inline int list_len (struct list_head *head) { int n = 0; list_t *i; list_for_each (i, head) { n++; } return n; } #endif /* _LINUX_LIST_H */ 0707010008a21f000081a4000000000000000000000001442c5c2c0000042e000000660000000000000000000000000000002900000000reloc/include/cherokee/list_merge_sort.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef LIST_MERGE_SORT_H #define LIST_MERGE_SORT_H #include void list_sort (struct list_head *head, int (*cmp)(struct list_head *a, struct list_head *b)); #endif /* LIST_MERGE_SORT_H */ 0707010008a222000081a4000000000000000000000001442c5c2c00000c9c000000660000000000000000000000000000002000000000reloc/include/cherokee/logger.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * This piece of code by: * Miguel Angel Ajo Pelayo * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_LOGGER_H #define CHEROKEE_LOGGER_H #include #include #include #include CHEROKEE_BEGIN_DECLS /* Callback function definitions */ typedef ret_t (* logger_func_new_t) (void **logger, cherokee_table_t *properties); typedef ret_t (* logger_func_init_t) (void *logger); typedef ret_t (* logger_func_free_t) (void *logger); typedef ret_t (* logger_func_flush_t) (void *logger); typedef ret_t (* logger_func_reopen_t) (void *logger); typedef ret_t (* logger_func_write_access_t) (void *logger, void *conn); typedef ret_t (* logger_func_write_error_t) (void *logger, void *conn); typedef ret_t (* logger_func_write_string_t) (void *logger, const char *format); typedef struct { /* Base */ cherokee_module_t module; /* Private data */ struct cherokee_logger_private *priv; /* Pure virtual methods */ logger_func_flush_t flush; logger_func_reopen_t reopen; logger_func_write_access_t write_access; logger_func_write_error_t write_error; logger_func_write_string_t write_string; /* Buffer */ cherokee_buffer_t *buffer; } cherokee_logger_t; #define LOGGER(x) ((cherokee_logger_t *)(x)) #define LOGGER_BUFFER(b) (LOGGER(b)->buffer) ret_t cherokee_logger_init_base (cherokee_logger_t *logger); ret_t cherokee_logger_init (cherokee_logger_t *logger); ret_t cherokee_logger_free (cherokee_logger_t *logger); ret_t cherokee_logger_reopen (cherokee_logger_t *logger); ret_t cherokee_logger_flush (cherokee_logger_t *logger); ret_t cherokee_logger_write_access (cherokee_logger_t *logger, void *conn); ret_t cherokee_logger_write_error (cherokee_logger_t *logger, void *conn); ret_t cherokee_logger_write_string (cherokee_logger_t *logger, const char *format, ...); ret_t cherokee_logger_set_backup_mode (cherokee_logger_t *logger, cherokee_boolean_t active); ret_t cherokee_logger_get_backup_mode (cherokee_logger_t *logger, cherokee_boolean_t *active); CHEROKEE_END_DECLS #endif /* CHEROKEE_LOGGER_H */ 0707010008a223000081a4000000000000000000000001442c5c2c00001e61000000660000000000000000000000000000002000000000reloc/include/cherokee/macros.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_MACROS_H #define CHEROKEE_MACROS_H #include #include #ifdef HAVE_SYS_VARARGS # include #endif #ifdef __cplusplus # define CHEROKEE_BEGIN_DECLS extern "C" { # define CHEROKEE_END_DECLS } #else # define CHEROKEE_BEGIN_DECLS # define CHEROKEE_END_DECLS #endif #ifndef TRUE # define TRUE 1 #endif #ifndef FALSE # define FALSE 0 #endif #ifndef NULL # ifdef __cplusplus # define NULL (0L) # else /* !__cplusplus */ # define NULL ((void*) 0) # endif /* !__cplusplus */ #endif #if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) # define likely(x) __builtin_expect((x),1) # define unlikely(x) __builtin_expect((x),0) # define not_ok(x) __builtin_expect(x != ret_ok, 0) # define lt_ok(x) __builtin_expect(x < ret_ok, 0) #else # define likely(x) (x) # define unlikely(x) (x) # define not_ok(x) (x != ret_ok) # define lt_ok(x) (x < ret_ok) #endif #define DEFAULT_RECV_SIZE 1024 #define DEFAULT_READ_SIZE 8192 #define MAX_HEADER_LEN 4096 #define MAX_KEEPALIVE 500 #define MAX_NEW_CONNECTIONS_PER_STEP 50 #define DEFAULT_CONN_REUSE 20 #define TERMINAL_WIDTH 80 #define DEFAULT_TRAFFIC_UPDATE 10 #define CGI_TIMEOUT 65 #define MSECONS_TO_LINGER 2000 #define POST_SIZE_TO_DISK 32768 #define IOCACHE_MAX_FILE_SIZE 50000 #define IOCACHE_DEFAULT_CLEAN_ELAPSE 10 #define IOCACHE_BASIC_SIZE 50 #define EXIT_CANT_CREATE_SERVER_SOCKET4 10 #define EXIT_SERVER_CLEAN 30 #define EXIT_SERVER_READ_CONFIG 31 #define EXIT_SERVER_INIT 32 #define CRLF "\r\n" #define return_if_fail(expr,ret) \ if (!(expr)) { \ fprintf (stderr, \ "file %s: line %d (%s): assertion `%s' failed\n", \ __FILE__, \ __LINE__, \ __func__, \ #expr); \ return (ret); \ } #define SHOULDNT_HAPPEN \ do { fprintf (stderr, "file %s:%d (%s): this shouldn't happend\n", \ __FILE__, __LINE__, __func__); \ } while (0) #define RET_UNKNOWN(ret) \ do { fprintf (stderr, "file %s:%d (%s): ret code unknown ret=%d\n", \ __FILE__, __LINE__, __func__, ret); \ } while (0) #define CHEROKEE_NEW_STRUCT(obj,type) \ cherokee_ ## type ## _t * obj = (cherokee_ ## type ## _t *) malloc (sizeof(cherokee_ ## type ## _t)); \ return_if_fail (obj != NULL, ret_nomem) #define CHEROKEE_NEW(obj,type) \ cherokee_ ## type ## _t * obj; \ cherokee_ ## type ## _new (& obj ); \ return_if_fail (obj != NULL, ret_nomem) #define CHEROKEE_NEW2(obj1,obj2,type) \ cherokee_ ## type ## _t * obj1, *obj2; \ cherokee_ ## type ## _new (& obj1 ); \ cherokee_ ## type ## _new (& obj2 ); \ return_if_fail (obj1 != NULL, ret_nomem); \ return_if_fail (obj2 != NULL, ret_nomem) #define CHEROKEE_NEW_TYPE(obj,type) \ type * obj = (type *) malloc(sizeof(type)); \ return_if_fail (obj != NULL, ret_nomem) #define CHEROKEE_TEMP(obj, size) \ const unsigned int obj ## _size = size; \ char obj[size] #ifndef MIN # define MIN(x,y) ((xy) ? x : y) #endif /* Printing macros */ #ifdef __GNUC__ # define PRINT_ERROR(fmt,arg...) fprintf(stderr, "%s:%d: "fmt, __FILE__, __LINE__, ##arg) # define PRINT_MSG(fmt,arg...) fprintf(stderr, fmt, ##arg) #else # define PRINT_ERROR(fmt,...) fprintf(stderr, "%s:%d: "fmt, __FILE__, __LINE__, __VA_ARGS__) # define PRINT_MSG(fmt,...) fprintf(stderr, fmt, __VA_ARGS__) #endif #ifdef DEBUG # ifdef __GNUC__ # define PRINT_DEBUG(fmt,arg...) do { fprintf(stdout, "%s:%d: " fmt,__FILE__,__LINE__,##arg); fflush(stdout); } while (0) # else # define PRINT_DEBUG(fmt,...) do { fprintf(stdout, "%s:%d: " fmt,__FILE__,__LINE__,__VA_ARGS__); fflush(stdout); } while (0) # endif #else # ifdef __GNUC__ # define PRINT_DEBUG(fmt,arg...) do { } while(0) # else # define PRINT_DEBUG(fmt,...) do { } while(0) # endif #endif #define PRINT_ERROR_S(str) PRINT_ERROR("%s",str) #define PRINT_MSG_S(str) PRINT_MSG("%s",str) /* Tracing facility */ #ifdef TRACE_ENABLED # define TRACE_ENV "CHEROKEE_TRACE" # ifdef __GNUC__ # define TRACE(fmt,arg...) cherokee_trace (fmt, __FILE__, __LINE__, __func__, ##arg) # else # define TRACE(fmt,...) cherokee_trace (fmt, __FILE__, __LINE__, __func__, __VA_ARGS__) # endif #else # ifdef __GNUC__ # define TRACE(section,fmt,arg...) do { } while(0) # else # define TRACE(section,fmt,...) do { } while(0) # endif #endif /* Conversions */ #define POINTER_TO_INT(pointer) ((long)(pointer)) #define INT_TO_POINTER(integer) ((void*)((long)(integer))) /* IMPORTANT: * Cross compilers should define BYTE_ORDER in CFLAGS */ #ifndef BYTE_ORDER /* Definitions for byte order, according to byte significance from low * address to high. */ # define LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ # define BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ # define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ /* assume autoconf's AC_C_BIGENDIAN has been ran. If it hasn't, we * assume (maybe falsely) the order is LITTLE ENDIAN */ # ifdef WORDS_BIGENDIAN # define BYTE_ORDER BIG_ENDIAN # else # define BYTE_ORDER LITTLE_ENDIAN # endif #endif /* BYTE_ORDER */ /* Format string for off_t */ #if (SIZEOF_OFF_T == SIZEOF_UNSIGNED_LONG_LONG) # define FMT_OFFSET "%llu" # define CST_OFFSET unsigned long long #elif (SIZEOF_OFF_T == SIZEOF_UNSIGNED_LONG) # define FMT_OFFSET "%lu" # define CST_OFFSET unsigned long #else # error Unknown size of off_t #endif #ifdef O_NOATIME # define CHE_O_READ O_RDONLY | O_BINARY | O_NOATIME #else # define CHE_O_READ O_RDONLY | O_BINARY #endif #ifndef va_copy # ifdef __va_copy # define va_copy(DEST,SRC) __va_copy((DEST),(SRC)) # else # ifdef HAVE_VA_LIST_AS_ARRAY # define va_copy(DEST,SRC) (*(DEST) = *(SRC)) # else # define va_copy(DEST,SRC) ((DEST) = (SRC)) # endif # endif #endif #ifdef _WIN32 # define CHEROKEE_EXPORT __declspec(dllexport) #else # define CHEROKEE_EXPORT #endif #ifdef _WIN32 # define SLASH '\\' #else # define SLASH '/' #endif #endif /* CHEROKEE_MACROS_H */ 0707010008a225000081a4000000000000000000000001442c5c2c000007e9000000660000000000000000000000000000001e00000000reloc/include/cherokee/mime.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_MIME_H #define CHEROKEE_MIME_H #include #include #include #include #include CHEROKEE_BEGIN_DECLS typedef struct cherokee_mime cherokee_mime_t; #define MIME(m) ((cherokee_mime_t *)(m)) ret_t cherokee_mime_new (cherokee_mime_t **mime); ret_t cherokee_mime_free (cherokee_mime_t *mime); ret_t cherokee_mime_add_entry (cherokee_mime_t *mime, cherokee_mime_entry_t *entry); ret_t cherokee_mime_load_mime_types (cherokee_mime_t *mime, char *filename); ret_t cherokee_mime_get_by_type (cherokee_mime_t *mime, char *type, cherokee_mime_entry_t **entry); ret_t cherokee_mime_set_by_suffix (cherokee_mime_t *mime, char *suffix, cherokee_mime_entry_t *entry); ret_t cherokee_mime_get_by_suffix (cherokee_mime_t *mime, char *suffix, cherokee_mime_entry_t **entry); CHEROKEE_END_DECLS #endif /* CHEROKEE_MIME_H */ 0707010008a226000081a4000000000000000000000001442c5c2c0000076c000000660000000000000000000000000000002400000000reloc/include/cherokee/mime_entry.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_MIME_ENTRY_H #define CHEROKEE_MIME_ENTRY_H #include #include #include #include CHEROKEE_BEGIN_DECLS typedef struct cherokee_mime_entry cherokee_mime_entry_t; #define MIME_ENTRY(m) ((cherokee_mime_entry_t *)(m)) ret_t cherokee_mime_entry_new (cherokee_mime_entry_t **mentry); ret_t cherokee_mime_entry_free (cherokee_mime_entry_t *mentry); ret_t cherokee_mime_entry_set_type (cherokee_mime_entry_t *mentry, char *type); ret_t cherokee_mime_entry_get_type (cherokee_mime_entry_t *mentry, cherokee_buffer_t **name); ret_t cherokee_mime_entry_set_maxage (cherokee_mime_entry_t *mentry, cuint_t maxage); ret_t cherokee_mime_entry_get_maxage (cherokee_mime_entry_t *mentry, cuint_t *maxage); CHEROKEE_END_DECLS #endif /* CHEROKEE_MIME_ENTRY_H */ 0707010008a227000081a4000000000000000000000001442c5c2c00000a39000000660000000000000000000000000000002000000000reloc/include/cherokee/module.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_MODULE_H #define CHEROKEE_MODULE_H #include #include CHEROKEE_BEGIN_DECLS typedef enum { cherokee_generic = 1, cherokee_logger = 1<<1, cherokee_handler = 1<<2, cherokee_encoder = 1<<3, cherokee_validator = 1<<4 } cherokee_module_type_t; typedef ret_t (* module_func_new_t) (void *); typedef ret_t (* module_func_free_t) (void *); typedef void (* module_func_get_name_t) (void *, const char **name); typedef struct { cherokee_module_type_t type; void *new_func; } cherokee_module_info_t; typedef struct { cherokee_module_info_t module; cherokee_http_method_t valid_methods; } cherokee_module_info_handler_t; typedef struct { cherokee_module_info_t module; cherokee_http_auth_t valid_methods; } cherokee_module_info_validator_t; typedef struct { module_func_new_t instance; /* constructor step begging */ module_func_free_t free; /* destructor */ module_func_get_name_t get_name; void *init; /* constructor step endding */ } cherokee_module_t; #define MODULE(x) ((cherokee_module_t *) (x)) #define MODULE_INFO_HANDLER(x) ((cherokee_module_info_handler_t *) (x)) #define MODULE_INFO(name) (cherokee_ ## name ## _info) #define MODULE_INIT(name) (cherokee_module_ ## name ## _init) ret_t cherokee_module_init_base (cherokee_module_t *module); void cherokee_module_get_name (cherokee_module_t *module, const char **name); CHEROKEE_END_DECLS #endif /* CHEROKEE_MODULE_H */ 0707010008a228000081a4000000000000000000000001442c5c2c000008c6000000660000000000000000000000000000002700000000reloc/include/cherokee/module_loader.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_MODULE_LOADER_H #define CHEROKEE_MODULE_LOADER_H #include #include #include CHEROKEE_BEGIN_DECLS typedef struct { cherokee_module_info_t *info; void *dlopen_ref; } cherokee_module_loader_entry_t; typedef struct cherokee_table cherokee_module_loader_t; #define MODINFO(x) ((cherokee_module_info_t *) (x)) #define MODLOADER(x) ((cherokee_module_loader_t *) (x)) ret_t cherokee_module_loader_init (cherokee_module_loader_t *loader); ret_t cherokee_module_loader_mrproper (cherokee_module_loader_t *loader); ret_t cherokee_module_loader_load (cherokee_module_loader_t *loader, char *modname); ret_t cherokee_module_loader_load_no_global (cherokee_module_loader_t *loader, char *modname); ret_t cherokee_module_loader_unload (cherokee_module_loader_t *loader, char *modname); ret_t cherokee_module_loader_get_info (cherokee_module_loader_t *loader, char *modname, cherokee_module_info_t **info); ret_t cherokee_module_loader_get_sym (cherokee_module_loader_t *loader, char *modname, char *name, void **sym); CHEROKEE_END_DECLS #endif /* CHEROKEE_MODULE_LOADER_H */ 0707010008a22b000081a4000000000000000000000001442c5c2c0000070f000000660000000000000000000000000000001f00000000reloc/include/cherokee/nonce.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_NONCE_TABLE_H #define CHEROKEE_NONCE_TABLE_H #include #include #include CHEROKEE_BEGIN_DECLS typedef struct cherokee_nonce_table cherokee_nonce_table_t; ret_t cherokee_nonce_table_new (cherokee_nonce_table_t **nonces); ret_t cherokee_nonce_table_free (cherokee_nonce_table_t *nonces); ret_t cherokee_nonce_table_check (cherokee_nonce_table_t *nonces, cherokee_buffer_t *nonce); ret_t cherokee_nonce_table_remove (cherokee_nonce_table_t *nonces, cherokee_buffer_t *nonce); ret_t cherokee_nonce_table_generate (cherokee_nonce_table_t *nonces, cherokee_connection_t *conn, cherokee_buffer_t *nonce); CHEROKEE_END_DECLS #endif /* CHEROKEE_NONCE_TABLE_H */ 0707010008a22e000081a4000000000000000000000001442c5c2c00000ba8000000660000000000000000000000000000002000000000reloc/include/cherokee/server.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_SERVER_H #define CHEROKEE_SERVER_H #include #include CHEROKEE_BEGIN_DECLS typedef enum { cherokee_version_product, cherokee_version_minor, cherokee_version_minimal, cherokee_version_os, cherokee_version_full } cherokee_server_token_t; typedef struct cherokee_server cherokee_server_t; typedef void (* cherokee_server_reinit_cb_t) (cherokee_server_t *new_srv); #define SRV(x) ((cherokee_server_t *)(x)) ret_t cherokee_server_new (cherokee_server_t **srv); ret_t cherokee_server_init (cherokee_server_t *srv); ret_t cherokee_server_clean (cherokee_server_t *srv); ret_t cherokee_server_free (cherokee_server_t *srv); void cherokee_server_step (cherokee_server_t *srv); void cherokee_server_set_min_latency (cherokee_server_t *srv, int msecs); ret_t cherokee_server_unlock_threads (cherokee_server_t *srv); ret_t cherokee_server_daemonize (cherokee_server_t *srv); ret_t cherokee_server_write_pidfile (cherokee_server_t *srv); ret_t cherokee_server_read_config_file (cherokee_server_t *srv, char *filename); ret_t cherokee_server_read_config_string (cherokee_server_t *srv, char *string); ret_t cherokee_server_get_active_conns (cherokee_server_t *srv, int *num); ret_t cherokee_server_get_reusable_conns (cherokee_server_t *srv, int *num); ret_t cherokee_server_get_total_traffic (cherokee_server_t *srv, size_t *rx, size_t *tx); ret_t cherokee_server_set_backup_mode (cherokee_server_t *srv, cherokee_boolean_t active); ret_t cherokee_server_get_backup_mode (cherokee_server_t *srv, cherokee_boolean_t *active); /* System signal callback */ ret_t cherokee_server_handle_HUP (cherokee_server_t *srv, cherokee_server_reinit_cb_t callback); ret_t cherokee_server_handle_panic (cherokee_server_t *srv); CHEROKEE_END_DECLS #endif /* CHEROKEE_SERVER_H */ 0707010008a22c000081a4000000000000000000000001442c5c2c000006d6000000660000000000000000000000000000002600000000reloc/include/cherokee/resolv_cache.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_RESOLV_CACHE_H #define CHEROKEE_RESOLV_CACHE_H #include CHEROKEE_BEGIN_DECLS typedef struct cherokee_resolv_cache cherokee_resolv_cache_t; #define RESOLV(x) ((cherokee_resolv_cache_t *)(x)) ret_t cherokee_resolv_cache_get_default (cherokee_resolv_cache_t **resolv); ret_t cherokee_resolv_cache_init (cherokee_resolv_cache_t *resolv); ret_t cherokee_resolv_cache_mrproper (cherokee_resolv_cache_t *resolv); ret_t cherokee_resolv_cache_resolve (cherokee_resolv_cache_t *resolv, const char *domain, const char **ip); ret_t cherokee_resolv_cache_clean (cherokee_resolv_cache_t *resolv); CHEROKEE_END_DECLS #endif /* CHEROKEE_RESOLV_CACHE_H */ 0707010008a230000081a4000000000000000000000001442c5c2c00000b21000000660000000000000000000000000000001f00000000reloc/include/cherokee/table.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_TABLE_H #define CHEROKEE_TABLE_H #include CHEROKEE_BEGIN_DECLS typedef void (* cherokee_table_free_item_t) (void *item); typedef void (* cherokee_table_foreach_func_t) (const char *key, void *value); typedef int (* cherokee_table_while_func_t) (const char *key, void *value, void *param); typedef struct cherokee_table cherokee_table_t; #define TABLE(x) ((cherokee_table_t *)(x)) ret_t cherokee_table_new (cherokee_table_t **tab); ret_t cherokee_table_init (cherokee_table_t *tab); ret_t cherokee_table_init_case (cherokee_table_t *tab); ret_t cherokee_table_free (cherokee_table_t *tab); ret_t cherokee_table_free2 (cherokee_table_t *tab, cherokee_table_free_item_t func); ret_t cherokee_table_clean (cherokee_table_t *tab); ret_t cherokee_table_clean2 (cherokee_table_t *tab, cherokee_table_free_item_t func); ret_t cherokee_table_mrproper (cherokee_table_t *tab); ret_t cherokee_table_mrproper2 (cherokee_table_t *tab, cherokee_table_free_item_t func); ret_t cherokee_table_add (cherokee_table_t *tab, char *key, void *value); void* cherokee_table_get_val (cherokee_table_t *tab, char *key); ret_t cherokee_table_get (cherokee_table_t *tab, char *key, void **val); ret_t cherokee_table_del (cherokee_table_t *tab, char *key, void **val); ret_t cherokee_table_len (cherokee_table_t *tab, size_t *len); ret_t cherokee_table_foreach (cherokee_table_t *tab, cherokee_table_foreach_func_t func); ret_t cherokee_table_while (cherokee_table_t *tab, cherokee_table_while_func_t func, void *param, char **key, void **value); ret_t cherokee_table_clean_up (cherokee_table_t *tab, cherokee_table_while_func_t func, void *param); CHEROKEE_END_DECLS #endif /* CHEROKEE_TABLE_H */ 0707010008a231000081a4000000000000000000000001442c5c2c00000aa0000000660000000000000000000000000000002500000000reloc/include/cherokee/typed_table.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_TYPED_TABLE_H #define CHEROKEE_TYPED_TABLE_H #include #include #include CHEROKEE_BEGIN_DECLS typedef enum { typed_none, typed_int, typed_str, typed_data, typed_list } cherokee_typed_table_types_t; typedef void (* cherokee_typed_free_func_t) (void *); ret_t cherokee_typed_table_clean (cherokee_table_t *table); ret_t cherokee_typed_table_free (cherokee_table_t *table); ret_t cherokee_typed_table_add_data (cherokee_table_t *table, char *index, void *data, cherokee_typed_free_func_t free); ret_t cherokee_typed_table_add_list (cherokee_table_t *table, char *index, list_t *list, cherokee_typed_free_func_t free); ret_t cherokee_typed_table_add_int (cherokee_table_t *table, char *index, cuint_t num); ret_t cherokee_typed_table_add_str (cherokee_table_t *table, char *index, char *str); ret_t cherokee_typed_table_get_data (cherokee_table_t *table, char *index, void **data); ret_t cherokee_typed_table_get_list (cherokee_table_t *table, char *index, list_t **list); ret_t cherokee_typed_table_get_int (cherokee_table_t *table, char *index, cuint_t *num); ret_t cherokee_typed_table_get_str (cherokee_table_t *table, char *index, char **str); ret_t cherokee_typed_table_update_data (cherokee_table_t *table, char *index, void *data); ret_t cherokee_typed_table_update_list (cherokee_table_t *table, char *index, list_t *list); ret_t cherokee_typed_table_update_int (cherokee_table_t *table, char *index, cuint_t num); ret_t cherokee_typed_table_update_str (cherokee_table_t *table, char *index, char *str); CHEROKEE_END_DECLS #endif /* CHEROKEE_TYPED_TABLE_H */ 0707010008a232000081a4000000000000000000000001442c5c2c0000080f000000660000000000000000000000000000001d00000000reloc/include/cherokee/url.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee Benchmarker * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_URL_H #define CHEROKEE_URL_H #include #include #include #include CHEROKEE_BEGIN_DECLS typedef struct { cherokee_buffer_t user; cherokee_buffer_t passwd; cherokee_buffer_t host; cuint_t port; cherokee_buffer_t request; enum { http, https } protocol; } cherokee_url_t; #define URL(u) ((cherokee_url_t *)(u)) #define URL_PORT(u) (URL(u)->port) #define URL_HOST(u) (&URL(u)->host) #define URL_REQUEST(u) (&URL(u)->request) ret_t cherokee_url_init (cherokee_url_t *url); ret_t cherokee_url_clean (cherokee_url_t *url); ret_t cherokee_url_mrproper (cherokee_url_t *url); ret_t cherokee_url_parse (cherokee_url_t *url, cherokee_buffer_t *string); ret_t cherokee_url_build_string (cherokee_url_t *url, cherokee_buffer_t *buf); ret_t cherokee_url_print (cherokee_url_t *url); CHEROKEE_END_DECLS #endif /* CHEROKEE_URL_H */ 0707010008a234000081a4000000000000000000000001442c5c2c00000d13000000660000000000000000000000000000001e00000000reloc/include/cherokee/util.h/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2006 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION) # error "Only can be included directly, this file may disappear or change contents." #endif #ifndef CHEROKEE_UTIL_H #define CHEROKEE_UTIL_H #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_INET_H # include #endif #include #include #include CHEROKEE_BEGIN_DECLS #ifdef _WIN32 # define cherokee_stat(path,buf) cherokee_win32_stat(path,buf) # define cherokee_error GetLastError() #else # define cherokee_stat(path,buf) stat(path,buf) # define cherokee_error errno #endif /* Some global information */ const extern char *cherokee_months[]; const extern char *cherokee_weekdays[]; /* System */ ret_t cherokee_tls_init (void); /* String management functions */ int cherokee_hexit (char c); int cherokee_isbigendian (void); char *cherokee_min_str (char *s1, char *s2); char *cherokee_strfsize (unsigned long long size, char *buf); int cherokee_estimate_va_length (char *format, va_list ap); /* Time management functions */ struct tm *cherokee_gmtime (const time_t *timep, struct tm *result); struct tm *cherokee_localtime (const time_t *timep, struct tm *result); long *cherokee_get_timezone_ref (void); /* Thread safe functions */ int cherokee_readdir (DIR *dirstream, struct dirent *entry, struct dirent **result); ret_t cherokee_gethostbyname (const char *hostname, struct in_addr *addr); ret_t cherokee_syslog (int priority, cherokee_buffer_t *buf); /* Misc */ ret_t cherokee_fd_set_nonblocking (int fd); ret_t cherokee_sys_fdlimit_get (cuint_t *limit); ret_t cherokee_sys_fdlimit_set (cuint_t limit); void cherokee_trace (const char *entry, const char *file, int line, const char *func, const char *fmt, ...); /* Path walking */ ret_t cherokee_split_pathinfo (cherokee_buffer_t *path, int init_pos, int allow_dirs, char **pathinfo, int *pathinfo_len); ret_t cherokee_split_arguments (cherokee_buffer_t *request, int init_pos, char **arguments, int *arguments_len); ret_t cherokee_short_path (cherokee_buffer_t *path); CHEROKEE_END_DECLS #endif /* CHEROKEE_UTIL_H */ 0707010008a235000041ed000000000000000000000003442c5c3d00000000000000660000000000000000000000000000000a00000000reloc/lib0707010008a236000041ed000000000000000000000002442c5c3d00000000000000660000000000000000000000000000001400000000reloc/lib/pkgconfig0707010008a237000081a4000000000000000000000001442c5c340000011b000000660000000000000000000000000000002000000000reloc/lib/pkgconfig/cherokee.pcprefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: Cherokee Description: Cherokee web server framework Version: 0.5.0 Libs: -L${libdir} -lcherokee-base -lcherokee-server -lcherokee-client Cflags: -I${includedir} -I${includedir}/cherokee 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!