Commit Graph

10 Commits

Author SHA1 Message Date
Joerg Wunsch
37486f035f Import strptime(3) into libc. We've got permission by Kevin Ruddy to
modify the original `no modifications' copyright message, and i've
included his mail into the source file.

The common localization functions between strptime(3) and strftime(3)
have been broken out into timelocal.[ch].
1997-08-09 15:43:59 +00:00
Peter Wemm
f154fbdaa1 struct timespec needs to be useable with just <time.h>, but needs to not
conflict with the kernel visible one.  Make the new stuff not visible if
_ANSI_SOURCE or _POSIX_SOURCE is defined (!) because the new things are
not part of the base 1003.1-1990 standard (or ansi).
1997-05-13 09:33:24 +00:00
Andrey A. Chernov
9e0eb33e2f Add clockid_t definition like in sys/types.h to allow time.h
to be included without sys/types.h, it fixes broken groff compilation
1997-05-13 09:25:03 +00:00
Peter Wemm
2c97335b81 Oops, move clock_*() and nanosleep() to time.h
Submitted by: Peter Dufault <dufault@hda.com>
1997-05-12 12:58:40 +00:00
Jeffrey Hsu
b0e998dc26 Change prototypes for gmtime_r() and localtime_r() in accordance with
IEEE pthreads specification.
1996-11-11 09:22:13 +00:00
Julian Elischer
f70177e76e Reviewed by: julian and (hsu?)
Submitted by:	 John Birrel(L?)

changes for threadsafe operations
1996-01-22 00:02:33 +00:00
Bruce Evans
02a7dd7637 Define CLK_TCK right. 1995-02-08 18:37:14 +00:00
Bruce Evans
339b0f68f2 Define CLOCKS_PER_SEC.
Define CLK_TCK only if _ANSI_SOURCE is not defined.

Don't include <machine/limits.h> to get the definition of CLK_TCK.
CLK_TCK should never have been defined there, and the inclusion
polluted the namespace.
1995-02-03 21:47:48 +00:00
Andrey A. Chernov
8c2f5ad758 Declare useful functions (timelocal() and timegm()) 1994-12-26 10:19:41 +00:00
Rodney W. Grimes
59deaec541 BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00