Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix compile error in VS2012 in evutil_gettimeofday() | MKCKR | 2021-02-17 | 1 | -3/+3 |
| | | | | | | | Move static variable definition before other statement, to prevent compile error in VS2012. Fixes: #1135 | ||||
* | evutil_time: improve evutil_gettimeofday on Windows | Nick Grifka | 2020-04-29 | 1 | -1/+19 |
| | | | | | If present, use GetSystemTimePreciseAsFileTime instead of GetSystemTimeAsFileTime. Available since Windows 8. | ||||
* | evutil_time: Implements usleep() using wait funtion on Windows | yuangongji | 2019-12-31 | 1 | -2/+16 |
| | |||||
* | evutil_time: detect and use _gmtime64_s()/_gmtime64() | yuangongji | 2019-09-19 | 1 | -5/+15 |
| | |||||
* | Replace all EVENT_HAVE with EVENT__HAVE (EVENT__HAVE_USLEEP) | Azat Khuzhin | 2018-06-19 | 1 | -1/+1 |
| | |||||
* | Avoid possible SEGVs in select() (in unit tests) | Philip Prindeville | 2018-03-30 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | Per the POSIX definition of select(): http://pubs.opengroup.org/onlinepubs/009696699/functions/pselect.html "Upon successful completion, the select() function may modify the object pointed to by the timout argument." If "struct timeval" pointer is a "static const", it could potentially be allocated in a RO text segment. The kernel would then try to copy back the modified value (with the time remaining) into a read-only address and SEGV. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Closes: #614 | ||||
* | test: fix util/date_rfc1123 under win32 | Azat Khuzhin | 2016-12-22 | 1 | -0/+1 |
| | | | | | | Refs: #417 v2: check when gmtime() returns NULL v3: fix overflow cases | ||||
* | Fix UB in evutil_date_rfc1123() | Azat Khuzhin | 2016-12-22 | 1 | -11/+13 |
| | | | | | | | | | As pointed in https://github.com/libevent/libevent/pull/417#issuecomment-267860738 "code is unsafe because in evutil_date_rfc1123() the pointer to the automatic variable struct tm cur is used outside the scope it defined." Checked with `clang -fsanitize=address -fsanitize-address-use-after-scope` and test that call evutil_date_rfc1123() with tm==NULL | ||||
* | http: do not use local settings for Date header | Vis Virial | 2016-12-19 | 1 | -0/+28 |
| | |||||
* | evutil_time: include <unistd.h> when there is only sleep()/usleep() | Azat Khuzhin | 2016-12-06 | 1 | -0/+7 |
| | |||||
* | Implement new/free for struct evutil_monotonic_timer and export monotonic ↵ | Andrea Shepard | 2014-12-04 | 1 | -0/+50 |
| | | | | time functions | ||||
* | Check CLOCK_MONOTONIC_* at runtime if needed. | Nick Mathewson | 2013-08-19 | 1 | -9/+10 |
| | | | | | (We need this to avoid compile errors on cygwin. Fixes github issue 75.) | ||||
* | Add regress_finalize to makefile.nmakerelease-2.1.3-alpha | Nick Mathewson | 2013-05-01 | 1 | -3/+3 |
| | |||||
* | Avoid unused-var warning on systems with clock_gettime but without ↵ | Nick Mathewson | 2012-08-02 | 1 | -0/+2 |
| | | | | CLOCK_MONOTONIC_COARSE | ||||
* | Simple unit tests for monotonic timers | Nick Mathewson | 2012-04-26 | 1 | -8/+20 |
| | |||||
* | Implement fast/precise monotonic clocks on Windows | Nick Mathewson | 2012-04-26 | 1 | -25/+130 |
| | | | | | This uses code from libutp, which was released under the MIT license; see evutil_time.c and LICENSE changes. | ||||
* | Refactor monotonic timer handling into a new type and set of functions; add ↵ | Nick Mathewson | 2012-04-26 | 1 | -0/+235 |
| | | | | | | | a gettimeofday-based ratcheting implementation Now, event.c can always assume that we have a monotonic timer; this makes event.c easier to write. | ||||
* | Split out time-related prototypes into time-internal.h | Nick Mathewson | 2012-04-20 | 1 | -1/+0 |
| | |||||
* | Split out time-related evutil functions into a new evutil_time.c | Nick Mathewson | 2012-04-20 | 1 | -0/+134 |