* libc: Add subdirectory.
* Makefile.in (VPATH): Add libc subdir. (DLL_OFILES): Add strptime.o and timelocal.o. * cygwin.din: Export timelocal and timegm. * localtime.cc: Define STD_INSPIRED unconditionally. * include/cygwin/time.h (timelocal): Add declaration. (timegm): Ditto. * include/cygwin/version.h: Bump API minor version. * libc/strptime.cc: New file. * libc/timelocal.cc: New file. * libc/timelocal.h: New file.
This commit is contained in:
@@ -19,6 +19,10 @@ int nanosleep (const struct timespec *, struct timespec *);
|
||||
int clock_setres (clockid_t, struct timespec *);
|
||||
int clock_getres (clockid_t, struct timespec *);
|
||||
|
||||
/* GNU extensions. */
|
||||
time_t timelocal (struct tm *);
|
||||
time_t timegm (struct tm *);
|
||||
|
||||
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
|
||||
|
||||
#ifndef __STRICT_ANSI__
|
||||
|
@@ -281,12 +281,13 @@ details. */
|
||||
141: Export futimes, lutimes.
|
||||
142: Export memmem
|
||||
143: Export clock_getres, clock_setres
|
||||
144: Export timelocal, timegm.
|
||||
*/
|
||||
|
||||
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
|
||||
|
||||
#define CYGWIN_VERSION_API_MAJOR 0
|
||||
#define CYGWIN_VERSION_API_MINOR 143
|
||||
#define CYGWIN_VERSION_API_MINOR 144
|
||||
|
||||
/* There is also a compatibity version number associated with the
|
||||
shared memory regions. It is incremented when incompatible
|
||||
|
Reference in New Issue
Block a user