Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch Add clock_* POSIX functions.



details:   https://anonhg.NetBSD.org/src/rev/01ba8370b14f
branches:  trunk
changeset: 580944:01ba8370b14f
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon May 16 21:17:11 2005 +0000

description:
Add clock_* POSIX functions.

diffstat:

 sys/compat/linux/arch/alpha/syscalls.master   |  15 ++++++++++-----
 sys/compat/linux/arch/amd64/syscalls.master   |  15 ++++++++++-----
 sys/compat/linux/arch/arm/syscalls.master     |  15 ++++++++++-----
 sys/compat/linux/arch/i386/syscalls.master    |  15 ++++++++++-----
 sys/compat/linux/arch/mips/syscalls.master    |  15 ++++++++++-----
 sys/compat/linux/arch/powerpc/syscalls.master |  15 ++++++++++-----
 6 files changed, 60 insertions(+), 30 deletions(-)

diffs (174 lines):

diff -r 96425541758f -r 01ba8370b14f sys/compat/linux/arch/alpha/syscalls.master
--- a/sys/compat/linux/arch/alpha/syscalls.master       Mon May 16 18:49:24 2005 +0000
+++ b/sys/compat/linux/arch/alpha/syscalls.master       Mon May 16 21:17:11 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.50 2005/05/16 16:02:19 fvdl Exp $
+       $NetBSD: syscalls.master,v 1.51 2005/05/16 21:17:11 fvdl Exp $
 ;
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -654,10 +654,15 @@
 416    UNIMPL          timer_gettime
 417    UNIMPL          timer_getoverrun
 418    UNIMPL          timer_delete
-419    UNIMPL          clock_settime
-420    UNIMPL          clock_gettime
-421    UNIMPL          clock_getres
-422    UNIMPL          clock_nanosleep
+419    STD             { int linux_sys_clock_settime(clockid_t which, \
+                           struct linux_timespec *tp); }
+420    STD             { int linux_sys_clock_gettime(clockid_t which, \
+                           struct linux_timespec *tp); }
+421    STD             { int linux_sys_clock_getres(clockid_t which, \
+                           struct linux_timespec *tp); }
+422    STD             { int linux_sys_clock_nanosleep(clockid_t which, \
+                           int flags, struct linux_timespec *rqtp, \
+                           struct linux_timespec *rmtp); }
 423    UNIMPL          semtimedop
 424    UNIMPL          tgkill
 425    UNIMPL          stat64
diff -r 96425541758f -r 01ba8370b14f sys/compat/linux/arch/amd64/syscalls.master
--- a/sys/compat/linux/arch/amd64/syscalls.master       Mon May 16 18:49:24 2005 +0000
+++ b/sys/compat/linux/arch/amd64/syscalls.master       Mon May 16 21:17:11 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.2 2005/05/16 16:02:20 fvdl Exp $
+       $NetBSD: syscalls.master,v 1.3 2005/05/16 21:17:11 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -375,10 +375,15 @@
 224    UNIMPL          timer_gettime
 225    UNIMPL          timer_getoverrun
 226    UNIMPL          timer_delete
-227    UNIMPL          clock_settime
-228    UNIMPL          clock_gettime
-229    UNIMPL          clock_getres
-230    UNIMPL          clock_nanosleep
+227    STD             { int linux_sys_clock_settime(clockid_t which, \
+                           struct linux_timespec *tp); }
+228    STD             { int linux_sys_clock_gettime(clockid_t which, \
+                           struct linux_timespec *tp); }
+229    STD             { int linux_sys_clock_getres(clockid_t which, \
+                           struct linux_timespec *tp); }
+230    STD             { int linux_sys_clock_nanosleep(clockid_t which, \
+                           int flags, struct linux_timespec *rqtp, \
+                           struct linux_timespec *rmtp); }
 231    STD             { int linux_sys_exit_group(int error_code); }
 232    UNIMPL          epoll_wait
 233    UNIMPL          epoll_ctl
diff -r 96425541758f -r 01ba8370b14f sys/compat/linux/arch/arm/syscalls.master
--- a/sys/compat/linux/arch/arm/syscalls.master Mon May 16 18:49:24 2005 +0000
+++ b/sys/compat/linux/arch/arm/syscalls.master Mon May 16 21:17:11 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.21 2005/05/16 16:02:20 fvdl Exp $
+       $NetBSD: syscalls.master,v 1.22 2005/05/16 21:17:11 fvdl Exp $
 
 ; Derived from sys/compat/linux/arch/*/syscalls.master
 ; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -425,10 +425,15 @@
 259    UNIMPL          timer_gettime
 260    UNIMPL          timer_getoverrun
 261    UNIMPL          timer_delete
-262    UNIMPL          clock_settime
-263    UNIMPL          clock_gettime
-264    UNIMPL          clock_getres
-265    UNIMPL          clock_nanosleep
+262    STD             { int linux_sys_clock_settime(clockid_t which, \
+                           struct linux_timespec *tp); }
+263    STD             { int linux_sys_clock_gettime(clockid_t which, \
+                           struct linux_timespec *tp); }
+264    STD             { int linux_sys_clock_getres(clockid_t which, \
+                           struct linux_timespec *tp); }
+265    STD             { int linux_sys_clock_nanosleep(clockid_t which, \
+                           int flags, struct linux_timespec *rqtp, \
+                           struct linux_timespec *rmtp); }
 266    STD             { int linux_sys_statfs64(const char *path, \
                            size_t sz, struct linux_statfs64 *sp); }
 267    STD             { int linux_sys_fstatfs64(int fd, \
diff -r 96425541758f -r 01ba8370b14f sys/compat/linux/arch/i386/syscalls.master
--- a/sys/compat/linux/arch/i386/syscalls.master        Mon May 16 18:49:24 2005 +0000
+++ b/sys/compat/linux/arch/i386/syscalls.master        Mon May 16 21:17:11 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.72 2005/05/16 16:02:20 fvdl Exp $
+       $NetBSD: syscalls.master,v 1.73 2005/05/16 21:17:11 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -422,10 +422,15 @@
 261    UNIMPL          timer_gettime
 262    UNIMPL          timer_getoverrun
 263    UNIMPL          timer_delete
-264    UNIMPL          clock_settime
-265    UNIMPL          clock_gettime
-266    UNIMPL          clock_getres
-267    UNIMPL          clock_nanosleep
+264    STD             { int linux_sys_clock_settime(clockid_t which, \
+                           struct linux_timespec *tp); }
+265    STD             { int linux_sys_clock_gettime(clockid_t which, \
+                           struct linux_timespec *tp); }
+266    STD             { int linux_sys_clock_getres(clockid_t which, \
+                           struct linux_timespec *tp); }
+267    STD             { int linux_sys_clock_nanosleep(clockid_t which, \
+                           int flags, struct linux_timespec *rqtp, \
+                           struct linux_timespec *rmtp); }
 268    STD             { int linux_sys_statfs64(const char *path, \
                            size_t sz, struct linux_statfs64 *sp); }
 269    STD             { int linux_sys_fstatfs64(int fd, \
diff -r 96425541758f -r 01ba8370b14f sys/compat/linux/arch/mips/syscalls.master
--- a/sys/compat/linux/arch/mips/syscalls.master        Mon May 16 18:49:24 2005 +0000
+++ b/sys/compat/linux/arch/mips/syscalls.master        Mon May 16 21:17:11 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.18 2005/05/16 16:02:20 fvdl Exp $
+       $NetBSD: syscalls.master,v 1.19 2005/05/16 21:17:11 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -438,10 +438,15 @@
 259    UNIMPL          timer_gettime
 260    UNIMPL          timer_getoverrun
 261    UNIMPL          timer_delete
-262    UNIMPL          clock_settime
-263    UNIMPL          clock_gettime
-264    UNIMPL          clock_getres
-265    UNIMPL          clock_nanosleep
+262    STD             { int linux_sys_clock_settime(clockid_t which, \
+                           struct linux_timespec *tp); }
+263    STD             { int linux_sys_clock_gettime(clockid_t which, \
+                           struct linux_timespec *tp); }
+264    STD             { int linux_sys_clock_getres(clockid_t which, \
+                           struct linux_timespec *tp); }
+265    STD             { int linux_sys_clock_nanosleep(clockid_t which, \
+                           int flags, struct linux_timespec *rqtp, \
+                           struct linux_timespec *rmtp); }
 266    UNIMPL          tgkill
 267    UNIMPL          utimes
 268    UNIMPL          mbind
diff -r 96425541758f -r 01ba8370b14f sys/compat/linux/arch/powerpc/syscalls.master
--- a/sys/compat/linux/arch/powerpc/syscalls.master     Mon May 16 18:49:24 2005 +0000
+++ b/sys/compat/linux/arch/powerpc/syscalls.master     Mon May 16 21:17:11 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.22 2005/05/16 16:02:20 fvdl Exp $
+       $NetBSD: syscalls.master,v 1.23 2005/05/16 21:17:11 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -423,10 +423,15 @@
 242    UNIMPL          timer_gettime
 243    UNIMPL          timer_getoverrun
 244    UNIMPL          timer_delete
-245    UNIMPL          clock_settime
-246    UNIMPL          clock_gettime
-247    UNIMPL          clock_getres
-248    UNIMPL          clock_nanosleep
+245    STD             { int linux_sys_clock_settime(clockid_t which, \
+                           struct linux_timespec *tp); }
+246    STD             { int linux_sys_clock_gettime(clockid_t which, \
+                           struct linux_timespec *tp); }
+247    STD             { int linux_sys_clock_getres(clockid_t which, \
+                           struct linux_timespec *tp); }
+248    STD             { int linux_sys_clock_nanosleep(clockid_t which, \
+                           int flags, struct linux_timespec *rqtp, \
+                           struct linux_timespec *rmtp); }
 249    UNIMPL          swapcontext
 250    UNIMPL          tgkill
 251    UNIMPL          utimes



Home | Main Index | Thread Index | Old Index