comparison src/os/unix/ngx_os.h @ 449:3b1e8c9df9ad

nginx-0.1.0-2004-10-04-00:02:06 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 03 Oct 2004 20:02:06 +0000
parents 42d11f017717
children 295d97d70c69
comparison
equal deleted inserted replaced
448:241dc8092a33 449:3b1e8c9df9ad
42 ngx_uint_t flags; 42 ngx_uint_t flags;
43 } ngx_os_io_t; 43 } ngx_os_io_t;
44 44
45 45
46 void ngx_debug_init(); 46 void ngx_debug_init();
47 int ngx_os_init(ngx_log_t *log); 47 ngx_int_t ngx_os_init(ngx_log_t *log);
48 int ngx_daemon(ngx_log_t *log); 48 void ngx_os_status(ngx_log_t *log);
49 int ngx_posix_init(ngx_log_t *log); 49 ngx_int_t ngx_daemon(ngx_log_t *log);
50 int ngx_posix_post_conf_init(ngx_log_t *log); 50 ngx_int_t ngx_posix_init(ngx_log_t *log);
51 void ngx_posix_status(ngx_log_t *log);
52 ngx_int_t ngx_posix_post_conf_init(ngx_log_t *log);
51 53
52 54
53 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); 55 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size);
54 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry); 56 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry);
55 ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size); 57 ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size);
56 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, 58 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in,
57 off_t limit); 59 off_t limit);
58 60
59 61
60 extern ngx_os_io_t ngx_os_io; 62 extern ngx_os_io_t ngx_os_io;
61 extern int ngx_ncpu; 63 extern ngx_int_t ngx_ncpu;
62 extern int ngx_max_sockets; 64 extern ngx_int_t ngx_max_sockets;
63 extern int ngx_inherited_nonblocking; 65 extern ngx_int_t ngx_inherited_nonblocking;
64 66
67 #define ngx_stderr_fileno STDERR_FILENO
65 68
66 #ifdef __FreeBSD__ 69 #ifdef __FreeBSD__
67 #include <ngx_freebsd.h> 70 #include <ngx_freebsd.h>
68 #endif 71 #endif
69 72