Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/irix Added pread() and pwrite()
details: https://anonhg.NetBSD.org/src/rev/330609c63f83
branches: trunk
changeset: 526231:330609c63f83
user: manu <manu%NetBSD.org@localhost>
date: Sun Apr 28 20:23:21 2002 +0000
description:
Added pread() and pwrite()
diffstat:
sys/compat/irix/irix_syscall.h | 10 ++++++++--
sys/compat/irix/irix_syscallargs.h | 6 ++++--
sys/compat/irix/irix_syscalls.c | 10 +++++-----
sys/compat/irix/irix_sysent.c | 14 +++++++-------
sys/compat/irix/syscalls.master | 8 +++++---
5 files changed, 29 insertions(+), 19 deletions(-)
diffs (144 lines):
diff -r 340c4a8d5a81 -r 330609c63f83 sys/compat/irix/irix_syscall.h
--- a/sys/compat/irix/irix_syscall.h Sun Apr 28 19:42:13 2002 +0000
+++ b/sys/compat/irix/irix_syscall.h Sun Apr 28 20:23:21 2002 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: irix_syscall.h,v 1.40 2002/04/28 17:21:59 manu Exp $ */
+/* $NetBSD: irix_syscall.h,v 1.41 2002/04/28 20:23:21 manu Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38 2002/04/23 05:47:38 manu Exp
+ * created from NetBSD: syscalls.master,v 1.39 2002/04/28 17:21:59 manu Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -382,6 +382,12 @@
/* syscall: "mmap64" ret: "void *" args: "void *" "irix_size_t" "int" "int" "int" "int" "irix_off_t" */
#define IRIX_SYS_mmap64 185
+/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off_t" */
+#define IRIX_SYS_pread 187
+
+/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "svr4_off_t" */
+#define IRIX_SYS_pwrite 188
+
/* syscall: "getmountid" ret: "int" args: "const char *" "irix_mountid_t *" */
#define IRIX_SYS_getmountid 203
diff -r 340c4a8d5a81 -r 330609c63f83 sys/compat/irix/irix_syscallargs.h
--- a/sys/compat/irix/irix_syscallargs.h Sun Apr 28 19:42:13 2002 +0000
+++ b/sys/compat/irix/irix_syscallargs.h Sun Apr 28 20:23:21 2002 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: irix_syscallargs.h,v 1.40 2002/04/28 17:21:59 manu Exp $ */
+/* $NetBSD: irix_syscallargs.h,v 1.41 2002/04/28 20:23:22 manu Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38 2002/04/23 05:47:38 manu Exp
+ * created from NetBSD: syscalls.master,v 1.39 2002/04/28 17:21:59 manu Exp
*/
#ifndef _IRIX_SYS__SYSCALLARGS_H_
@@ -351,6 +351,8 @@
int sys_truncate(struct proc *, void *, register_t *);
int sys_ftruncate(struct proc *, void *, register_t *);
int irix_sys_mmap64(struct proc *, void *, register_t *);
+int svr4_sys_pread(struct proc *, void *, register_t *);
+int svr4_sys_pwrite(struct proc *, void *, register_t *);
int irix_sys_getmountid(struct proc *, void *, register_t *);
int irix_sys_getdents64(struct proc *, void *, register_t *);
int irix_sys_ngetdents(struct proc *, void *, register_t *);
diff -r 340c4a8d5a81 -r 330609c63f83 sys/compat/irix/irix_syscalls.c
--- a/sys/compat/irix/irix_syscalls.c Sun Apr 28 19:42:13 2002 +0000
+++ b/sys/compat/irix/irix_syscalls.c Sun Apr 28 20:23:21 2002 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: irix_syscalls.c,v 1.40 2002/04/28 17:21:59 manu Exp $ */
+/* $NetBSD: irix_syscalls.c,v 1.41 2002/04/28 20:23:22 manu Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38 2002/04/23 05:47:38 manu Exp
+ * created from NetBSD: syscalls.master,v 1.39 2002/04/28 17:21:59 manu Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.40 2002/04/28 17:21:59 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.41 2002/04/28 20:23:22 manu Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -234,8 +234,8 @@
"ftruncate64", /* 184 = ftruncate64 */
"mmap64", /* 185 = mmap64 */
"#186 (unimplemented dmi)", /* 186 = unimplemented dmi */
- "#187 (unimplemented pread)", /* 187 = unimplemented pread */
- "#188 (unimplemented pwrite)", /* 188 = unimplemented pwrite */
+ "pread", /* 187 = pread */
+ "pwrite", /* 188 = pwrite */
"#189 (unimplemented fdatasync)", /* 189 = unimplemented fdatasync */
"#190 (unimplemented sgifastpath)", /* 190 = unimplemented sgifastpath */
"#191 (unimplemented attr_get)", /* 191 = unimplemented attr_get */
diff -r 340c4a8d5a81 -r 330609c63f83 sys/compat/irix/irix_sysent.c
--- a/sys/compat/irix/irix_sysent.c Sun Apr 28 19:42:13 2002 +0000
+++ b/sys/compat/irix/irix_sysent.c Sun Apr 28 20:23:21 2002 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: irix_sysent.c,v 1.40 2002/04/28 17:21:59 manu Exp $ */
+/* $NetBSD: irix_sysent.c,v 1.41 2002/04/28 20:23:22 manu Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38 2002/04/23 05:47:38 manu Exp
+ * created from NetBSD: syscalls.master,v 1.39 2002/04/28 17:21:59 manu Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.40 2002/04/28 17:21:59 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.41 2002/04/28 20:23:22 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
@@ -424,10 +424,10 @@
irix_sys_mmap64 }, /* 185 = mmap64 */
{ 0, 0, 0,
sys_nosys }, /* 186 = unimplemented dmi */
- { 0, 0, 0,
- sys_nosys }, /* 187 = unimplemented pread */
- { 0, 0, 0,
- sys_nosys }, /* 188 = unimplemented pwrite */
+ { 4, s(struct svr4_sys_pread_args), 0,
+ svr4_sys_pread }, /* 187 = pread */
+ { 4, s(struct svr4_sys_pwrite_args), 0,
+ svr4_sys_pwrite }, /* 188 = pwrite */
{ 0, 0, 0,
sys_nosys }, /* 189 = unimplemented fdatasync */
{ 0, 0, 0,
diff -r 340c4a8d5a81 -r 330609c63f83 sys/compat/irix/syscalls.master
--- a/sys/compat/irix/syscalls.master Sun Apr 28 19:42:13 2002 +0000
+++ b/sys/compat/irix/syscalls.master Sun Apr 28 20:23:21 2002 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.39 2002/04/28 17:21:59 manu Exp $
+ $NetBSD: syscalls.master,v 1.40 2002/04/28 20:23:22 manu Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -329,8 +329,10 @@
int prot, int flags, int fd, int pad1, \
irix_off_t pos); }
186 UNIMPL dmi
-187 UNIMPL pread
-188 UNIMPL pwrite
+187 NOARGS { ssize_t svr4_sys_pread(int fd, void *buf, \
+ size_t nbyte, svr4_off_t off); }
+188 NOARGS { ssize_t svr4_sys_pwrite(int fd, const void *buf, \
+ size_t nbyte, svr4_off_t off); }
189 UNIMPL fdatasync
190 UNIMPL sgifastpath
191 UNIMPL attr_get
Home |
Main Index |
Thread Index |
Old Index