nginx-0.0.1-2004-01-05-23:55:48 import

This commit is contained in:
Igor Sysoev
2004-01-05 20:55:48 +00:00
parent fa5fea18f7
commit 3c3ca17358
38 changed files with 1963 additions and 524 deletions

View File

@@ -59,14 +59,16 @@ typedef u_int ngx_uint_t;
#if !(WIN32)
#define ngx_signal_helper(n) SIG##n
#define ngx_signal_value(n) ngx_signal_helper(n)
#define ngx_signal_helper(n) SIG##n
#define ngx_signal_value(n) ngx_signal_helper(n)
/* TODO: #ifndef */
#define NGX_RESTART_SIGNAL HUP
#define NGX_ROTATE_SIGNAL USR1
#define NGX_SHUTDOWN_SIGNAL TERM
#define NGX_INTERRUPT_SIGNAL INT
#define NGX_RECONFIGURE_SIGNAL HUP
#define NGX_REOPEN_SIGNAL USR1
#define NGX_SHUTDOWN_SIGNAL QUIT
#define NGX_TERMINATE_SIGNAL TERM
#define NGX_INTERRUPT_SIGNAL INT
#define NGX_CHANGEBIN_SIGNAL USR2
#endif
@@ -76,6 +78,13 @@ typedef u_int ngx_uint_t;
#define NGX_INVALID_ARRAY_INDEX 0x80000000
/* TODO: auto */
#define NGX_INT32_LEN sizeof("-2147483648") - 1
#define NGX_TIME_T_LEN sizeof("-2147483648") - 1
#define NGX_OFF_T_LEN sizeof("-9223372036854775808") - 1
/* TODO: auto_conf */
#define NGX_ALIGN (sizeof(unsigned long) - 1) /* platform word */
#define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */