OpenBSD CVS

CVS log for src/include/time.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Tue Oct 25 16:30:30 2022 UTC (18 months, 3 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.31: +2 -15 lines
Diff to previous 1.31 (colored)

Move CLOCKS_PER_SEC to sys/_time.h so the kernel has access to it.
This will be used in waitid(2) to set si_utime and si_stime.
The definition of struct timespec also moves from time.h to sys/_time.h
for struct itimerspec.  OK kettenis@

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 30 16:28:42 2018 UTC (5 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.30: +9 -2 lines
Diff to previous 1.30 (colored)

Add C11's timespec_get(3); minor bump for libc.

Tweaked diff from brad@
manpage tweaks florian@ and jmc@
ok deraadt@ millert@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 5 03:16:13 2017 UTC (6 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.29: +14 -1 lines
Diff to previous 1.29 (colored)

New POSIX xlocale implementation written from scratch.
Complete in the sense that all POSIX *locale(3) and *_l(3) functions
are included, but in OpenBSD, we of course only really care about
LC_CTYPE and we only support ASCII and UTF-8.

With important help from kettenis@, guenther@, and jca@.
Repeated testing in ports bulk builds by naddy@.
Additional testing by jca@, sebastia@, dcoppa@, and others.
OK kettenis@ dcoppa@, and guenther@ on an earlier version.
Riding guenther@'s libc/librthread major bump.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 9 18:12:37 2016 UTC (7 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.28: +2 -11 lines
Diff to previous 1.28 (colored)

Move the 10 (!) defintions of NULL to their own mini header file and
update the NULL definition for C++11.  OK deraadt@ guenther@ kettenis@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 7 01:47:04 2015 UTC (9 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored)

Remove obsolete timezone() function.
Add timezone and daylight symbols for XSI compatibility.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Mar 17 19:31:30 2015 UTC (9 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.26: +1 -6 lines
Diff to previous 1.26 (colored)

Eliminate use of TM_YEAR_BASE.  OK guenther@ deraadt@ miod@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 15 00:41:27 2015 UTC (9 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.25: +6 -1 lines
Diff to previous 1.25 (colored)

tzfile.h is an internal header that should never have been installed.
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time.  This makes the
tree safe for /usr/include/tzfile.h removal.  The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree.  Actual removal of tzfile.h is pending
a ports build.  Based on a diff from deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 17 19:11:54 2013 UTC (10 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.24: +12 -1 lines
Diff to previous 1.24 (colored)

Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,
including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and
{clock,pthread}_getcpuclockid() functions.

Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@
ok matthew@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 2 05:16:14 2013 UTC (11 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Pull in <sys/_types.h> instead of <machine/_types.h> in prep for the future

ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 1 00:21:20 2012 UTC (11 years, 7 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.22: +8 -6 lines
Diff to previous 1.22 (colored)

More compliance fixes: hiding non-standard stuff behind __BSD_VISIBLE,
making files stand-alone, some __restrict additions.

tweaks kettenis@; ports testing and fixes landry@ and jasper@
ok millert@

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 10 19:13:12 2012 UTC (12 years ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.21: +11 -5 lines
Diff to previous 1.21 (colored)

Recongnize that:

* strptime(3) was introduced in XPG 4.0
* clock_gettime(3) and friends were introduced in 1003.1b-1993
* asctime_r(3) and friends were introduced in 1003.1c-1995

and conditionally provide prototypes and associated types accordingly.
This makes our <time.h> standards compliant except for some functions that are
still missing.

ok guenther@

Revision 1.21 / (download) - annotate - [select for diffs], Mon May 7 22:34:00 2012 UTC (12 years ago) by kettenis
Branch: MAIN
Changes since 1.20: +21 -2 lines
Diff to previous 1.20 (colored)

Once more the people behind POSIX didn't think and put clock_gettime(2) and
friends in <time.h>.  The kernel needs access to the associated #defines, but
can't get them from <time.h>, so introduce a new header <sys/_time.h> and
include that from <time.h> for userland and <sys/time.h> for the kernel.

ok matthew@, guenther@, millert@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 3 18:51:01 2011 UTC (12 years, 10 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

As pointed out by Richard Guenther our definition
of NULL was incorrect for c++ compilers that aren't
gcc (or pretend to be gcc like clang).

ok miod@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 6 11:39:42 2011 UTC (13 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Define NULL as a void * instead of a long integer, as required by Single Unix.
Kernel and bootblocks still use the old 0L value until all the NULL abuses
in the code are fixed.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 6 18:53:04 2006 UTC (18 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.17: +11 -11 lines
Diff to previous 1.17 (colored)

Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:22 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.16: +23 -9 lines
Diff to previous 1.16 (colored)

First step in include files overhaul.  Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE.  Also fix several namespace
pollution issues, including the byte order defines.  OK deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 1 17:38:33 2003 UTC (20 years, 9 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.15: +7 -4 lines
Diff to previous 1.15 (colored)

add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jun 26 19:34:17 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.14: +3 -6 lines
Diff to previous 1.14 (colored)

backout the __bounded__ attributes for a while; requested by deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 26 18:35:13 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.13: +7 -4 lines
Diff to previous 1.13 (colored)

Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 2 19:34:12 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.12: +2 -6 lines
Diff to previous 1.12 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 25 21:55:28 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

NULL is now 0L so it is the same size as a pointer.
OK mickey@ and discussed with deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:17 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.10: +22 -22 lines
Diff to previous 1.10 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 9 02:18:00 2001 UTC (23 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

Move nanosleep() proto to from sys/time.h to time.h where it belongs.
Problem noted by Jean-Baptiste Marchand

Revision 1.9 / (download) - annotate - [select for diffs], Tue Aug 22 13:59:44 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

Prototype timelocal(), timegm(), and timeoff() in the non-ANSI, non-POSIX
section.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 17 13:13:46 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Be thorough about NULL as __null for C++.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 11 22:47:48 1999 UTC (24 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.6: +5 -1 lines
Diff to previous 1.6 (colored)

Define NULL to be __null for C++: better quality of implementation.
__null is a magic constant of integral type that converts to a null pointer
as should be, but warns for ambiguity when used to resolved an overload
between an integral type and a pointer type.

Revision 1.6 / (download) - annotate - [select for diffs], Fri May 14 23:18:54 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

use UTC when abbreviating Coordinated Universal Time, not CUT

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 10 02:43:10 1999 UTC (25 years, 2 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Daylight Saving Time, not savings

Revision 1.4 / (download) - annotate - [select for diffs], Fri Nov 20 11:18:26 1998 UTC (25 years, 6 months ago) by d
Branch: MAIN
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
  (more md stuff is needed for other libc/arch/*)
  (setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 8 18:50:05 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

strptime() proto; Andreas.Gunnarsson@emw.ericsson.se

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 21 10:45:57 1997 UTC (26 years, 8 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now.  Added openBSD tags.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:41:14 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:41:14 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.