Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/kern/lib/libsys_linux Add support for timing syscalls.
details: https://anonhg.NetBSD.org/src/rev/fa0a6d26236f
branches: trunk
changeset: 328504:fa0a6d26236f
user: njoly <njoly%NetBSD.org@localhost>
date: Fri Apr 04 18:24:12 2014 +0000
description:
Add support for timing syscalls.
diffstat:
sys/rump/kern/lib/libsys_linux/sys_linux_component.c | 10 +------
sys/rump/kern/lib/libsys_linux/syscalls.master | 26 +++++++++++++------
2 files changed, 19 insertions(+), 17 deletions(-)
diffs (77 lines):
diff -r 4ffcc1d96eb5 -r fa0a6d26236f sys/rump/kern/lib/libsys_linux/sys_linux_component.c
--- a/sys/rump/kern/lib/libsys_linux/sys_linux_component.c Fri Apr 04 18:20:28 2014 +0000
+++ b/sys/rump/kern/lib/libsys_linux/sys_linux_component.c Fri Apr 04 18:24:12 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_linux_component.c,v 1.1 2014/03/13 02:03:47 pooka Exp $ */
+/* $NetBSD: sys_linux_component.c,v 1.2 2014/04/04 18:24:12 njoly Exp $ */
#include <sys/param.h>
#include <sys/proc.h>
@@ -58,14 +58,6 @@
void rumplinux__stub(void);
void rumplinux__stub(void) {panic("unavailable");}
-/* timing */
-__weak_alias(clock_gettime1,rumplinux__stub);
-__weak_alias(clock_settime1,rumplinux__stub);
-__weak_alias(clock_getres1,rumplinux__stub);
-__weak_alias(compat_50_sys_gettimeofday,rumplinux__stub);
-__weak_alias(compat_50_sys_settimeofday,rumplinux__stub);
-__weak_alias(nanosleep1,rumplinux__stub);
-
/* vm-related */
__weak_alias(sys_mmap,rumplinux__stub);
__weak_alias(vm_map_unlock,rumplinux__stub);
diff -r 4ffcc1d96eb5 -r fa0a6d26236f sys/rump/kern/lib/libsys_linux/syscalls.master
--- a/sys/rump/kern/lib/libsys_linux/syscalls.master Fri Apr 04 18:20:28 2014 +0000
+++ b/sys/rump/kern/lib/libsys_linux/syscalls.master Fri Apr 04 18:24:12 2014 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.13 2014/01/25 10:30:22 njoly Exp $
+ $NetBSD: syscalls.master,v 1.14 2014/04/04 18:24:12 njoly Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -540,11 +540,13 @@
414 UNIMPL pset_assign
415 UNIMPL _pset_bind
416 UNIMPL fadvise
-417 NOARGS { int|linux_sys||select(int nd, \
+417 NOARGS { int|linux_sys||select(int nd, \
fd_set *in, fd_set *ou, fd_set *ex, \
struct timeval50 *tv); }
-418 UNIMPL gettimeofday
-419 UNIMPL settimeofday
+418 NOARGS { int|linux_sys||gettimeofday(struct timeval50 *tp, \
+ struct timezone *tzp); }
+419 NOARGS { int|linux_sys||settimeofday(struct timeval50 *tp, \
+ struct timezone *tzp); }
420 NOARGS { int|linux_sys||utimes(const char *path, \
struct linux_timeval *tv); }
421 UNIMPL adjtime
@@ -555,10 +557,15 @@
const struct timeval *tptr); }
425 UNIMPL setitimer
426 UNIMPL getitimer
-427 UNIMPL clock_gettime
-428 UNIMPL clock_settime
-429 UNIMPL clock_getres
-430 UNIMPL nanosleep
+427 NOARGS { int|linux_sys||clock_gettime(clockid_t which, \
+ struct linux_timespec *tp); }
+428 NOARGS { int|linux_sys||clock_settime(clockid_t which, \
+ struct linux_timespec *tp); }
+429 NOARGS { int|linux_sys||clock_getres(clockid_t which, \
+ struct linux_timespec *tp); }
+430 NOARGS { int|linux_sys||nanosleep( \
+ const struct linux_timespec *rqtp, \
+ struct linux_timespec *rmtp); }
431 UNIMPL __sigtimedwait
432 UNIMPL mq_timedsend
433 UNIMPL mq_timedreceive
@@ -626,3 +633,6 @@
474 UNIMPL posix_spawn
475 UNIMPL recvmmsg
476 UNIMPL sendmmsg
+477 NOARGS { int|linux_sys||clock_nanosleep(clockid_t which, \
+ int flags, struct linux_timespec *rqtp, \
+ struct linux_timespec *rmtp); }
Home |
Main Index |
Thread Index |
Old Index