-Merge license change from AMD64 branch (r42414)
authorGregor Schneider <grschneider@gmail.com>
Thu, 6 Aug 2009 11:01:44 +0000 (11:01 +0000)
committerGregor Schneider <grschneider@gmail.com>
Thu, 6 Aug 2009 11:01:44 +0000 (11:01 +0000)
-Adjust the return value of mktime by the chosen timezone after normalizing

svn path=/trunk/; revision=42417

41 files changed:
reactos/lib/sdk/crt/time_new/asctime.c
reactos/lib/sdk/crt/time_new/bitsfixup.h
reactos/lib/sdk/crt/time_new/clock.c
reactos/lib/sdk/crt/time_new/ctime.c
reactos/lib/sdk/crt/time_new/ctime32.c
reactos/lib/sdk/crt/time_new/ctime64.c
reactos/lib/sdk/crt/time_new/difftime.c
reactos/lib/sdk/crt/time_new/difftime32.c
reactos/lib/sdk/crt/time_new/difftime64.c
reactos/lib/sdk/crt/time_new/ftime.c
reactos/lib/sdk/crt/time_new/ftime32.c
reactos/lib/sdk/crt/time_new/ftime64.c
reactos/lib/sdk/crt/time_new/futime.c
reactos/lib/sdk/crt/time_new/futime32.c
reactos/lib/sdk/crt/time_new/futime64.c
reactos/lib/sdk/crt/time_new/gmtime.c
reactos/lib/sdk/crt/time_new/localtime.c
reactos/lib/sdk/crt/time_new/localtime32.c
reactos/lib/sdk/crt/time_new/localtime64.c
reactos/lib/sdk/crt/time_new/mktime.c
reactos/lib/sdk/crt/time_new/strdate.c
reactos/lib/sdk/crt/time_new/strftime.c
reactos/lib/sdk/crt/time_new/strtime.c
reactos/lib/sdk/crt/time_new/time.c
reactos/lib/sdk/crt/time_new/time32.c
reactos/lib/sdk/crt/time_new/time64.c
reactos/lib/sdk/crt/time_new/timezone.c
reactos/lib/sdk/crt/time_new/tzname.c
reactos/lib/sdk/crt/time_new/utime.c
reactos/lib/sdk/crt/time_new/utime32.c
reactos/lib/sdk/crt/time_new/utime64.c
reactos/lib/sdk/crt/time_new/wasctime.c
reactos/lib/sdk/crt/time_new/wcsftime.c
reactos/lib/sdk/crt/time_new/wctime.c
reactos/lib/sdk/crt/time_new/wctime32.c
reactos/lib/sdk/crt/time_new/wctime64.c
reactos/lib/sdk/crt/time_new/wstrdate.c
reactos/lib/sdk/crt/time_new/wstrtime.c
reactos/lib/sdk/crt/time_new/wutime.c
reactos/lib/sdk/crt/time_new/wutime32.c
reactos/lib/sdk/crt/time_new/wutime64.c

index 33a9ffb..60c62f2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ftime.c
  * PURPOSE:     Implementation of asctime(), _asctime_s()
index 196ff88..c016503 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
+ * PROJECT:     ReactOS CRT library
+ * FILE:        lib/sdk/crt/time/bitsfixup.h
+ * PURPOSE:     definitions for different time_t versions
+ * PROGRAMERS:  Timo Kreuzer
+ */
 
 #if defined(_USE_EXPLITIT_32BIT_TIME) || defined(_USE_EXPLITIT_64BIT_TIME)
 #undef _timeb
index 54cc7af..e601341 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/clock.c
  * PURPOSE:     Implementation of clock()
index 3502b06..731100c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ctime.c
  * PURPOSE:     Implementation of ctime, _ctime_s
index 51abdee..db42e96 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ctime32.c
  * PURPOSE:     Implementation of _ctime32()
index 7cba433..60e7fc3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ctime64.c
  * PURPOSE:     Implementation of _ctime64
index 59f1d5a..94bb2bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/difftime.c
  * PURPOSE:     Implementation of difftime
index 5dff9d5..929ebf9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/difftime32.c
  * PURPOSE:     Implementation of _difftime32
index 37820c9..aae2e32 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/difftime64.c
  * PURPOSE:     Implementation of _difftime64
index 9f432e4..5b62f17 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ftime.c
  * PURPOSE:     Deprecated BSD library call
index fc636e4..b267db0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ftime32.c
  * PURPOSE:     Implementation of _ftime32
index 824ee07..61afd52 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ftime64.c
  * PURPOSE:     Implementation of _ftime64
index fe1ec3d..99010f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/futime.c
  * PURPOSE:     Implementation of _futime
index 41b1321..6ce37d6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/futime32.c
  * PURPOSE:     Implementation of _futime32
index d754b47..0a2e4ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/futime64.c
  * PURPOSE:     Implementation of _futime64
index 5bd04f9..f0ed6d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/gmtime.c
  * PURPOSE:     Implementation of gmtime, _gmtime32, _gmtime64
index 035c6b8..c786976 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/localtime.c
  * PURPOSE:     Implementation of localtime, localtime_s
index 9116270..0ecff87 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/localtime32.c
  * PURPOSE:     Implementation of _localtime32
index c06d371..7d1f0e4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/localtime64.c
  * PURPOSE:     Implementation of _localtime64
index 7c0cf72..619a700 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/mktime.c
  * PURPOSE:     Implementation of mktime, _mkgmtime
@@ -83,6 +83,9 @@ mktime_worker(struct tm * ptm, int utc)
     }
     *ptm = *ptm2;
 
+    /* Finally adjust by the difference to GMT in seconds */
+    time += _timezone;
+
     return time;
 }
 
index 0aaa023..4b2b7ee 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * COPYRIGHT:   See COPYING in the top level directory
  * PROJECT:     ReactOS CRT library
- * FILE:        lib/msvcrt/time/strtime.c
+ * FILE:        lib/sdk/crt/time/strtime.c
  * PURPOSE:     Fills a buffer with a formatted date representation
  * PROGRAMER:   Ariadne
  * UPDATE HISTORY:
index f1416d1..797e4c3 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
+ * PROJECT:     ReactOS CRT library
+ * FILE:        lib/sdk/crt/time/strftime.c
+ * PURPOSE:     
+ * PROGRAMER:   
+ */
 #include <precomp.h>
 #include <tchar.h>
 
index d6e1068..8dfacf3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * COPYRIGHT:   See COPYING in the top level directory
  * PROJECT:     ReactOS system libraries
- * FILE:        lib/msvcrt/time/strtime.c
+ * FILE:        lib/sdk/crt/time/strtime.c
  * PURPOSE:     Fills a buffer with a formatted time representation
  * PROGRAMER:   Ariadne
  * UPDATE HISTORY:
index fcd2382..cc55d48 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS system libraries
  * FILE:        lib/sdk/crt/time/time.c
  * PURPOSE:     Implementation of _time (_tim32, _tim64)
index 5b43771..2ca3953 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
+ * PROJECT:     ReactOS CRT library
+ * FILE:        lib/sdk/crt/time/time32.c
+ * PURPOSE:     
+ * PROGRAMER:   
+ */
 
 #define _USE_EXPLITIT_32BIT_TIME
 #include "time.c"
index 1811dfa..df66843 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
+ * PROJECT:     ReactOS CRT library
+ * FILE:        lib/sdk/crt/time/time64.c
+ * PURPOSE:     
+ * PROGRAMER:   
+ */
 
 #define _USE_EXPLITIT_64BIT_TIME
 #include "time.c"
index b52373d..468d0a8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/timezone.c
  * PURPOSE:     Implementation of time zone functions
index 927042e..1064f8e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/ctime.c
  * PURPOSE:     Implementation of ctime
index 58b0023..130e5a4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/utime.c
  * PURPOSE:     Implementation of utime, _wutime
index 5e8ebeb..890ce67 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/utime32.c
  * PURPOSE:     Implementation of _utime32
index caffd02..f709fa1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/utime64.c
  * PURPOSE:     Implementation of _utime64
index 9c27541..e8f2eb5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wasctime.c
  * PURPOSE:     Implementation of _wasctime
index 2936b93..f33b2bb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wcsftime.c
  * PURPOSE:     Implementation of _wcsftime
index e3058b5..3a36ebf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wctime.c
  * PURPOSE:     Implementation of _wctime
index eba262c..a2b7a8f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wctime32.c
  * PURPOSE:     Implementation of _wctime32
index 43ed93d..bdfea52 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wctime64.c
  * PURPOSE:     Implementation of _Wctime64
index ac67c8a..df717f6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * COPYRIGHT:   See COPYING in the top level directory
  * PROJECT:     ReactOS CRT library
- * FILE:        lib/msvcrt/time/strtime.c
+ * FILE:        lib/sdk/crt/time/strtime.c
  * PURPOSE:     Fills a buffer with a formatted date representation
  * PROGRAMER:   Ariadne
  * UPDATE HISTORY:
index 322c7ba..5da8c16 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * COPYRIGHT:   See COPYING in the top level directory
  * PROJECT:     ReactOS CRT library
- * FILE:        lib/msvcrt/time/strtime.c
+ * FILE:        lib/sdk/crt/time/strtime.c
  * PURPOSE:     Fills a buffer with a formatted time representation
  * PROGRAMER:   Ariadne
  * UPDATE HISTORY:
index 9a5d5d1..6ae4739 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wutime.c
  * PURPOSE:     Implementation of _wutime
index b6bda2d..2fd8b3f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wutime32.c
  * PURPOSE:     Implementation of _wutime32
index fac19d4..d666ab8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * COPYRIGHT:   See COPYING in the top level directory
+ * COPYRIGHT:   LGPL, See LGPL.txt in the top level directory
  * PROJECT:     ReactOS CRT library
  * FILE:        lib/sdk/crt/time/wutime64.c
  * PURPOSE:     Implementation of _wutime64