Add Eduardo's email to copyright header files
[MonkeyD.git] / src / include / monkey.h
blob9c3307bea24e2a28af01ebc94380041d173e0e8d
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 buf length sent by client */
30 #define MAX_REQUEST_BODY 1024
31 /* Max Path lenth */
32 #define MAX_PATH 1024
34 /* Send_Header(...,int cgi) */
35 #define SH_NOCGI 0
36 #define SH_CGI 1
38 /* Valores para distintas variables */
39 #define VAR_ERR -2
40 #define VAR_NOTSET -1
41 #define VAR_ON 0
42 #define VAR_OFF 1
44 /* Contador de requests en proceso */
45 int thread_counter;
47 /* Thread mutexes */
48 pthread_mutex_t mutex_thread_list;
49 pthread_mutex_t mutex_thread_counter;
50 pthread_mutex_t mutex_cgi_child;
51 pthread_mutex_t mutex_logfile;
52 pthread_mutex_t mutex_wait_register;
54 mk_pointer mk_monkey_protocol;
55 mk_pointer mk_monkey_port;
57 /* Usuario real que que ejecuto
58 el servidor */
59 gid_t EGID;
60 gid_t EUID;
62 #endif