opnsense-src/sys
Warner Losh d7535fb3e3 time.h: reduce CLOCK_ namespace pollution, move to _clock_id.h
Attempt to comply with the strict namespace pollution requirements of
_POSIX_C_SOURCE. Add guards to limit visitbility of CLOCK_ and TIMER_
defines as appropriate. Only define the CLOCK_ variables relevant to the
specific standards. Move all the sharing to sys/_clock_id.h and make
time.h and sys/time.h both include that rather than copy due to the
now large number of clocks and compat defines.

Please note: The old time.h previously used these newer dates:
	CLOCK_REALTIME			199506
	CLOCK_MONOTONIC			200112
	CLOCK_THREAD_CPUTIME_ID		200112
	CLOCK_PROCESS_CPUTIME_ID	200112

but glibc defines all of these for 199309. glibc uses this date for all
these values, however, only CLOCK_REALTIME was in IEEE 1003.1b. Add a
comment about this to document it. A large number of programs and
libraries assume that these will be defined for _POSIX_C_SOURCE =
199309.

In addition, leak CLOCK_UPTIME_FAST for the pocl package until it can be
updated to use a simple CLOCK_MONOTONIC.

Reviewed by:		kib
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D31056

(cherry picked from commit 7b797ba27a)
2021-09-12 09:56:16 -06:00
..
amd64 Correct "Fondation" typo (missing "u") 2021-09-04 01:26:23 +08:00
arm Revert "arm: Bump KSTACK_PAGES default to match i386/amd64" 2021-09-02 07:56:25 -07:00
arm64 pmap: Micro-optimize pmap_remove_pages() on amd64 and arm64 2021-09-01 09:29:01 -04:00
bsm
cam cam(4): Fix quick unplug/replug for SCSI. 2021-09-03 23:25:24 -04:00
cddl
compat linuxkpi: remove global atomic counter of the task allocations 2021-08-03 12:56:02 +03:00
conf fu740_pci_dw: Add SiFive FU740 PCIe controller driver 2021-09-07 13:07:31 +01:00
contrib routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
crypto crypto(4): Fix a few typos in camellia.c 2021-09-07 09:23:33 +02:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev wsp(4): Add evdev support. 2021-09-08 03:01:07 +03:00
dts arm: allwinner: dtb: Add overlays to disable SD/MMC node 2021-07-22 19:29:21 +02:00
fs tmpfs: Move partial page invalidation to a separate helper 2021-09-04 01:21:10 +08:00
gdb
geom geom_disk: use a preallocated geom_event for disk destruction. 2021-09-12 09:56:14 -06:00
gnu
i386 Style 2021-09-02 03:52:24 +03:00
isa
kern genoffset: simplify and rewrite in sh 2021-09-12 09:56:14 -06:00
kgssapi
libkern Switch to an ifunc in the kernel for crc32c 2021-08-30 12:22:21 +01:00
mips Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
modules wsp(4): Add evdev support. 2021-09-08 03:01:07 +03:00
net pf: Add counters for syncookies 2021-09-08 09:28:14 +02:00
net80211 net80211/LinuxKPI: add more radiotap definitions 2021-07-18 00:35:03 +00:00
netgraph routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
netinet sctp: Implement sctp_inpcb_bind_locked() 2021-09-08 08:41:16 -04:00
netinet6 lltable: fix crash introduced in c541bd368f. 2021-09-07 21:02:58 +00:00
netipsec netipsec/key.c: Use ANSI C definition for key_random() 2021-08-13 12:34:42 +03:00
netpfil pf: ensure states passed to pf_free_state() are always unlinked 2021-09-10 14:45:50 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
opencrypto
powerpc Add pmap_vm_page_alloc_check() 2021-08-24 02:21:13 +03:00
riscv sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-09-07 13:08:20 +01:00
rpc Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
security mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit 2021-07-05 11:32:14 +00:00
sys time.h: reduce CLOCK_ namespace pollution, move to _clock_id.h 2021-09-12 09:56:16 -06:00
teken
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools
ufs ffs_update(): Do not assume that EBUSY can only come LK_NOWAIT trylock 2021-09-07 03:39:32 +03:00
vm Add pmap_vm_page_alloc_check() 2021-08-24 02:21:13 +03:00
x86 xen: Fix warning by adding KERNBASE to modlist_paddr before casting 2021-09-02 23:53:18 +02:00
xdr
xen
Makefile