summaryrefslogtreecommitdiff
path: root/time/win32/time.c
Commit message (Collapse)AuthorAgeFilesLines
* Finally, use the same cached recovery for the timezone between 9x and NT.William A. Rowe Jr2003-01-221-28/+27
| | | | | | | | | The 9x code is just wrong, so this change doesn't make worse. Anyone with interest in helping tear away this problem, please speak up. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64308 13f79535-47bb-0310-9956-ffa450edef68
* Now that the old logic is restored, adjust it to the new variables.William A. Rowe Jr2003-01-221-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64307 13f79535-47bb-0310-9956-ffa450edef68
* What an ugly patch.William A. Rowe Jr2003-01-221-30/+77
| | | | | | | | | | Reintroduce the broken is_dst exported value for Win9x/ME until a better solution is found. This clears up a segfault for Win9x attempting to unpack times, while preserving the *good* behavior for WinNT in divining the correct DST flag. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64306 13f79535-47bb-0310-9956-ffa450edef68
* To divine the timezone and daylight savings time, effective as of theWilliam A. Rowe Jr2003-01-101-44/+62
| | | | | | | | | | | | | | | | given date, we need to change our strategy altogether from the old FileTimeToLocalFileTime to the SystemTimeToTzSpecificLocalTime API. We also need to leave the responsibility of mapping tm_gmtoff and tm_isdst to the caller, because this isn't the function that can best guess at the gyrations. This code tests out fine after introducing %R to the win32 extra translations. However, there is still the time zone disparity since the existing tests only succeed on PST machines. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64286 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesThom May2003-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aix/dso.h -> -> aix/apr_arch_dso.h beos/dso.h -> beos/apr_arch_dso.h beos/proc_mutex.h -> beos/apr_arch_proc_mutex.h beos/thread_cond.h -> beos/apr_arch_thread_cond.h beos/thread_mutex.h -> beos/apr_arch_thread_mutex.h beos/threadproc.h -> beos/apr_arch_threadproc.h beos/thread_rwlock.h -> beos/apr_arch_thread_rwlock.h netware/dso.h -> -> netware/apr_arch_dso.h netware/fileio.h -> -> netware/apr_arch_fileio.h netware/global_mutex.h -> netware/apr_arch_global_mutex.h netware/internal_time.h -> netware/apr_arch_internal_time.h netware/networkio.h -> netware/apr_arch_networkio.h netware/pre_nw.h -> netware/apr_arch_pre_nw.h netware/proc_mutex.h -> netware/apr_arch_proc_mutex.h netware/thread_cond.h -> netware/apr_arch_thread_cond.h netware/thread_mutex.h -> netware/apr_arch_thread_mutex.h netware/threadproc.h -> netware/apr_arch_threadproc.h netware/thread_rwlock.h -> netware/apr_arch_thread_rwlock.h os2/dso.h -> os2/apr_arch_dso.h os2/fileio.h -> os2/apr_arch_fileio.h os2/networkio.h -> os2/apr_arch_networkio.h os2/os2calls.h -> os2/apr_arch_os2calls.h os2/proc_mutex.h -> os2/apr_arch_proc_mutex.h os2/thread_cond.h -> os2/apr_arch_thread_cond.h os2/thread_mutex.h -> os2/apr_arch_thread_mutex.h os2/threadproc.h -> os2/apr_arch_threadproc.h os2/thread_rwlock.h -> os2/apr_arch_thread_rwlock.h os390/dso.h -> os390/apr_arch_dso.h unix/dso.h -> unix/apr_arch_dso.h unix/fileio.h -> unix/apr_arch_fileio.h unix/global_mutex.h -> unix/apr_arch_global_mutex.h unix/inherit.h -> unix/apr_arch_inherit.h unix/internal_time.h -> unix/apr_arch_internal_time.h unix/misc.h -> unix/apr_arch_misc.h unix/networkio.h -> unix/apr_arch_networkio.h unix/proc_mutex.h -> unix/apr_arch_proc_mutex.h unix/shm.h -> unix/apr_arch_shm.h unix/thread_cond.h -> unix/apr_arch_thread_cond.h unix/thread_mutex.h -> unix/apr_arch_thread_mutex.h unix/threadproc.h -> unix/apr_arch_threadproc.h unix/thread_rwlock.h -> unix/apr_arch_thread_rwlock.h win32/atime.h -> win32/apr_arch_atime.h win32/dso.h -> win32/apr_arch_dso.h win32/fileio.h -> win32/apr_arch_fileio.h win32/inherit.h -> win32/apr_arch_inherit.h win32/misc.h -> win32/apr_arch_misc.h win32/networkio.h -> win32/apr_arch_networkio.h win32/proc_mutex.h -> win32/apr_arch_proc_mutex.h win32/thread_cond.h -> win32/apr_arch_thread_cond.h win32/thread_mutex.h -> win32/apr_arch_thread_mutex.h win32/threadproc.h -> win32/apr_arch_threadproc.h win32/thread_rwlock.h -> win32/apr_arch_thread_rwlock.h win32/utf8.h -> win32/apr_arch_utf8.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* *) Renames done (deprecated functions wrapped):Thom May2002-11-201-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_filename_of_pathname -> apr_filepath_name_get apr_get_groupid -> apr_gid_get apr_get_groupname -> apr_gid_name_get apr_compare_groups -> apr_gid_compare apr_parse_addr_port -> apr_port_addr_parse apr_shutdown -> apr_socket_shutdown apr_bind -> apr_socket_bind apr_listen -> apr_socket_listen apr_accept -> apr_socket_accept apr_connect -> apr_socket_connect apr_send -> apr_socket_send apr_sendv -> apr_socket_sendv apr_sendto -> apr_socket_sendto apr_implode_gmt -> apr_time_exp_gmt_get apr_get_home_directory -> apr_uid_homepath_get apr_get_userid -> apr_uid_get apr_current_userid -> apr_uid_current apr_compare_users -> apr_uid_compare apr_get_username -> apr_uid_name_get apr_recvfrom -> apr_socket_recvfrom apr_sendfile -> apr_socket_sendfile apr_recv -> apr_socket_recv git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64043 13f79535-47bb-0310-9956-ffa450edef68
* Docs are always good, especially when it's this obscure.William A. Rowe Jr2002-08-041-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63793 13f79535-47bb-0310-9956-ffa450edef68
* Time in exact ms intervals can be very useful in benchmarking... thisWilliam A. Rowe Jr2002-08-041-0/+20
| | | | | | | | | patch defines a general API for doing so if the platform supports toggling the clock resolution. Don't recommend doing so for HTTPD, but flood and ab should appreciate it. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63792 13f79535-47bb-0310-9956-ffa450edef68
* Fix calculation of tm_gmtoff on Windows, and add a test case.Branko Čibej2002-06-091-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63485 13f79535-47bb-0310-9956-ffa450edef68
* Revert bogusness by providing proper stubs for functions that existedWilliam A. Rowe Jr2002-06-081-0/+15
| | | | | | | | | | | | | since the first indirect APR release [APACHE_2_0_35]. Fortunately, these appear to be the only bogusness detected between _35 and _36, and _37 must follow suit with stubs for newly deprecated symbols. Of course all stubs fall out with 1.0.0, which I picture Apache adopting with stronger version controls in APACHE_2_1_x, but we will see what concensus each project adopts between now and then. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63475 13f79535-47bb-0310-9956-ffa450edef68
* Fix two serious holes in the time calculations. The first patch was aWilliam A. Rowe Jr2002-05-221-2/+2
| | | | | | | | | | | | discrepancy with the Unix implementations. The second patch applies to Unix implementations, no? gmtoff is independent of isdst, since gmtoff must be relocatable to another calendar month when dst is in it's other state [on/off boolean.] Reported by: Jon Travis <jtravis@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63422 13f79535-47bb-0310-9956-ffa450edef68
* Per rename_pendings, rename apr_explode_time to apr_time_exp_tz.Justin Erenkrantz2002-04-151-2/+2
| | | | | | | | | | (Justin made a few whitespace corrections.) Submitted by: Thom May <thom@planetarytramp.net> Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63264 13f79535-47bb-0310-9956-ffa450edef68
* Rename apr_explode_localtime to apr_time_exp_lt.Sander Striker2002-04-131-1/+1
| | | | | | | Submitted by: Thom May <thom@planetarytramp.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63256 13f79535-47bb-0310-9956-ffa450edef68
* Rename apr_explode_gmt to apr_time_exp_gmt.Sander Striker2002-03-211-2/+2
| | | | | | | Submitted by: Thom May <thom@planetarytramp.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63175 13f79535-47bb-0310-9956-ffa450edef68
* Rename apr_implode_time to apr_time_exp_get.Sander Striker2002-03-171-2/+2
| | | | | | | Submitted by: Thom May <thom@planetarytramp.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63147 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* patches for apr to rename apr_ansi_time_to_apr_time andIan Holsman2002-03-061-9/+9
| | | | | | | | | | | | apr_exploded_time_t. PR: Obtained from: Submitted by: Thom May <thom@planetarytramp.org> Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63090 13f79535-47bb-0310-9956-ffa450edef68
* More safe header exclusions from Mladen Turk <mturk@mappingsoft.com>William A. Rowe Jr2002-02-121-0/+4
| | | | | | | for the WinCE port. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62968 13f79535-47bb-0310-9956-ffa450edef68
* GetSystemTimeAsFileTime is great! Unfortuantely, WCE's designersWilliam A. Rowe Jr2002-02-121-0/+6
| | | | | | | | didn't agree. Submitted by Mladen Turk <mturk@mappingsoft.com> for his WinCE port. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62950 13f79535-47bb-0310-9956-ffa450edef68
* Added new function apr_implode_gmt, which works like apr_implode_time, exceptBranko Čibej2001-06-301-0/+9
| | | | | | | | | | | that it always produces an apr_time_t that represents GMT. * include/apr_time.h (apr_implode_gmt): New function. * time/unix/time.c, time/win32/time.c: Implement it. * test/testtime.c: Test it. The test is analogous to the apr_implode_time test. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61832 13f79535-47bb-0310-9956-ffa450edef68
* Something is still broken with the testtime, but this gets us building.William A. Rowe Jr2001-06-061-0/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61718 13f79535-47bb-0310-9956-ffa450edef68
* REVIEW Req'd ... solve the implode/explode discrepancy, but I hacked thisWilliam A. Rowe Jr2001-04-021-30/+19
| | | | | | | | at 40,000 ft, and my brain was not altogether there. This merits discuss at the Hackathon git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61431 13f79535-47bb-0310-9956-ffa450edef68
* Hmmm... on this (rare) point the castless caste looses :-/William A. Rowe Jr2001-03-311-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61407 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* s/pupt/put/g typoDoug MacEachern2001-02-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61195 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-5/+5
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* Win32: (IsLeapYear): New macro for quickly figgerin' out if a given year is aBill Stoddard2001-02-021-3/+17
| | | | | | | | | | | | | | leap year. (SystemTimeToAprExpTime): Perform the calculation of tm_yday. Also, negate the sign of the tm_gmtoff field to be consistent with Unix platforms and APR header file comments. ToDo: Perhaps the IsLeapYear macro is useful for other OSes. Submitted by: Mike Pilato Reviewed by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61181 13f79535-47bb-0310-9956-ffa450edef68
* Add remaining APR_DECLARE()s to all headers. Conditionally addedWilliam A. Rowe Jr2001-01-181-13/+20
| | | | | | | | | | | | | | | | | | | | APR_DECLARES() to the sources, based on compilation emits (there are many that should be changed eventually, but the compiler will emit errors if those sources are added for win32). This change also splits libapr from apr, so the two projects are compiled seperately. Both .dsp files must be kept up-to-date with source file revisions. Finally, libapr.def is no longer needed - so it is gone. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Move all of the time private header files to an arch directory underRyan Bloom2000-11-091-1/+1
| | | | | | | | | the include directory. All private header files for APR are being moved. This allows platforms that only implement some of the APR types to compile cleanly. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60661 13f79535-47bb-0310-9956-ffa450edef68
* add missing functionGreg Stein2000-11-031-0/+4
| | | | | | | | Submitted by: Branko Cibej <brane@xbc.nu> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60628 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...William A. Rowe Jr2000-08-061-13/+14
| | | | | | | | | | | | | see src/lib/apr/apr_compat.h for most details. Also a few minor nits to get Win32 to build. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-15/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Fix problem with UTC offset not being correctly reported in theBill Stoddard2000-06-161-4/+23
| | | | | | | access log. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60211 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesRyan Bloom2000-04-141-2/+2
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1Roy T. Fielding2000-03-311-32/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:Ryan Bloom2000-03-101-9/+9
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59688 13f79535-47bb-0310-9956-ffa450edef68
* Make some of the APR to Windows time conversion routines available to otherBill Stoddard2000-02-011-5/+3
| | | | | | | APR functions. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59634 13f79535-47bb-0310-9956-ffa450edef68
* Humm, ULONGLONG does not appear to be recognised by VC++ 5.0Bill Stoddard2000-01-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59605 13f79535-47bb-0310-9956-ffa450edef68
* Reimplement Win32 time functions to the new spec.Bill Stoddard2000-01-171-64/+121
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59600 13f79535-47bb-0310-9956-ffa450edef68
* Make APR compile on Windows again. The changes that I introduced forRyan Bloom1999-12-091-1/+0
| | | | | | | | | autoconf had the undesirable effect of killing the Windows build. This still generates a few warnings, but at least it provides us with working code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59511 13f79535-47bb-0310-9956-ffa450edef68
* Ryan's last patch to change argument order missed a few Win32 APR funcs.Bill Stoddard1999-10-041-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59262 13f79535-47bb-0310-9956-ffa450edef68
* First patch to re-order function parameters. This one gets the low hangingRyan Bloom1999-10-041-2/+2
| | | | | | | | | | fruit, and moves most of the result parameters to the first argument. Future patches in this series will move the rest of the result parameters to the beginning of the list, and will move the context's to the end of the list git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59259 13f79535-47bb-0310-9956-ffa450edef68
* Initial revisionRyan Bloom1999-08-171-0/+158
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59151 13f79535-47bb-0310-9956-ffa450edef68