Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Regen: fsync_range(2) system call.
details: https://anonhg.NetBSD.org/src/rev/baac7cc8f8e6
branches: trunk
changeset: 555344:baac7cc8f8e6
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Nov 15 01:20:48 2003 +0000
description:
Regen: fsync_range(2) system call.
diffstat:
sys/kern/init_sysent.c | 10 +++++-----
sys/kern/syscalls.c | 7 ++++---
sys/sys/syscall.h | 9 ++++++---
sys/sys/syscallargs.h | 13 +++++++++++--
4 files changed, 26 insertions(+), 13 deletions(-)
diffs (122 lines):
diff -r bbdad77f6bce -r baac7cc8f8e6 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Sat Nov 15 01:19:38 2003 +0000
+++ b/sys/kern/init_sysent.c Sat Nov 15 01:20:48 2003 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.150 2003/09/30 20:36:40 christos Exp $ */
+/* $NetBSD: init_sysent.c,v 1.151 2003/11/15 01:20:48 thorpej Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.133 2003/09/30 20:36:10 christos Exp
+ * created from NetBSD: syscalls.master,v 1.134 2003/11/15 01:19:38 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.150 2003/09/30 20:36:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.151 2003/11/15 01:20:48 thorpej Exp $");
#include "opt_ktrace.h"
#include "opt_nfsserver.h"
@@ -951,8 +951,8 @@
sys_nosys }, /* 352 = unimplemented sys_sched_get_priority_min */
{ 0, 0, 0,
sys_nosys }, /* 353 = unimplemented sys_sched_rr_get_interval */
- { 0, 0, 0,
- sys_nosys }, /* 354 = filler */
+ { 4, s(struct sys_fsync_range_args), 0,
+ sys_fsync_range }, /* 354 = fsync_range */
{ 0, 0, 0,
sys_nosys }, /* 355 = filler */
{ 0, 0, 0,
diff -r bbdad77f6bce -r baac7cc8f8e6 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Sat Nov 15 01:19:38 2003 +0000
+++ b/sys/kern/syscalls.c Sat Nov 15 01:20:48 2003 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.145 2003/09/30 20:36:40 christos Exp $ */
+/* $NetBSD: syscalls.c,v 1.146 2003/11/15 01:20:48 thorpej Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.133 2003/09/30 20:36:10 christos Exp
+ * created from NetBSD: syscalls.master,v 1.134 2003/11/15 01:19:38 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.145 2003/09/30 20:36:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.146 2003/11/15 01:20:48 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
@@ -493,4 +493,5 @@
"#351 (unimplemented sys_sched_get_priority_max)", /* 351 = unimplemented sys_sched_get_priority_max */
"#352 (unimplemented sys_sched_get_priority_min)", /* 352 = unimplemented sys_sched_get_priority_min */
"#353 (unimplemented sys_sched_rr_get_interval)", /* 353 = unimplemented sys_sched_rr_get_interval */
+ "fsync_range", /* 354 = fsync_range */
};
diff -r bbdad77f6bce -r baac7cc8f8e6 sys/sys/syscall.h
--- a/sys/sys/syscall.h Sat Nov 15 01:19:38 2003 +0000
+++ b/sys/sys/syscall.h Sat Nov 15 01:20:48 2003 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscall.h,v 1.143 2003/09/30 20:36:40 christos Exp $ */
+/* $NetBSD: syscall.h,v 1.144 2003/11/15 01:20:48 thorpej Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.133 2003/09/30 20:36:10 christos Exp
+ * created from NetBSD: syscalls.master,v 1.134 2003/11/15 01:19:38 thorpej Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
@@ -970,5 +970,8 @@
/* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" */
#define SYS_kevent 345
-#define SYS_MAXSYSCALL 354
+/* syscall: "fsync_range" ret: "int" args: "int" "int" "off_t" "off_t" */
+#define SYS_fsync_range 354
+
+#define SYS_MAXSYSCALL 355
#define SYS_NSYSENT 512
diff -r bbdad77f6bce -r baac7cc8f8e6 sys/sys/syscallargs.h
--- a/sys/sys/syscallargs.h Sat Nov 15 01:19:38 2003 +0000
+++ b/sys/sys/syscallargs.h Sat Nov 15 01:20:48 2003 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscallargs.h,v 1.125 2003/09/30 20:36:40 christos Exp $ */
+/* $NetBSD: syscallargs.h,v 1.126 2003/11/15 01:20:48 thorpej Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.133 2003/09/30 20:36:10 christos Exp
+ * created from NetBSD: syscalls.master,v 1.134 2003/11/15 01:19:38 thorpej Exp
*/
#ifndef _SYS__SYSCALLARGS_H_
@@ -1453,6 +1453,13 @@
syscallarg(const struct timespec *) timeout;
};
+struct sys_fsync_range_args {
+ syscallarg(int) fd;
+ syscallarg(int) flags;
+ syscallarg(off_t) start;
+ syscallarg(off_t) length;
+};
+
/*
* System call prototypes.
*/
@@ -2081,4 +2088,6 @@
int sys_kevent(struct lwp *, void *, register_t *);
+int sys_fsync_range(struct lwp *, void *, register_t *);
+
#endif /* _SYS__SYSCALLARGS_H_ */
Home |
Main Index |
Thread Index |
Old Index