summaryrefslogtreecommitdiff
path: root/time/win32
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-202-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* Replace tabs to spaces.Ivan Zhakov2022-07-081-34/+34
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902583 13f79535-47bb-0310-9956-ffa450edef68
* time: Don't apr_sleep() less than the requested time on WIN32.Yann Ylavic2022-06-221-1/+1
| | | | | | | | | | | | Windows' Sleep() has millisecond granularity while the given apr_time_t to sleep is in microseconds, so round up. * time/win32/time.c(apr_sleep): Round up given time to upper milliseconds. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902169 13f79535-47bb-0310-9956-ffa450edef68
* Stage 1 in cleaning win95 code ... cleanup utilsMladen Turk2021-12-021-75/+34
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895509 13f79535-47bb-0310-9956-ffa450edef68
* Stage 3 in dismantling _WIN32_WCE ... cleanup codeMladen Turk2021-12-022-24/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895508 13f79535-47bb-0310-9956-ffa450edef68
* Add missing bits from CVE-2021-35940 applied to 1.7.x branchMladen Turk2021-11-211-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895239 13f79535-47bb-0310-9956-ffa450edef68
* Correct cut-n-paste assignment error.William A. Rowe Jr2018-09-081-1/+1
| | | | | | | Submitted by: rjung git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1840372 13f79535-47bb-0310-9956-ffa450edef68
* Resolve invalid rvalue from void() function, the test is only required in oneWilliam A. Rowe Jr2018-08-311-3/+7
| | | | | | | | single case of user-provided input, to avoid an index into invalid memory. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839769 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839699, this contained unintended, additional noise. Re-correcting.William A. Rowe Jr2018-08-301-7/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839700 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839627, this macro does not result in a usable CC_FOR_BUILDWilliam A. Rowe Jr2018-08-301-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839699 13f79535-47bb-0310-9956-ffa450edef68
* Bounds-check human-readable date fields (credit: Stefan Sperling)Nick Kew2017-09-101-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1807975 13f79535-47bb-0310-9956-ffa450edef68
* apr_time_exp_*() on Windows: Fix error in the tm_yday field ofJeff Trawick2012-08-111-1/+1
| | | | | | | | | apr_time_exp_t for times within leap years. PR: 53175 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1372022 13f79535-47bb-0310-9956-ffa450edef68
* remove ancient time field getters, replaced with exploded timeJeff Trawick2011-03-191-204/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1083177 13f79535-47bb-0310-9956-ffa450edef68
* clean up some low hanging gcc warnings on WinJeff Trawick2011-03-191-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1083169 13f79535-47bb-0310-9956-ffa450edef68
* explicit stdlib for mallocWilliam A. Rowe Jr2009-12-181-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@892188 13f79535-47bb-0310-9956-ffa450edef68
* Cast pointers properly trough apr_ssize_t (int or __int64)Mladen Turk2008-04-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@649022 13f79535-47bb-0310-9956-ffa450edef68
* SystemTimeToAprExpTime dayoffset summation is wrong, June is 30 days.Davi Arnaut2007-07-241-1/+1
| | | | | | | PR: 42953 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@558902 13f79535-47bb-0310-9956-ffa450edef68
* SystemTimeToTzSpecificLocalTime is not implemented on Windows CE and is used inWilliam A. Rowe Jr2007-06-011-2/+2
| | | | | | | | | | | | | | the conversion of an APR time to an expanded local time. The APR code did have fallback code for Win9x which did not call this function. The fallback code had the deficiency of using the current offset for daylight savings time, not the offset at the specified time. PR: 39856 Submitted by: Curt Arnold <carnold apache.org> Reviewed by: Davi Arnaut git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@543340 13f79535-47bb-0310-9956-ffa450edef68
* The implementation of apr_time_clock_hires calls SetTimerResolution which is notWilliam A. Rowe Jr2007-06-011-1/+8
| | | | | | | | | | | | implemented on WinCE. The Unix implementation of this function is a no-op. The attached patch makes the implementation a no-op for WinCE. PR: 39857 Submitted by: Curt Arnold <carnold apache.org> Reviewed by: Davi Arnaut git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@543337 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-033-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-033-18/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Fix up Win32-private includes to bring it in line with all other platforms.Justin Erenkrantz2006-07-123-3/+3
| | | | | | | | | | Originally titled: [patch 10/17] include path prefix win32/ Submitted by: John Mark Vandenberg Reviewed by: Will Rowe (concept), Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@421349 13f79535-47bb-0310-9956-ffa450edef68
* A noop on Win32, this Win64 hack for our internal fn deals with memoryWilliam A. Rowe Jr2005-05-161-3/+3
| | | | | | | sizes in apr_size_t git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@170469 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-043-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* * time/unix/time.c (apr_time_exp_get): Remove year check that failed forJoe Orton2004-03-251-8/+2
| | | | | | | | | | | | | 2038, use apr_time_t to avoid overflow. * time/win32/time.c (apr_time_exp_get): ditto * test/testtime.c (test_2038): Add regression test. Submitted by: Philip Martin <philip@codematters.co.uk> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65026 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-133-147/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* remove these interfaces:Jeff Trawick2003-09-031-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_compare_groups apr_compare_users apr_current_userid apr_explode_localtime apr_explode_time apr_filename_of_pathname apr_get_groupid apr_get_groupname apr_get_home_directory apr_get_userid apr_get_username apr_group_name_get apr_implode_gmt apr_lstat FNM_NOMATCH FNM_NOESCAPE FNM_PATHNAME FNM_PERIOD FNM_CASE_BLIND change the function args to this interface: apr_mmap_dup this function's args changed in a previous commit, so mention that in CHANGES apr_socket_create git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64607 13f79535-47bb-0310-9956-ffa450edef68
* After further evaluation, we will have to create our own implementationWilliam A. Rowe Jr2003-01-231-4/+5
| | | | | | | | of SystemTimeToTzSpecificLocalTime() for Win9x. Get the code building cleanly until that happens. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64310 13f79535-47bb-0310-9956-ffa450edef68
* Don't use the optimized form. If Apache is started in ST and runs untilWilliam A. Rowe Jr2003-01-221-1/+1
| | | | | | | | | | | | | DST (ok, this is Win9x, don't laugh to hard), then even 'Time Now' will be in the wrong timezone. (NT code doesn't suffer from this problem, although changing the -time zone- wouldn't affect the running instance of Apache, which would remain on the old timezone.) Solving this might be a puzzle for the parent process to pick up such system config change notifications, and cycle over to a new child. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64309 13f79535-47bb-0310-9956-ffa450edef68
* 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-102-45/+69
| | | | | | | | | | | | | | | | 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-063-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-013-3/+3
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Without strftime() on wince, apr_strftime is currently unimplemented.William A. Rowe Jr2002-12-111-1/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64141 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-132-2/+2
| | | | | | | 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-212-3/+3
| | | | | | | 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-133-3/+3
| | | | 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-062-12/+12
| | | | | | | | | | | | 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