/usr/include/freebsd/sys/time.h is in freebsd-glue 0.2.20.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include_next <sys/time.h>
# if defined(__FreeBSD_kernel__) && !defined(__FREEBSD_GLUE_USE_EMBEDDED_HEADERS)
# include <sys/kern/time.h>
# else
#ifndef _SYS_TIME_H_
# define _SYS_TIME_H_
/* On FreeBSD, <sys/time.h> is expected to CLOCK_MONOTONIC, etc,
which on Glibc are defined in <bits/time.h>. Glibc's <sys/time.h>
doesn't include <bits/time.h> in full mode, but Glibc's <time.h>
does. */
# include <time.h>
/* FreeBSD code expects that this file includes... */
# include <sys/types.h>
/* FreeBSD-specific clocks. Attempt to map them to portable macros (but
make sure the calls fail when this mapping would not be reliable) */
#define CLOCK_UPTIME (-1)
#define CLOCK_UPTIME_PRECISE (-1)
#define CLOCK_UPTIME_FAST (-1)
#define CLOCK_REALTIME_PRECISE CLOCK_REALTIME
#define CLOCK_REALTIME_FAST CLOCK_REALTIME_COARSE
#define CLOCK_MONOTONIC_PRECISE CLOCK_MONOTONIC
#define CLOCK_MONOTONIC_FAST CLOCK_MONOTONIC_COARSE
#define CLOCK_SECOND (-1)
#endif /* _SYS_TIME_H_ */
#endif /* __FreeBSD_kernel__ */
|