Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-04-22 00:13:48 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-04-22 00:13:48 +0400
commite772e8fef51291f8386cf3d85e4da56928c9a86b (patch)
tree983d06e674f981851f47cce5dc965992c7040cf1 /src/os/win32
parent732a27196381164c799d345ec0d010b416408555 (diff)
nginx-0.0.3-2004-04-22-00:13:48 import
Diffstat (limited to 'src/os/win32')
-rw-r--r--src/os/win32/ngx_process_cycle.c2
-rw-r--r--src/os/win32/ngx_time.c12
-rw-r--r--src/os/win32/ngx_time.h2
3 files changed, 16 insertions, 0 deletions
diff --git a/src/os/win32/ngx_process_cycle.c b/src/os/win32/ngx_process_cycle.c
index ad5024b23..fa90494c5 100644
--- a/src/os/win32/ngx_process_cycle.c
+++ b/src/os/win32/ngx_process_cycle.c
@@ -34,6 +34,8 @@ sig_atomic_t ngx_change_binary;
void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx)
{
+ ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, "master mode is not supported");
+
exit(2);
}
diff --git a/src/os/win32/ngx_time.c b/src/os/win32/ngx_time.c
index 43d2c41cb..cef335707 100644
--- a/src/os/win32/ngx_time.c
+++ b/src/os/win32/ngx_time.c
@@ -29,3 +29,15 @@ void ngx_gettimeofday(struct timeval *tp)
tp->tv_sec = (long) (intervals / 10000000);
tp->tv_usec = (long) ((intervals % 10000000) / 10);
}
+
+
+ngx_int_t ngx_timezone(void)
+{
+ TIME_ZONE_INFORMATION tz;
+
+ if (GetTimeZoneInformation(&tz) != TIME_ZONE_ID_INVALID) {
+ return -tz.Bias;
+ }
+
+ return 0;
+}
diff --git a/src/os/win32/ngx_time.h b/src/os/win32/ngx_time.h
index 4bf377da3..9ed94baeb 100644
--- a/src/os/win32/ngx_time.h
+++ b/src/os/win32/ngx_time.h
@@ -34,7 +34,9 @@ typedef FILETIME ngx_mtime_t;
#define ngx_msleep Sleep
+#define HAVE_TIMEZONE 1
+ngx_int_t ngx_timezone(void);
void ngx_gettimeofday(struct timeval *tp);