summaryrefslogtreecommitdiffstats
path: root/include/time.h
Commit message (Collapse)AuthorAgeFilesLines
* Breath deep and take __P out of the system include files.imp2002-03-231-31/+31
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* I've been meaning to do this for a while. Add an underscore to thedillon2002-01-191-8/+8
| | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee.
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().dillon2001-10-281-0/+4
|
* Add routines to convert time_t to/from fixed-bit fields. These routinesdillon2001-10-281-0/+7
| | | | | | | | | | | | | | | | | | | serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week
* It's not CUT (the french would accept that back in 1879) and TUC wasn'tphk2001-03-311-1/+5
| | | | | | | palatable to the rest of the world. UTC was the compromise. PR: 26238 Submitted by: Ying-Chieh Liao <ijliao@terry.dragon2.net>
* Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.dt1999-01-041-7/+4
|
* Change return type of strptime from const char* to char*.dt1998-09-121-1/+1
| | | | const char* was wrong and nonstandard.
* Add extern declaration for `tzname[]' to make this header comply betterjkoshy1998-08-211-0/+4
| | | | | | to POSIX90. 2-rounds-of-review-by: bde
* ctime_r and asctime_r are not implemented.phk1998-04-191-2/+2
| | | | | | | | prototypes in time.h do not match POSIX. PR: 6345 Reviewed by: phk Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B anddufault1998-03-281-1/+7
| | | | | | | | | | | | | | | | _KPOSIX_PRIORITY_SCHEDULING options to work. Changes: Change all "posix4" to "p1003_1b". Misnamed files are left as "posix4" until I'm told if I can simply delete them and add new ones; Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux; Add man pages for _POSIX_PRIORITY_SCHEDULING system calls; Add options to LINT; Minor fixes to P1003_1B code during testing.
* Import strptime(3) into libc. We've got permission by Kevin Ruddy tojoerg1997-08-091-0/+1
| | | | | | | | 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].
* struct timespec needs to be useable with just <time.h>, but needs to notpeter1997-05-131-7/+27
| | | | | | 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).
* Add clockid_t definition like in sys/types.h to allow time.hache1997-05-131-0/+5
| | | | to be included without sys/types.h, it fixes broken groff compilation
* Oops, move clock_*() and nanosleep() to time.hpeter1997-05-121-0/+4
| | | | Submitted by: Peter Dufault <dufault@hda.com>
* Change prototypes for gmtime_r() and localtime_r() in accordance withhsu1996-11-111-3/+3
| | | | IEEE pthreads specification.
* Reviewed by: julian and (hsu?)julian1996-01-221-0/+7
| | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* Define CLK_TCK right.bde1995-02-081-1/+1
|
* Define CLOCKS_PER_SEC.bde1995-02-031-2/+11
| | | | | | | | 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.
* Declare useful functions (timelocal() and timegm())ache1994-12-261-0/+2
|
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+104
OpenPOWER on IntegriCloud