Request buffer size now is dynamic :)
[MonkeyD.git] / src / include / monkey.h
blob4504e06e6aa37b86b847f49eda332062cafe15d4
1 /* Monkey HTTP Daemon
2 * ------------------
3 * Copyright (C) 2001-2010, Eduardo Silva P. <edsiper@gmail.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef MK_MONKEY_H
21 #define MK_MONKEY_H
23 #include <pthread.h>
24 #include <netinet/in.h>
25 #include "memory.h"
27 int server_fd;
29 /* Max Path lenth */
30 #define MAX_PATH 1024
32 /* Send_Header(...,int cgi) */
33 #define SH_NOCGI 0
34 #define SH_CGI 1
36 #define VAR_ERR -2
37 #define VAR_NOTSET -1
38 #define VAR_ON 0
39 #define VAR_OFF 1
42 /* Thread mutexes */
43 pthread_mutex_t mutex_thread_list;
44 pthread_mutex_t mutex_thread_counter;
45 pthread_mutex_t mutex_cgi_child;
46 pthread_mutex_t mutex_logfile;
47 pthread_mutex_t mutex_wait_register;
49 mk_pointer mk_monkey_protocol;
50 mk_pointer mk_monkey_port;
52 /* Process UID/GID */
53 gid_t EGID;
54 gid_t EUID;
56 #endif