* cygheap.h (init_cygheap::_gtod): Remove.

* cygwin.din: Export clock_getres and clock_setres.
* hires.h (hires_ms::minperiod): Delete declaration.
(hires_ms::began_period): Ditto.
(hires_ms::prime): Make void.
(hires_ms::resolution): Just define here.
(hires_ms::usecs): Remove unneeded argument.
(gtod): Redeclare as a variable.
* timer.cc (timer_thread): Eliminate argument to gtod.usecs().
(timer_tracker::gettime): Ditto.
(timer_tracker::settime): Ditto.
* times.cc (gettimeofday): Ditto.
(hires_ms::began_period): Delete declaration.
(hires_us::prime): Remove debugging.
(hires_ms::prime): Make void.  Eliminate period stuff.
(hires_ms::usecs): Eliminate argument to gtod.usecs().
(hires_ms::resolution): New function.
(clock_getres): Ditto.
(clock_setres): Ditto.
* version.h: Bump API version to 143.
* include/cygwin/time.h: New file.
This commit is contained in:
Christopher Faylor
2005-11-11 16:42:15 +00:00
parent 37bd11ed12
commit ecb908f699
8 changed files with 145 additions and 58 deletions

View File

@@ -0,0 +1,25 @@
/* time.h
Copyright 2005 Red Hat Inc.
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#ifndef _CYGWIN_TIME_H
#define _CYGWIN_TIME_H
#include <sys/select.h>
#ifdef __cplusplus
extern "C"
{
#endif
int clock_setres (clockid_t, struct timespec *);
#ifdef __cplusplus
}
#endif
#endif /* _CYGWIN_TIME_H */

View File

@@ -280,12 +280,13 @@ details. */
140: Export mlock, munlock.
141: Export futimes, lutimes.
142: Export memmem
143: Export clock_getres, clock_setres
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
#define CYGWIN_VERSION_API_MINOR 142
#define CYGWIN_VERSION_API_MINOR 143
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible