summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys/timex.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-09 22:52:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-10 09:08:23 +0200
commite599318e912d8836c59d8b5202e3e31a6b8dcae9 (patch)
tree1172b8b830a1c3236e45c834c2b80e01325ea144 /freebsd/sys/sys/timex.h
parentMove files to match FreeBSD layout (diff)
downloadrtems-libbsd-e599318e912d8836c59d8b5202e3e31a6b8dcae9.tar.bz2
Update files to match FreeBSD layout
Add compatibility with Newlib header files. Some FreeBSD header files are mapped by the translation script: o rtems/bsd/sys/_types.h o rtems/bsd/sys/errno.h o rtems/bsd/sys/lock.h o rtems/bsd/sys/param.h o rtems/bsd/sys/resource.h o rtems/bsd/sys/time.h o rtems/bsd/sys/timespec.h o rtems/bsd/sys/types.h o rtems/bsd/sys/unistd.h It is now possible to include <sys/socket.h> directly for example. Generate one Makefile which builds everything including tests.
Diffstat (limited to 'freebsd/sys/sys/timex.h')
-rw-r--r--freebsd/sys/sys/timex.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/freebsd/sys/sys/timex.h b/freebsd/sys/sys/timex.h
index 838a0e05..c34b5892 100644
--- a/freebsd/sys/sys/timex.h
+++ b/freebsd/sys/sys/timex.h
@@ -65,7 +65,7 @@
* ntp_gettime - NTP user application interface
*
* SYNOPSIS
- * #include <freebsd/sys/timex.h>
+ * #include <sys/timex.h>
*
* int ntp_gettime(struct ntptimeval *ntv);
*
@@ -80,8 +80,8 @@
* ntp_adjtime - NTP daemon application interface
*
* SYNOPSIS
- * #include <freebsd/sys/timex.h>
- * #include <freebsd/sys/syscall.h>
+ * #include <sys/timex.h>
+ * #include <sys/syscall.h>
*
* int syscall(SYS_ntp_adjtime, tptr);
* int SYS_ntp_adjtime;
@@ -93,13 +93,13 @@
* STA_NANO bit in the status word. See the description below for
* further information.
*/
-#ifndef _SYS_TIMEX_HH_
-#define _SYS_TIMEX_HH_ 1
+#ifndef _SYS_TIMEX_H_
+#define _SYS_TIMEX_H_ 1
#define NTP_API 4 /* NTP API version */
#ifndef __rtems__
#ifndef MSDOS /* Microsoft specific */
-#include <freebsd/sys/syscall.h>
+#include <sys/syscall.h>
#endif /* MSDOS */
#endif
@@ -225,7 +225,7 @@ struct timex {
#ifdef _KERNEL
void ntp_update_second(int64_t *adjustment, time_t *newsec);
#else /* !_KERNEL */
-#include <freebsd/sys/cdefs.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
int ntp_adjtime(struct timex *);
@@ -235,4 +235,4 @@ __END_DECLS
#endif /* __FreeBSD__ */
-#endif /* !_SYS_TIMEX_HH_ */
+#endif /* !_SYS_TIMEX_H_ */