42 |
#include <netinet/in.h> |
#include <netinet/in.h> |
43 |
|
|
44 |
#include <sys/mman.h> |
#include <sys/mman.h> |
|
#include <sys/select.h> |
|
45 |
#include <sys/types.h> /* socket, bind, accept */ |
#include <sys/types.h> /* socket, bind, accept */ |
46 |
#include <sys/socket.h> /* socket, bind, accept, setsockopt, */ |
#include <sys/socket.h> /* socket, bind, accept, setsockopt, */ |
47 |
#include <sys/stat.h> /* open */ |
#include <sys/stat.h> /* open */ |
107 |
|
|
108 |
/* log */ |
/* log */ |
109 |
void open_logs(void); |
void open_logs(void); |
|
void close_access_log(void); |
|
110 |
void log_access(request * req); |
void log_access(request * req); |
111 |
void log_error_doc(request * req); |
void log_error_doc(request * req); |
112 |
void boa_perror(request * req, char *message); |
void boa_perror(request * req, char *message); |
203 |
int unescape_uri(char *uri, char **query_string); |
int unescape_uri(char *uri, char **query_string); |
204 |
int create_temporary_file(short want_unlink, char *storage, int size); |
int create_temporary_file(short want_unlink, char *storage, int size); |
205 |
char * normalize_path(char *path); |
char * normalize_path(char *path); |
206 |
int real_set_block_fd(int fd); |
int set_block_fd(int fd); |
207 |
int real_set_nonblock_fd(int fd); |
int set_nonblock_fd(int fd); |
208 |
|
int set_cloexec_fd(int fd); |
209 |
|
void strlower(char *s); |
210 |
|
int check_host(char *r); |
211 |
void create_url( char * buffer, int buffer_size, int secure, |
void create_url( char * buffer, int buffer_size, int secure, |
212 |
const char* hostname, int port, const char* request_uri); |
const char* hostname, int port, const char* request_uri); |
213 |
void break_comma_list(char *list, |
void break_comma_list(char *list, |
237 |
/* pipe */ |
/* pipe */ |
238 |
int read_from_pipe(request * req); |
int read_from_pipe(request * req); |
239 |
int write_from_pipe(request * req); |
int write_from_pipe(request * req); |
240 |
|
int io_shuffle(request * req); |
241 |
|
#ifdef HAVE_SENDFILE |
242 |
|
#include <sys/sendfile.h> |
243 |
|
int io_shuffle_sendfile(request *req); |
244 |
|
#endif |
245 |
|
|
246 |
/* ip */ |
/* ip */ |
247 |
int bind_server(int server_s, char *ip, int port); |
int bind_server(int server_s, char *ip, int port); |