summaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-01-15 07:02:27 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-01-15 07:02:27 +0000
commitad22e01112003ec8600f3e1f6ef184fc18a69bc8 (patch)
tree98981830393636b259e91f935fb017ff41c4b94e /src/core
parente79c6ac7b271cab208cd3295a833e4d9c8b9460b (diff)
downloadnginx-ad22e01112003ec8600f3e1f6ef184fc18a69bc8.tar.gz
nginx-ad22e01112003ec8600f3e1f6ef184fc18a69bc8.tar.bz2
nginx-0.0.1-2003-01-15-10:02:27 import
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_core.h6
-rw-r--r--src/core/ngx_hunk.h4
-rw-r--r--src/core/ngx_string.h4
3 files changed, 13 insertions, 1 deletions
diff --git a/src/core/ngx_core.h b/src/core/ngx_core.h
index f5b25c43a..adab5018c 100644
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -10,4 +10,10 @@
#define NGX_DECLINED -4
+#define NGX_MAXHOSTNAMELEN 32
+/*
+#define NGX_MAXHOSTNAMELEN MAXHOSTNAMELEN
+*/
+
+
#endif /* _NGX_CORE_H_INCLUDED_ */
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index 75aaef132..42030eb26 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -24,8 +24,10 @@
#define NGX_HUNK_FLUSH 0x0100
/* last hunk */
#define NGX_HUNK_LAST 0x0200
+#if 0
/* can be used with NGX_HUNK_LAST only */
-#define NGX_HUNK_SHUTDOWN 0x0400
+#define NGX_HUNK_SHUTDOWN 0x0400 /
+#endif
#define NGX_HUNK_RECYCLED 0x0800
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index 193308452..ea255ba2f 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -22,6 +22,8 @@ typedef struct {
#define ngx_strncmp strncmp
#define ngx_strcmp strcmp
+#define ngx_strlen strlen
+
#define ngx_snprintf _snprintf
#define ngx_vsnprintf _vsnprintf
@@ -33,6 +35,8 @@ typedef struct {
#define ngx_strncmp strncmp
#define ngx_strcmp strcmp
+#define ngx_strlen strlen
+
#define ngx_snprintf snprintf
#define ngx_vsnprintf vsnprintf