7b797ba27a
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 |
||
---|---|---|
.. | ||
arpa | ||
gssapi | ||
protocols | ||
rpc | ||
rpcsvc | ||
xlocale | ||
_ctype.h | ||
a.out.h | ||
ar.h | ||
assert.h | ||
bitstring.h | ||
complex.h | ||
cpio.h | ||
ctype.h | ||
db.h | ||
dirent.h | ||
dlfcn.h | ||
elf-hints.h | ||
elf.h | ||
err.h | ||
fmtmsg.h | ||
fnmatch.h | ||
fstab.h | ||
fts.h | ||
ftw.h | ||
getopt.h | ||
glob.h | ||
grp.h | ||
gssapi.h | ||
hesiod.h | ||
iconv.h | ||
ieeefp.h | ||
ifaddrs.h | ||
inttypes.h | ||
iso646.h | ||
kenv.h | ||
langinfo.h | ||
libgen.h | ||
limits.h | ||
link.h | ||
locale.h | ||
Makefile | ||
Makefile.depend | ||
malloc_np.h | ||
malloc.h | ||
memory.h | ||
mk-osreldate.sh | ||
monetary.h | ||
mpool.h | ||
mqueue.h | ||
ndbm.h | ||
netconfig.h | ||
netdb.h | ||
nl_types.h | ||
nlist.h | ||
nss.h | ||
nsswitch.h | ||
paths.h | ||
printf.h | ||
proc_service.h | ||
pthread_np.h | ||
pthread.h | ||
pwd.h | ||
ranlib.h | ||
readpassphrase.h | ||
regex.h | ||
res_update.h | ||
resolv.h | ||
runetype.h | ||
search.h | ||
semaphore.h | ||
setjmp.h | ||
signal.h | ||
spawn.h | ||
stab.h | ||
stdalign.h | ||
stdbool.h | ||
stddef.h | ||
stdio.h | ||
stdlib.h | ||
stdnoreturn.h | ||
string.h | ||
stringlist.h | ||
strings.h | ||
sysexits.h | ||
tar.h | ||
termios.h | ||
tgmath.h | ||
time.h | ||
timeconv.h | ||
timers.h | ||
ttyent.h | ||
uchar.h | ||
ulimit.h | ||
unistd.h | ||
unwind.h | ||
utime.h | ||
utmpx.h | ||
uuid.h | ||
varargs.h | ||
wchar.h | ||
wctype.h | ||
wordexp.h | ||
xlocale.h |