* common.din (stime): Export.
* times.cc (stime): New function. * include/cygwin/time.h (stime): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
This commit is contained in:
parent
06fb98f4b5
commit
d6aa3abb4f
|
@ -1,3 +1,10 @@
|
||||||
|
2014-10-22 Yaakov Selkowitz <yselkowi@redhat.com>
|
||||||
|
|
||||||
|
* common.din (stime): Export.
|
||||||
|
* times.cc (stime): New function.
|
||||||
|
* include/cygwin/time.h (stime): Declare.
|
||||||
|
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
|
||||||
|
|
||||||
2014-10-21 Corinna Vinschen <corinna@vinschen.de>
|
2014-10-21 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* sec_auth.cc (get_user_groups): Remove experimental exception handler
|
* sec_auth.cc (get_user_groups): Remove experimental exception handler
|
||||||
|
|
|
@ -1109,6 +1109,7 @@ sscanf SIGFE
|
||||||
stat SIGFE
|
stat SIGFE
|
||||||
statfs SIGFE
|
statfs SIGFE
|
||||||
statvfs SIGFE
|
statvfs SIGFE
|
||||||
|
stime SIGFE
|
||||||
stpcpy NOSIGFE
|
stpcpy NOSIGFE
|
||||||
stpncpy NOSIGFE
|
stpncpy NOSIGFE
|
||||||
strcasecmp NOSIGFE
|
strcasecmp NOSIGFE
|
||||||
|
|
|
@ -26,6 +26,8 @@ time_t __cdecl timegm (struct tm *);
|
||||||
|
|
||||||
#ifndef __STRICT_ANSI__
|
#ifndef __STRICT_ANSI__
|
||||||
|
|
||||||
|
extern int stime (const time_t *);
|
||||||
|
|
||||||
extern int daylight __asm__ (_SYMSTR (_daylight));
|
extern int daylight __asm__ (_SYMSTR (_daylight));
|
||||||
|
|
||||||
#ifndef __timezonefunc__
|
#ifndef __timezonefunc__
|
||||||
|
|
|
@ -454,12 +454,13 @@ details. */
|
||||||
276: Export ffsl, ffsll.
|
276: Export ffsl, ffsll.
|
||||||
277: Add setsockopt(SO_PEERCRED).
|
277: Add setsockopt(SO_PEERCRED).
|
||||||
278: Add quotactl.
|
278: Add quotactl.
|
||||||
|
279: Export stime.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
|
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
|
||||||
|
|
||||||
#define CYGWIN_VERSION_API_MAJOR 0
|
#define CYGWIN_VERSION_API_MAJOR 0
|
||||||
#define CYGWIN_VERSION_API_MINOR 278
|
#define CYGWIN_VERSION_API_MINOR 279
|
||||||
|
|
||||||
/* There is also a compatibity version number associated with the
|
/* There is also a compatibity version number associated with the
|
||||||
shared memory regions. It is incremented when incompatible
|
shared memory regions. It is incremented when incompatible
|
||||||
|
|
|
@ -24,6 +24,8 @@ What's new:
|
||||||
|
|
||||||
- New APIs: ffsl, ffsll (glibc extensions).
|
- New APIs: ffsl, ffsll (glibc extensions).
|
||||||
|
|
||||||
|
- New API: stime (SVr4).
|
||||||
|
|
||||||
|
|
||||||
What changed:
|
What changed:
|
||||||
-------------
|
-------------
|
||||||
|
|
|
@ -139,6 +139,14 @@ settimeofday (const struct timeval *tv, const struct timezone *tz)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* stime: SVr4 */
|
||||||
|
extern "C" int
|
||||||
|
stime (const time_t *t)
|
||||||
|
{
|
||||||
|
struct timeval tv = { *t, 0 };
|
||||||
|
return settimeofday(&tv, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/* timezone: standards? */
|
/* timezone: standards? */
|
||||||
extern "C" char *
|
extern "C" char *
|
||||||
timezone (void)
|
timezone (void)
|
||||||
|
|
Loading…
Reference in New Issue