diff options
| author | manu <manu@NetBSD.org> | 2002-04-22 05:58:46 +0000 |
|---|---|---|
| committer | manu <manu@NetBSD.org> | 2002-04-22 05:58:46 +0000 |
| commit | 0e9a3e0d43370f1bfbcb5e4f264e3d07fcfbb6b6 (patch) | |
| tree | 082eeddd60fb78447b21e81929c175582e5d9074 /sys | |
| parent | 8212c0741f9856ebdb3a1bcd73cef8a1ec5acf3b (diff) | |
- We now use irix_sys_mmap instead of svr4_sys_mmap
- initial support for MAP_AUTOGROW flag. When mapping beyond the end of file is
requested with MAP_AUTOGROW, if pages beyond the end of file are touched, the
file should be resized. We are not able to emulate this yet, so we immediatly
resize the file to fit the whole mapping.
- implements mmap64
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/compat/irix/files.irix | 3 | ||||
| -rw-r--r-- | sys/compat/irix/irix_mman.c | 211 | ||||
| -rw-r--r-- | sys/compat/irix/irix_mman.h | 59 | ||||
| -rw-r--r-- | sys/compat/irix/irix_syscall.h | 9 | ||||
| -rw-r--r-- | sys/compat/irix/irix_syscallargs.h | 26 | ||||
| -rw-r--r-- | sys/compat/irix/irix_syscalls.c | 8 | ||||
| -rw-r--r-- | sys/compat/irix/irix_sysent.c | 14 | ||||
| -rw-r--r-- | sys/compat/irix/syscalls.master | 10 |
8 files changed, 318 insertions, 22 deletions
diff --git a/sys/compat/irix/files.irix b/sys/compat/irix/files.irix index 72ba77528f5..c67d6c68079 100644 --- a/sys/compat/irix/files.irix +++ b/sys/compat/irix/files.irix @@ -1,4 +1,4 @@ -# $NetBSD: files.irix,v 1.19 2002/04/16 20:15:47 manu Exp $ +# $NetBSD: files.irix,v 1.20 2002/04/22 05:58:46 manu Exp $ # file arch/mips/mips/irix_syscall.c compat_irix @@ -10,6 +10,7 @@ file compat/irix/irix_exec_elf32.c compat_irix & exec_elf32 file compat/irix/irix_fcntl.c compat_irix file compat/irix/irix_ioctl.c compat_irix file compat/irix/irix_kmem.c compat_irix +file compat/irix/irix_mman.c compat_irix file compat/irix/irix_misc.c compat_irix file compat/irix/irix_mount.c compat_irix file compat/irix/irix_prctl.c compat_irix diff --git a/sys/compat/irix/irix_mman.c b/sys/compat/irix/irix_mman.c new file mode 100644 index 00000000000..4f7d1685a2b --- /dev/null +++ b/sys/compat/irix/irix_mman.c @@ -0,0 +1,211 @@ +/* $NetBSD: irix_mman.c,v 1.1 2002/04/22 05:58:46 manu Exp $ */ + +/*- + * Copyright (c) 2002 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Emmanuel Dreyfus. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the NetBSD + * Foundation, Inc. and its contributors. + * 4. Neither the name of The NetBSD Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include <sys/cdefs.h> +__KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.1 2002/04/22 05:58:46 manu Exp $"); + +#include <sys/types.h> +#include <sys/param.h> +#include <sys/signal.h> +#include <sys/proc.h> +#include <sys/filedesc.h> +#include <sys/file.h> +#include <sys/vnode.h> +#include <sys/vnode_if.h> +#include <sys/mount.h> +#include <sys/systm.h> +#include <sys/syscallargs.h> + +#include <compat/irix/irix_types.h> +#include <compat/irix/irix_signal.h> +#include <compat/irix/irix_mman.h> +#include <compat/irix/irix_syscallargs.h> + +int irix_mmap __P((struct proc *, void *, size_t, int , + int, int, off_t, register_t *)); + +int +irix_sys_mmap(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct irix_sys_mmap_args /* { + syscallarg(void *) addr; + syscallarg(irix_size_t) len; + syscallarg(int) prot; + syscallarg(int) flags; + syscallarg(int) fd; + syscallarg(irix_off_t) pos; + } */ *uap = v; + + return irix_mmap(p, SCARG(uap, addr), SCARG(uap, len), + SCARG(uap, prot), SCARG(uap, flags), SCARG(uap, fd), + SCARG(uap, pos), retval); +} + +int +irix_sys_mmap64(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct irix_sys_mmap64_args /* { + syscallarg(void *) addr; + syscallarg(irix_size_t) len; + syscallarg(int) prot; + syscallarg(int) flags; + syscallarg(int) fd; + syscallarg(int) pad1; + syscallarg(irix_off64_t) pos; + } */ *uap = v; + return irix_mmap(p, SCARG(uap, addr), SCARG(uap, len), + SCARG(uap, prot), SCARG(uap, flags), SCARG(uap, fd), + SCARG(uap, pos), retval); +} + +int +irix_mmap(p, addr, len, prot, flags, fd, pos, retval) + struct proc *p; + void *addr; + size_t len; + int prot; + int flags; + int fd; + off_t pos; + register_t *retval; +{ + struct sys_mmap_args cup; + int bsd_flags = 0; + + bsd_flags = 0; + if (flags & IRIX_MAP_SHARED) + bsd_flags |= MAP_SHARED; + if (flags & IRIX_MAP_PRIVATE) + bsd_flags |= MAP_PRIVATE; + if (flags & IRIX_MAP_COPY) + bsd_flags |= MAP_PRIVATE; + + /* + * Note about MAP_FIXED: IRIX's mmap(2) states that + * when MAP_FIXED is unset, range 0x30000000 to 0x40000000 + * will not be used except if MAP_SGI_ANYADDR is set + * or if syssgi(SGI_UNSUPPORTED_MAP_RESERVED_RANGE) was + * enabled. We do not emulate this behavior for now. + */ + if (flags & IRIX_MAP_FIXED) + bsd_flags |= MAP_FIXED; + if (flags & IRIX_MAP_RENAME) + bsd_flags |= MAP_RENAME; + + if (flags & IRIX_MAP_LOCAL) + printf("Warning: unsupported IRIX mmap() flag MAP_LOCAL\n"); + if (flags & IRIX_MAP_AUTORESRV) + printf("Warning: unsupported IRIX mmap() flag MAP_AUTORESV\n"); + if (flags & IRIX_MAP_TEXT) + printf("Warning: unsupported IRIX mmap() flag MAP_TEXT\n"); + if (flags & IRIX_MAP_BRK) + printf("Warning: unsupported IRIX mmap() flag MAP_BRK\n"); + if (flags & IRIX_MAP_PRIMARY) + printf("Warning: unsupported IRIX mmap() flag MAP_PRIMARY\n"); + if (flags & IRIX_MAP_SGI_ANYADDR) + printf("Warning: unsupported IRIX mmap() flag IRIX_MAP_SGI_ANYADDR\n"); + + /* + * When AUTOGROW is set and the mapping is bigger than + * the file, if pages beyond the end of file are touched, + * IRIX will increase the file size accordingly. We are + * not able to emulate this (yet), hence we immediatly + * grow the file to fit the mapping, before mapping it. + */ + if (flags & IRIX_MAP_AUTOGROW) { + struct file *fp; + struct vnode *vp; + struct vattr vattr; + int error = 0; + + /* getvnode does FILE_USE */ + if ((error = getvnode(p->p_fd, fd, &fp)) != 0) + return error; + + if ((fp->f_flag & FWRITE) == 0) { + error = EINVAL; + goto out; + } + + vp = (struct vnode *)fp->f_data; + if (fp->f_type != DTYPE_VNODE || vp->v_type == VFIFO) { + error = ESPIPE; + goto out; + } + + if (vp->v_type == VDIR) { + error = EISDIR; + goto out; + } + + if ((error = VOP_GETATTR(vp, &vattr, p->p_ucred, p)) != 0) + goto out; + + if (pos + len > vattr.va_size) { + VATTR_NULL(&vattr); + vattr.va_size = round_page(pos + len); + + VOP_LEASE(vp, p, p->p_ucred, LEASE_WRITE); + vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); + + error = VOP_SETATTR(vp, &vattr, p->p_ucred, p); + + VOP_UNLOCK(vp, 0); + } +out: + FILE_UNUSE(fp, p); + if (error) + return error; + + } + + SCARG(&cup, addr) = addr; + SCARG(&cup, len) = len; + SCARG(&cup, prot) = prot; + SCARG(&cup, flags) = bsd_flags; + SCARG(&cup, fd) = fd; + SCARG(&cup, pos) = pos; + + return sys_mmap(p, &cup, retval); +} diff --git a/sys/compat/irix/irix_mman.h b/sys/compat/irix/irix_mman.h new file mode 100644 index 00000000000..d50890a20af --- /dev/null +++ b/sys/compat/irix/irix_mman.h @@ -0,0 +1,59 @@ +/* $NetBSD: irix_mman.h,v 1.1 2002/04/22 05:58:47 manu Exp $ */ + +/*- + * Copyright (c) 2002 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Emmanuel Dreyfus. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the NetBSD + * Foundation, Inc. and its contributors. + * 4. Neither the name of The NetBSD Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _IRIX_MMAN_H_ +#define _IRIX_MMAN_H_ + +#include <sys/mman.h> + +/* From IRIX's <sys/mman.h> */ + +#define IRIX_MAP_SHARED MAP_SHARED +#define IRIX_MAP_PRIVATE MAP_PRIVATE +#define IRIX_MAP_COPY 0x0004 +#define IRIX_MAP_FIXED MAP_FIXED +#define IRIX_MAP_RENAME MAP_RENAME +#define IRIX_MAP_AUTOGROW 0x0040 +#define IRIX_MAP_LOCAL 0x0080 +#define IRIX_MAP_AUTORESRV 0x0100 +#define IRIX_MAP_TEXT 0x0200 +#define IRIX_MAP_BRK 0x0400 +#define IRIX_MAP_PRIMARY 0x0800 +#define IRIX_MAP_SGI_ANYADDR 0x1000 + +#endif /* _IRIX_MMAN_H_ */ diff --git a/sys/compat/irix/irix_syscall.h b/sys/compat/irix/irix_syscall.h index 81c91371e80..3d1fe424081 100644 --- a/sys/compat/irix/irix_syscall.h +++ b/sys/compat/irix/irix_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: irix_syscall.h,v 1.37 2002/04/20 16:56:28 manu Exp $ */ +/* $NetBSD: irix_syscall.h,v 1.38 2002/04/22 05:58:47 manu Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.35 2002/04/16 20:15:48 manu Exp + * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -289,7 +289,7 @@ /* syscall: "prctl" ret: "ptrdiff_t" args: "unsigned int" "void *" */ #define IRIX_SYS_prctl 130 -/* syscall: "mmap" ret: "void *" args: "void *" "svr4_size_t" "int" "int" "int" "svr4_off_t" */ +/* syscall: "mmap" ret: "void *" args: "void *" "irix_size_t" "int" "int" "int" "irix_off_t" */ #define IRIX_SYS_mmap 134 /* syscall: "munmap" ret: "int" args: "void *" "int" */ @@ -364,6 +364,9 @@ /* syscall: "ftruncate64" ret: "int" args: "int" "int" "off_t" */ #define IRIX_SYS_ftruncate64 184 +/* syscall: "mmap64" ret: "void *" args: "void *" "irix_size_t" "int" "int" "int" "int" "irix_off_t" */ +#define IRIX_SYS_mmap64 185 + /* syscall: "getmountid" ret: "int" args: "const char *" "irix_mountid_t *" */ #define IRIX_SYS_getmountid 203 diff --git a/sys/compat/irix/irix_syscallargs.h b/sys/compat/irix/irix_syscallargs.h index cf78b1dc560..da50cd2270e 100644 --- a/sys/compat/irix/irix_syscallargs.h +++ b/sys/compat/irix/irix_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: irix_syscallargs.h,v 1.37 2002/04/20 16:56:28 manu Exp $ */ +/* $NetBSD: irix_syscallargs.h,v 1.38 2002/04/22 05:58:48 manu Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.35 2002/04/16 20:15:48 manu Exp + * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp */ #ifndef _IRIX_SYS__SYSCALLARGS_H_ @@ -87,6 +87,15 @@ struct irix_sys_prctl_args { syscallarg(void *) arg1; }; +struct irix_sys_mmap_args { + syscallarg(void *) addr; + syscallarg(irix_size_t) len; + syscallarg(int) prot; + syscallarg(int) flags; + syscallarg(int) fd; + syscallarg(irix_off_t) pos; +}; + struct irix_sys_setpgrp_args { syscallarg(int) pid; syscallarg(int) pgid; @@ -150,6 +159,16 @@ struct irix_sys_waitsys_args { syscallarg(struct rusage *) ru; }; +struct irix_sys_mmap64_args { + syscallarg(void *) addr; + syscallarg(irix_size_t) len; + syscallarg(int) prot; + syscallarg(int) flags; + syscallarg(int) fd; + syscallarg(int) pad1; + syscallarg(irix_off_t) pos; +}; + struct irix_sys_getmountid_args { syscallarg(const char *) path; syscallarg(irix_mountid_t *) buf; @@ -278,7 +297,7 @@ int sys_setitimer(struct proc *, void *, register_t *); int sys_adjtime(struct proc *, void *, register_t *); int svr4_sys_gettimeofday(struct proc *, void *, register_t *); int irix_sys_prctl(struct proc *, void *, register_t *); -int svr4_sys_mmap(struct proc *, void *, register_t *); +int irix_sys_mmap(struct proc *, void *, register_t *); int sys_munmap(struct proc *, void *, register_t *); int sys_mprotect(struct proc *, void *, register_t *); int sys___msync13(struct proc *, void *, register_t *); @@ -303,6 +322,7 @@ int sys_readv(struct proc *, void *, register_t *); int sys_writev(struct proc *, void *, register_t *); 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 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 --git a/sys/compat/irix/irix_syscalls.c b/sys/compat/irix/irix_syscalls.c index e88e2e0209d..aa975e6af1d 100644 --- a/sys/compat/irix/irix_syscalls.c +++ b/sys/compat/irix/irix_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: irix_syscalls.c,v 1.37 2002/04/20 16:56:29 manu Exp $ */ +/* $NetBSD: irix_syscalls.c,v 1.38 2002/04/22 05:58:48 manu Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.35 2002/04/16 20:15:48 manu Exp + * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.37 2002/04/20 16:56:29 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.38 2002/04/22 05:58:48 manu Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -232,7 +232,7 @@ const char *const irix_syscallnames[] = { "writev", /* 182 = writev */ "truncate64", /* 183 = truncate64 */ "ftruncate64", /* 184 = ftruncate64 */ - "#185 (unimplemented mmap64)", /* 185 = unimplemented mmap64 */ + "mmap64", /* 185 = mmap64 */ "#186 (unimplemented dmi)", /* 186 = unimplemented dmi */ "#187 (unimplemented pread)", /* 187 = unimplemented pread */ "#188 (unimplemented pwrite)", /* 188 = unimplemented pwrite */ diff --git a/sys/compat/irix/irix_sysent.c b/sys/compat/irix/irix_sysent.c index 640cb2b1a9f..b866706d550 100644 --- a/sys/compat/irix/irix_sysent.c +++ b/sys/compat/irix/irix_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: irix_sysent.c,v 1.37 2002/04/20 16:56:29 manu Exp $ */ +/* $NetBSD: irix_sysent.c,v 1.38 2002/04/22 05:58:48 manu Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.35 2002/04/16 20:15:48 manu Exp + * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.37 2002/04/20 16:56:29 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.38 2002/04/22 05:58:48 manu Exp $"); #if defined(_KERNEL_OPT) #include "opt_ntp.h" @@ -318,8 +318,8 @@ struct sysent irix_sysent[] = { sys_nosys }, /* 132 = unimplemented sprocsp */ { 0, 0, 0, sys_nosys }, /* 133 = unimplemented sgigsc */ - { 6, s(struct svr4_sys_mmap_args), 0, - svr4_sys_mmap }, /* 134 = mmap */ + { 6, s(struct irix_sys_mmap_args), 0, + irix_sys_mmap }, /* 134 = mmap */ { 2, s(struct sys_munmap_args), 0, sys_munmap }, /* 135 = munmap */ { 3, s(struct sys_mprotect_args), 0, @@ -420,8 +420,8 @@ struct sysent irix_sysent[] = { sys_truncate }, /* 183 = truncate64 */ { 3, s(struct sys_ftruncate_args), 0, sys_ftruncate }, /* 184 = ftruncate64 */ - { 0, 0, 0, - sys_nosys }, /* 185 = unimplemented mmap64 */ + { 7, s(struct irix_sys_mmap64_args), 0, + irix_sys_mmap64 }, /* 185 = mmap64 */ { 0, 0, 0, sys_nosys }, /* 186 = unimplemented dmi */ { 0, 0, 0, diff --git a/sys/compat/irix/syscalls.master b/sys/compat/irix/syscalls.master index 4dd256b0f64..7a4d498b39f 100644 --- a/sys/compat/irix/syscalls.master +++ b/sys/compat/irix/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp $ + $NetBSD: syscalls.master,v 1.37 2002/04/22 05:58:49 manu Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -250,8 +250,8 @@ 131 UNIMPL procblk 132 UNIMPL sprocsp 133 UNIMPL sgigsc -134 NOARGS { void *svr4_sys_mmap(void *addr, svr4_size_t len, \ - int prot, int flags, int fd, svr4_off_t pos); } +134 STD { void *irix_sys_mmap(void *addr, irix_size_t len, \ + int prot, int flags, int fd, irix_off_t pos); } 135 NOARGS { int sys_munmap(void *addr, int len); } 136 NOARGS { int sys_mprotect(void *addr, int len, int prot); } 137 NOARGS { int sys___msync13(void *addr, \ @@ -321,7 +321,9 @@ off_t length); } truncate64 184 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); } \ ftruncate64 -185 UNIMPL mmap64 +185 STD { void *irix_sys_mmap64(void *addr, irix_size_t len, \ + int prot, int flags, int fd, int pad1, \ + irix_off_t pos); } 186 UNIMPL dmi 187 UNIMPL pread 188 UNIMPL pwrite |
