[rtems-libbsd commit] kern_time: Disable some routines RTEMS has
Joel Sherrill
joel at rtems.org
Tue Oct 23 21:45:33 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: d4515a8d0e2f6d680ea9b6291ad53d41b328d072
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=d4515a8d0e2f6d680ea9b6291ad53d41b328d072
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Tue Oct 23 16:49:40 2012 -0500
kern_time: Disable some routines RTEMS has
---
freebsd/kern/kern_time.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/freebsd/kern/kern_time.c b/freebsd/kern/kern_time.c
index f1919d7..e07abc3 100644
--- a/freebsd/kern/kern_time.c
+++ b/freebsd/kern/kern_time.c
@@ -177,6 +177,7 @@ struct clock_gettime_args {
struct timespec *tp;
};
#endif
+#ifndef __rtems__
/* ARGSUSED */
int
clock_gettime(struct thread *td, struct clock_gettime_args *uap)
@@ -190,7 +191,9 @@ clock_gettime(struct thread *td, struct clock_gettime_args *uap)
return (error);
}
+#endif
+#ifndef __rtems__
int
kern_clock_gettime(struct thread *td, clockid_t clock_id, struct timespec *ats)
{
@@ -253,6 +256,7 @@ kern_clock_gettime(struct thread *td, clockid_t clock_id, struct timespec *ats)
}
return (0);
}
+#endif
#ifndef _SYS_SYSPROTO_HH_
struct clock_settime_args {
@@ -260,6 +264,7 @@ struct clock_settime_args {
const struct timespec *tp;
};
#endif
+#ifndef __rtems__
/* ARGSUSED */
int
clock_settime(struct thread *td, struct clock_settime_args *uap)
@@ -289,6 +294,7 @@ kern_clock_settime(struct thread *td, clockid_t clock_id, struct timespec *ats)
error = settime(td, &atv);
return (error);
}
+#endif
#ifndef _SYS_SYSPROTO_HH_
struct clock_getres_args {
@@ -296,6 +302,7 @@ struct clock_getres_args {
struct timespec *tp;
};
#endif
+#ifndef __rtems__
int
clock_getres(struct thread *td, struct clock_getres_args *uap)
{
@@ -353,6 +360,7 @@ kern_clock_getres(struct thread *td, clockid_t clock_id, struct timespec *ts)
}
return (0);
}
+#endif
static int nanowait;
More information about the vc
mailing list