#
3d0c28f3 |
| 25-Oct-2022 |
millert <millert@openbsd.org> |
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
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@
show more ...
|
#
6151004e |
| 30-Oct-2018 |
guenther <guenther@openbsd.org> |
Add C11's timespec_get(3); minor bump for libc.
Tweaked diff from brad@ manpage tweaks florian@ and jmc@ ok deraadt@ millert@
|
#
3a628b46 |
| 05-Sep-2017 |
schwarze <schwarze@openbsd.org> |
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
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.
show more ...
|
#
6ecde746 |
| 09-Sep-2016 |
millert <millert@openbsd.org> |
Move the 10 (!) defintions of NULL to their own mini header file and update the NULL definition for C++11. OK deraadt@ guenther@ kettenis@
|
#
c9da469a |
| 07-Apr-2015 |
millert <millert@openbsd.org> |
Remove obsolete timezone() function. Add timezone and daylight symbols for XSI compatibility.
|
#
78badebc |
| 17-Mar-2015 |
millert <millert@openbsd.org> |
Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@
|
#
f7055df5 |
| 15-Mar-2015 |
millert <millert@openbsd.org> |
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
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@
show more ...
|
#
7b36c281 |
| 17-Jun-2013 |
guenther <guenther@openbsd.org> |
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 he
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@
show more ...
|
#
1ec1251e |
| 02-Apr-2013 |
guenther <guenther@openbsd.org> |
Pull in <sys/_types.h> instead of <machine/_types.h> in prep for the future
ok deraadt@
|
#
2c79e7cc |
| 01-Oct-2012 |
guenther <guenther@openbsd.org> |
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@
|
#
329a58af |
| 10-May-2012 |
kettenis <kettenis@openbsd.org> |
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
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@
show more ...
|
#
c7280c70 |
| 07-May-2012 |
kettenis <kettenis@openbsd.org> |
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
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@
show more ...
|
#
c4ff7bee |
| 03-Jul-2011 |
jsg <jsg@openbsd.org> |
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@
|
#
0c2a5da7 |
| 06-Apr-2011 |
miod <miod@openbsd.org> |
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.
|
#
c916d948 |
| 06-Jan-2006 |
millert <millert@openbsd.org> |
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
|
#
52a0e603 |
| 13-Dec-2005 |
millert <millert@openbsd.org> |
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 deraad
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@
show more ...
|
#
89b95c1c |
| 01-Aug-2003 |
avsm <avsm@openbsd.org> |
add __bounded__ attributes for userland headers; enabled with -Wbounded ok deraadt@
|
#
3e87668a |
| 26-Jun-2003 |
avsm <avsm@openbsd.org> |
backout the __bounded__ attributes for a while; requested by deraadt@
|
#
585be00b |
| 26-Jun-2003 |
avsm <avsm@openbsd.org> |
Mark various standard library functions with the __bounded__ attribute. You must have an up-to-date gcc for this! deraadt@ ok
|
#
e33d3bd3 |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
8248c2b4 |
| 25-Oct-2002 |
millert <millert@openbsd.org> |
NULL is now 0L so it is the same size as a pointer. OK mickey@ and discussed with deraadt@
|
#
c72b5b24 |
| 16-Feb-2002 |
millert <millert@openbsd.org> |
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 don
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.
show more ...
|
#
57441323 |
| 09-Mar-2001 |
millert <millert@openbsd.org> |
Move nanosleep() proto to from sys/time.h to time.h where it belongs. Problem noted by Jean-Baptiste Marchand
|
#
f0348535 |
| 22-Aug-2000 |
millert <millert@openbsd.org> |
Prototype timelocal(), timegm(), and timeoff() in the non-ANSI, non-POSIX section.
|
#
ad7ac144 |
| 17-Sep-1999 |
espie <espie@openbsd.org> |
Be thorough about NULL as __null for C++.
|