Sortix
Sortix Download Manual Development Source Code News Blog More

os-test > basic > time

Legend

Outcomes
Good Good Missing optional Outside libc
Partial Extension Previous posix
Neutral None
Bad Compile error Incompatible Missing header Undeclared Undefined reference Unknown type

Good. A cell is good if the declaration is present in the header and can be linked with libc. This outcome means the test succeeded with the appropriate -D_POSIX_C_SOURCE=202405 or -D_XOPEN_SOURCE=800 feature macros and the standard libraries libc, libpthread, libm, librt, and libxnet.

Missing optional. A cell is missing_optional if the test could not be compiled, but the declaration is optional in POSIX and need not be provided.

Outside libc. A cell is outside_libc if the test could be compiled, but had to be linked with another standard library than the ones prescribed by POSIX: libc, libpthread, libm, librt, and libxnet. This may not conform to POSIX depending on the linking options provided by getconf(1)/confstr(3).

Extension. A cell is extension if the test could not be compiled with the _POSIX_C_SOURCE and _XOPEN_SOURCE feature macros, but it could instead be compiled with other system-specific feature macros that provide the entire API. This outcome means the system header feature macro logic does not support the latest POSIX.1-2024 standard and only receives partial credit. This outcome typically indicates a declaration new to POSIX.1-2024.

Previous posix. A cell is previous_posix if the test could not be compiled with the -D_POSIX_C_SOURCE=202405 or -D_XOPEN_SOURCE=800 feature macros from the POSIX.1-2024 standard, but the test could instead be compiled with the older -D_POSIX_C_SOURCE=200809L or -D_XOPEN_SOURCE=700 feature macros from the older POSIX.1-2008 standard. This outcome means the system header feature macro logic does not support the latest POSIX.1-2024 standard and only receives partial credit. In particular, the header did not check if the value was higher than the supported value, but instead hard-coded the supported values, and failed to be forward compatible with new standard versions.

None. A cell is none if there is no test data result for that operating system.

Compile error. A cell is compile_error if the test could not be compiled and the error message was not recognized as a more precise error test outcome.

Incompatible. A cell is incompatible if the declaration existed in the header, but had a signature that is incompatible with the standardized declaration. This outcome typically indicates a type error in the declaration. Addressing the issue may require an incompatible ABI change or special compatibility logic.

Missing header. A cell is missing_header if the header did not exist.

Undeclared. A cell is undeclared if the header did not contain the declaration.

Undefined reference. A cell is undefined if the test could be compiled, but could not be linked with the standard library.

Unknown type. A cell is unknown_type if the test could not be compiled and failed because a required type was not declared. In some cases, functions fail because the header omitted a required type for a function and instead declared the function in an alternate fashion with an incompatible alias for the type.

§. The § link on the left of each row links to that row.

time

aix
AIX 3 00F9C1964C00
dragonfly
DragonFly 6.4-RELEASE x86_64
freebsd
FreeBSD 14.3-RELEASE-p2 amd64
haiku
Haiku 1 x86_64
hurd
GNU 0.9 i686-AT386
linux
Linux 6.16.12+deb14+1-amd64 x86_64
macos
Darwin 24.6.0 arm64
managarm
Managarm 0.0.1-rolling x86_64
minix
Minix 3.4.0 i386
musl
Linux 6.12.54-0-lts x86_64
netbsd
NetBSD 10.1 amd64
omnios
SunOS 5.11 i86pc
openbsd
OpenBSD 7.7 amd64
redox
Redox 0.5.12 x86_64
solaris
SunOS 5.11 sun4v
sortix
Sortix 1.1.0-dev x86_64
§ clock aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: bad
clock: EINVAL
solaris: good
exit: 0
sortix: good
exit: 0
§ clock_getres aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: bad
relibc clock_getres(4, Some([Out: 0x7ffffffffdb0])): not implemented
clock_getres: ENOSYS
solaris: good
exit: 0
sortix: good
exit: 0
§ clock_gettime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ clock_nanosleep aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: undeclared managarm: none minix: undefined musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: undeclared redox: compile_error solaris: good
exit: 0
sortix: good
exit: 0
§ clock_settime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: bad
relibc clock_settime(4, 0x7ffffffffdb0): not implemented
clock_settime: ENOSYS
solaris: good
exit: 0
sortix: bad
clock_settime CLOCK_MONOTONIC did not fail
§ difftime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ gmtime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ gmtime_r aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ localtime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ localtime_r aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ mktime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ nanosleep aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ strftime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ strftime_l aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: undeclared managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: unknown_type solaris: good
exit: 0
sortix: good
exit: 0
§ time aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ timer_create aix: good
exit: 0
dragonfly: compile_error freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: unknown_type managarm: none minix: undefined musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: undeclared redox: good
exit: 0
solaris: bad
timer_create: EPERM
sortix: good
exit: 0
§ timer_delete aix: good
exit: 0
dragonfly: compile_error freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: unknown_type managarm: none minix: undefined musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: undeclared redox: good
exit: 0
solaris: bad
timer_create: EPERM
sortix: good
exit: 0
§ timer_getoverrun aix: good
exit: 0
dragonfly: compile_error freebsd: good
exit: 0
haiku: bad
timer_getoverrun() did not reset (3)
hurd: bad
timer_getoverrun() was less than three (0)
linux: good
exit: 0
macos: unknown_type managarm: none minix: undefined musl: good
exit: 0
netbsd: bad
timer_getoverrun() was less than three (0)
omnios: good
exit: 0
openbsd: undeclared redox: compile_error solaris: bad
timer_create: EPERM
sortix: bad
timer_getoverrun() was less than three (0)
§ timer_gettime aix: good
exit: 0
dragonfly: compile_error freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: unknown_type managarm: none minix: undefined musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: undeclared redox: good
exit: 0
solaris: bad
timer_create: EPERM
sortix: good
exit: 0
§ timer_settime aix: good
exit: 0
dragonfly: compile_error freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: unknown_type managarm: none minix: undefined musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: undeclared redox: good
exit: 0
solaris: bad
timer_create: EPERM
sortix: good
exit: 0
§ timespec_get aix: undeclared dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: good
exit: 0
minix: compile_error musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ tzset aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
Optional: CPT
Process CPU-Time Clocks
§ clock_getcpuclockid aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: undeclared managarm: none minix: compile_error musl: good
exit: 0
netbsd: good
exit: 0
omnios: compile_error openbsd: good
exit: 0
redox: compile_error solaris: good
exit: 0
sortix: compile_error
Optional: OB
Obsolescent
§ asctime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
§ ctime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
Optional: XSI
X/Open System Interfaces
§ getdate aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: undeclared haiku: compile_error hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: undeclared redox: compile_error solaris: good
exit: 0
sortix: compile_error
§ strptime aix: good
exit: 0
dragonfly: good
exit: 0
freebsd: good
exit: 0
haiku: good
exit: 0
hurd: good
exit: 0
linux: good
exit: 0
macos: good
exit: 0
managarm: none minix: good
exit: 0
musl: good
exit: 0
netbsd: good
exit: 0
omnios: good
exit: 0
openbsd: good
exit: 0
redox: good
exit: 0
solaris: good
exit: 0
sortix: good
exit: 0
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org