History log of /dragonfly/include/time.h (Results 1 – 25 of 40)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0
# 86ccdacb 17-Jan-2021 Aaron LI <aly@aaronly.me>

Implement clock_nanosleep(2) system call

* Extend the nanosleep1() function in kern_time.c to support the
clock_nanosleep(2) system call. Add {kern,sys}_clock_nanosleep()
functions and update k

Implement clock_nanosleep(2) system call

* Extend the nanosleep1() function in kern_time.c to support the
clock_nanosleep(2) system call. Add {kern,sys}_clock_nanosleep()
functions and update kern_nanosleep() accordingly.

* Add clock_nanosleep() syscall to syscalls.master and regenerate
syscall-related files.

* Update libc symbols with the new syscall.

* Add clock_nanosleep() warpper in libthread_xu.

* Update nanosleep.2 man page to describe clock_nanosleep().

* Update <time.h> and bump __DragonFly_version.

This work is loosely based on the FreeBSD implementation:
https://reviews.freebsd.org/rS315526

This clock_nanosleep(2) syscall passed all tests in the Open POSIX Test
Suite [0]:

conformance/interfaces/clock_nanosleep/1-1: execution: PASS
conformance/interfaces/clock_nanosleep/1-2: execution: PASS
conformance/interfaces/clock_nanosleep/1-3: execution: PASS
conformance/interfaces/clock_nanosleep/1-4: execution: PASS
conformance/interfaces/clock_nanosleep/1-5: execution: PASS
conformance/interfaces/clock_nanosleep/2-1: execution: PASS
conformance/interfaces/clock_nanosleep/2-2: execution: PASS
conformance/interfaces/clock_nanosleep/2-3: execution: PASS
conformance/interfaces/clock_nanosleep/3-1: execution: PASS
conformance/interfaces/clock_nanosleep/4-1: execution: PASS
conformance/interfaces/clock_nanosleep/5-1: execution: PASS
conformance/interfaces/clock_nanosleep/6-1: execution: PASS
conformance/interfaces/clock_nanosleep/9-1: execution: PASS
conformance/interfaces/clock_nanosleep/8-1: execution: PASS
conformance/interfaces/clock_nanosleep/10-1: execution: PASS
conformance/interfaces/clock_nanosleep/11-1: execution: PASS
conformance/interfaces/clock_nanosleep/13-1: execution: PASS
conformance/interfaces/clock_nanosleep/15-1: execution: PASS

[0] Open POSIX Test Suite: http://posixtest.sourceforge.net/

Reviewed-by: swildner, dillon, tuxillo, zach

show more ...


Revision tags: v5.8.3, v5.8.2
# 8f9e6710 24-May-2020 Sascha Wildner <saw@online.de>

libc: Bring in getdate() from NetBSD for POSIX conformance.


# eaf1ce35 24-May-2020 Sascha Wildner <saw@online.de>

Revert "libc: Bring in getdate() from NetBSD for POSIX conformance."

This reverts commit 28bfdfe646cc75375bb9065f47aca011952469ef.

I need to work a bit more on this first.


# 28bfdfe6 24-May-2020 Sascha Wildner <saw@online.de>

libc: Bring in getdate() from NetBSD for POSIX conformance.


Revision tags: v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3
# ec755e18 05-Jan-2020 Sascha Wildner <saw@online.de>

<time.h>: Check strptime()'s format argument with __strftimelike.

As the manual page says, "all conversion specifications are identical
to those described in strftime(3)."


# b2ca4da5 27-Nov-2019 Sascha Wildner <saw@online.de>

<time.h>: Fix C++17 visibility of timespec_get().

While here, pull all related bits together under one check.

Reported-by: marino


# 9d4f17d1 10-Nov-2019 zrj <rimvydas.jasinskas@gmail.com>

Adjust headers for <machine/stdint.h> visibility.

This also reduces namespace pollution a bit. Include <machine/stdint.h>
where <stdint.h> is used too. External compiler under -ffreestanding
(_

Adjust headers for <machine/stdint.h> visibility.

This also reduces namespace pollution a bit. Include <machine/stdint.h>
where <stdint.h> is used too. External compiler under -ffreestanding
(__STDC_HOSTED__ == 0) will use their own <stdint.h> version and will
not include <machine/stdint.h>.

show more ...


Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2
# c6cc3d15 13-Apr-2019 Sascha Wildner <saw@online.de>

<time.h>: Provide time2posix(), posix2time() prototypes.

They have a manual page too. Also provide offtime() and timeoff()
prototypes.

Fixes some -Wmissing-prototypes warnings.


Revision tags: v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1
# f33ef0a8 29-Sep-2018 Sascha Wildner <saw@online.de>

Fix the __BSD_VISIBLE check in a few headers.

#if must be used, not #ifdef.


# f85b95dd 20-Sep-2018 Sascha Wildner <saw@online.de>

In several standard headers, harmonize checks for legacy defines etc.

When something goes away in a certain issue of the standard, always
check with < $standard, not <= $previous_standard. Also, uni

In several standard headers, harmonize checks for legacy defines etc.

When something goes away in a certain issue of the standard, always
check with < $standard, not <= $previous_standard. Also, uniformly
check for __XSI_VISIBLE or __POSIX_VISIBLE being > 0 in these cases.

While here, fix a small nit in <sys/wait.h>: wait3() was removed
from Issue 6, but the requirement to define the rusage structure was
removed from Issue 7.

show more ...


Revision tags: v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc
# d33005aa 15-Feb-2018 Sascha Wildner <saw@online.de>

Add missing restrict qualifiers in POSIX function definitions/declarations.

This creates no further -Wrestrict warnings with gcc80 in buildworld.


# c32cc5a0 19-Jan-2018 Sascha Wildner <saw@online.de>

Provide __{printf,scanf,strfmon,strftime}like() for builtin functions too.

We want our formats checked in -fno-builtin builds as well.


Revision tags: v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1
# 725edadf 26-Jul-2017 Sascha Wildner <saw@online.de>

libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().

* Adjust clock_gettime() and clock_getres() to accept values obtained
this way.

* Also set _POSIX_CPUTIME and _POSIX_THREAD

libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().

* Adjust clock_gettime() and clock_getres() to accept values obtained
this way.

* Also set _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME, although we should
really support values obtained by these functions in clock_settime()
too.

Based on and taken from FreeBSD's code.

Reviewed-by: sephe

show more ...


# 83c8b58d 16-Apr-2017 Sascha Wildner <saw@online.de>

<time.h>: For clarity, add prototypes (in #if 0) for missing functions.


Revision tags: v4.8.0
# dd8f8e17 22-Mar-2017 Sascha Wildner <saw@online.de>

<time.h>: Shuffle some prototypes around (no functional change).


Revision tags: v4.6.2, v4.9.0, v4.8.0rc
# 89393d93 01-Mar-2017 Sascha Wildner <saw@online.de>

Clean up the namespace in a number of standard headers.

* In most cases, instead of the full load of <sys/types.h>,
include <machine/stdint.h> which defines the __-types that
<monetary.h>, <pwd.

Clean up the namespace in a number of standard headers.

* In most cases, instead of the full load of <sys/types.h>,
include <machine/stdint.h> which defines the __-types that
<monetary.h>, <pwd.h>, <search.h>, <strings.h> and <wordexp.h>
only need.

* Additionally, extend the visibility of the size_t definition
and adjust WRDE_NOSYS's visibility because it was only in the
standard up to Issue 6.

* In <time.h>, include <sys/stdint.h> to get at __pid_t too.

* Likewise, include <sys/stdint.h> in <sys/wait.h> and provide
a definition of pid_t as required.

show more ...


# 4b68a649 01-Mar-2017 Sascha Wildner <saw@online.de>

Adjust whitespace in a couple of standard headers (no functional change).

In preparation for another round of namespace cleanup.


Revision tags: v4.6.1
# 94c1145b 07-Aug-2016 Sascha Wildner <saw@online.de>

<time.h>: Adjust the visibility of CLOCK_REALTIME and TIMER_ABSTIME.

Looks like they came in with IEEE Std 1003.1b-1993.

Helps building math/clblas with GCC.

Reported-by: zrj


Revision tags: v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2
# 65de5b12 03-Feb-2016 Sascha Wildner <saw@online.de>

<time.h>: CLOCKS_PER_SEC must be of type clock_t.

Note that its value violates the standards requirement that it be
1000000. See the STANDARDS section of clock(3)'s manual page for
further informati

<time.h>: CLOCKS_PER_SEC must be of type clock_t.

Note that its value violates the standards requirement that it be
1000000. See the STANDARDS section of clock(3)'s manual page for
further information.

show more ...


# af1b988d 03-Feb-2016 Sascha Wildner <saw@online.de>

<time.h>: struct timespec's definition has to be visible for C11.

See B.26 in the C11 standard.

Note that this is not in the N1548 committee draft.


# f6fab63a 02-Feb-2016 Sascha Wildner <saw@online.de>

<time.h>: C11 actually specifies that TIME_UTC be "greater than 0".

In-discussion-with: xenu


# 6219de94 29-Jan-2016 Tomasz Konojacki <me@xenu.pl>

libc - implement C11 function timespec_get()


Revision tags: v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0
# a8e68404 12-Nov-2013 Sascha Wildner <saw@online.de>

<time.h>: #if 0 some prototypes of syscalls which we don't (yet) have.

Came in with the "locale megapatch". Useless without implementation, but
leave them in #if 0 since (being standard) we want the

<time.h>: #if 0 some prototypes of syscalls which we don't (yet) have.

Came in with the "locale megapatch". Useless without implementation, but
leave them in #if 0 since (being standard) we want them.

show more ...


Revision tags: v3.7.1, v3.6.0rc, v3.7.0
# 0d5acd74 21-Sep-2013 John Marino <draco@marino.st>

locales, libconv: Sync with FreeBSD (extensive reach)

What started out as a relatively simply upgrade to libiconv finally
resulted in a simultaneous overhaul to locales, strings, and stdio.
All of t

locales, libconv: Sync with FreeBSD (extensive reach)

What started out as a relatively simply upgrade to libiconv finally
resulted in a simultaneous overhaul to locales, strings, and stdio.
All of these are interdependent and there is no way to upgrade them
individually or in steps.

These cases are similar to what happened with libm where significant
syncing came from NetBSD previously, rendering contributions from
FreeBSD difficult. Libiconv and locales (both ancient) are now in
sync with FreeBSD HEAD.

As several headers were signficantly updated and the mtree was updated
to accommodate the new include/xlocale directory, this commit will
require a full world build. It also may cause some dports to no longer
build due to prototype differences, but the dports will be adjusted.

The regexp library was not being used. It was removed from FreeBSD four
years ago. Since it required collate updates, I took the opportunity to
remove it completely by adding re_comp functionality to 4.3 compat
library like FreeBSD did.

__DragonFly_version has been bumped to 500300.

show more ...


Revision tags: v3.4.3, v3.4.2
# 70d9f510 21-May-2013 François Tigeot <ftigeot@wolfpond.org>

kernel: Add CLOCK_PROCESS_CPUTIME_ID (part 2)


12