Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Changed EMUL_BSD_ASYNCIO_PIPE to EMUL_NO_BSD_ASYNCIO_PIP...
details: https://anonhg.NetBSD.org/src/rev/6af302da1e5f
branches: trunk
changeset: 509561:6af302da1e5f
user: manu <manu%NetBSD.org@localhost>
date: Mon May 07 09:55:12 2001 +0000
description:
Changed EMUL_BSD_ASYNCIO_PIPE to EMUL_NO_BSD_ASYNCIO_PIPE, so that
the native emulation (NetBSD) does not have a flag.
diffstat:
sys/compat/hpux/hpux_exec.c | 4 ++--
sys/compat/ibcs2/ibcs2_exec.c | 4 ++--
sys/compat/linux/common/linux_exec.c | 4 ++--
sys/compat/osf1/osf1_exec.c | 4 ++--
sys/compat/sunos/sunos_exec.c | 4 ++--
sys/compat/sunos32/sunos32_exec.c | 4 ++--
sys/compat/svr4/svr4_exec.c | 4 ++--
sys/compat/svr4_32/svr4_32_exec.c | 4 ++--
sys/kern/kern_exec.c | 4 ++--
sys/kern/sys_socket.c | 4 ++--
sys/sys/proc.h | 14 +++++++++++---
11 files changed, 31 insertions(+), 23 deletions(-)
diffs (208 lines):
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/hpux/hpux_exec.c
--- a/sys/compat/hpux/hpux_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/hpux/hpux_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpux_exec.c,v 1.23 2000/12/14 22:55:36 simonb Exp $ */
+/* $NetBSD: hpux_exec.c,v 1.24 2001/05/07 09:55:12 manu Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -103,7 +103,7 @@
const struct emul emul_hpux = {
"hpux",
"/emul/hpux",
- 0,
+ EMUL_NO_BSD_ASYNCIO_PIPE | EMUL_NO_SIGIO_ON_READ,
native_to_hpux_errno,
HPUX_SYS_syscall,
HPUX_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/ibcs2/ibcs2_exec.c
--- a/sys/compat/ibcs2/ibcs2_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/ibcs2/ibcs2_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_exec.c,v 1.44 2000/12/11 05:29:01 mycroft Exp $ */
+/* $NetBSD: ibcs2_exec.c,v 1.45 2001/05/07 09:55:13 manu Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -70,7 +70,7 @@
"ibcs2",
"/emul/ibcs2",
#ifndef __HAVE_MINIMAL_EMUL
- 0,
+ EMUL_NO_BSD_ASYNCIO_PIPE | EMUL_NO_SIGIO_ON_READ,
native_to_ibcs2_errno,
IBCS2_SYS_syscall,
IBCS2_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/linux/common/linux_exec.c
--- a/sys/compat/linux/common/linux_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/linux/common/linux_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec.c,v 1.49 2001/05/06 19:09:52 manu Exp $ */
+/* $NetBSD: linux_exec.c,v 1.50 2001/05/07 09:55:13 manu Exp $ */
/*-
* Copyright (c) 1994, 1995, 1998, 2000 The NetBSD Foundation, Inc.
@@ -113,7 +113,7 @@
"linux",
"/emul/linux",
#ifndef __HAVE_MINIMAL_EMUL
- EMUL_NO_SIGIO_ON_READ,
+ EMUL_NO_BSD_ASYNCIO_PIPE | EMUL_NO_SIGIO_ON_READ,
(int*)native_to_linux_errno,
LINUX_SYS_syscall,
LINUX_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/osf1/osf1_exec.c
--- a/sys/compat/osf1/osf1_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/osf1/osf1_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_exec.c,v 1.22 2001/05/06 19:09:53 manu Exp $ */
+/* $NetBSD: osf1_exec.c,v 1.23 2001/05/07 09:55:13 manu Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -52,7 +52,7 @@
"osf1",
"/emul/osf1",
#ifndef __HAVE_MINIMAL_EMUL
- EMUL_BSD_ASYNCIO_PIPE,
+ EMUL_NO_BSD_ASYNCIO_PIPE,
(int *)osf1_errno_rxlist,
OSF1_SYS_syscall,
OSF1_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/sunos/sunos_exec.c
--- a/sys/compat/sunos/sunos_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/sunos/sunos_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_exec.c,v 1.30 2001/05/06 19:09:53 manu Exp $ */
+/* $NetBSD: sunos_exec.c,v 1.31 2001/05/07 09:55:14 manu Exp $ */
/*
* Copyright (c) 1993 Theo de Raadt
@@ -52,7 +52,7 @@
struct emul emul_sunos = {
"sunos",
"/emul/sunos",
- EMUL_NO_SIGIO_ON_READ,
+ EMUL_NO_BSD_ASYNCIO_PIPE | EMUL_NO_SIGIO_ON_READ,
NULL,
SUNOS_SYS_syscall,
SUNOS_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/sunos32/sunos32_exec.c
--- a/sys/compat/sunos32/sunos32_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/sunos32/sunos32_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_exec.c,v 1.3 2001/05/06 19:09:54 manu Exp $ */
+/* $NetBSD: sunos32_exec.c,v 1.4 2001/05/07 09:55:14 manu Exp $ */
/*
* Copyright (c) 2001 Matthew R. Green
@@ -50,7 +50,7 @@
struct emul emul_sunos = {
"sunos32",
"/emul/sunos",
- EMUL_NO_SIGIO_ON_READ,
+ EMUL_NO_BSD_ASYNCIO_PIPE | EMUL_NO_SIGIO_ON_READ,
NULL,
SUNOS32_SYS_syscall,
SUNOS32_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/svr4/svr4_exec.c
--- a/sys/compat/svr4/svr4_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/svr4/svr4_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_exec.c,v 1.42 2001/02/21 23:53:01 eeh Exp $ */
+/* $NetBSD: svr4_exec.c,v 1.43 2001/05/07 09:55:14 manu Exp $ */
/*-
* Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
"svr4",
"/emul/svr4",
#ifndef __HAVE_MINIMAL_EMUL
- 0,
+ EMUL_NO_BSD_ASYNCIO_PIPE | EMUL_NO_SIGIO_ON_READ,
native_to_svr4_errno,
SVR4_SYS_syscall,
SVR4_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/compat/svr4_32/svr4_32_exec.c
--- a/sys/compat/svr4_32/svr4_32_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/compat/svr4_32/svr4_32_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_32_exec.c,v 1.1 2001/02/06 16:37:57 eeh Exp $ */
+/* $NetBSD: svr4_32_exec.c,v 1.2 2001/05/07 09:55:14 manu Exp $ */
/*-
* Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
"svr4_32",
"/emul/svr4_32",
#ifndef __HAVE_MINIMAL_EMUL
- 0,
+ EMUL_NO_BSD_ASYNCIO_PIPE | EMUL_NO_SIGIO_ON_READ,
native_to_svr4_errno,
SVR4_32_SYS_syscall,
SVR4_32_SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/kern/kern_exec.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.139 2001/05/06 19:09:54 manu Exp $ */
+/* $NetBSD: kern_exec.c,v 1.140 2001/05/07 09:55:14 manu Exp $ */
/*-
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -119,7 +119,7 @@
"netbsd",
NULL, /* emulation path */
#ifndef __HAVE_MINIMAL_EMUL
- EMUL_HAS_SYS___syscall | EMUL_BSD_ASYNCIO_PIPE,
+ EMUL_HAS_SYS___syscall,
NULL,
SYS_syscall,
SYS_MAXSYSCALL,
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/kern/sys_socket.c
--- a/sys/kern/sys_socket.c Mon May 07 09:42:30 2001 +0000
+++ b/sys/kern/sys_socket.c Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_socket.c,v 1.27 2001/05/07 02:51:53 enami Exp $ */
+/* $NetBSD: sys_socket.c,v 1.28 2001/05/07 09:55:15 manu Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -103,7 +103,7 @@
if (
#ifndef __HAVE_MINIMAL_EMUL
(!(so->so_state & SS_ISAPIPE) ||
- (p->p_emul->e_flags & EMUL_BSD_ASYNCIO_PIPE)) &&
+ (!(p->p_emul->e_flags & EMUL_NO_BSD_ASYNCIO_PIPE))) &&
#endif
*(int *)data) {
so->so_state |= SS_ASYNC;
diff -r 4a260a3cfd16 -r 6af302da1e5f sys/sys/proc.h
--- a/sys/sys/proc.h Mon May 07 09:42:30 2001 +0000
+++ b/sys/sys/proc.h Mon May 07 09:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: proc.h,v 1.127 2001/05/06 19:09:54 manu Exp $ */
+/* $NetBSD: proc.h,v 1.128 2001/05/07 09:55:15 manu Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
@@ -123,8 +123,16 @@
* Emulation miscelaneous flags
*/
#define EMUL_HAS_SYS___syscall 0x001 /* Has SYS___syscall */
-#define EMUL_BSD_ASYNCIO_PIPE 0x002 /* BSD style async I/O pipes */
-#define EMUL_NO_SIGIO_ON_READ 0x004 /* No SIGIO fired on read() calls*/
+/*
+ * No BSD style async I/O pipes. Aync I/O request through
+ * fcntl() for pipes will be ignored.
+ */
+#define EMUL_NO_BSD_ASYNCIO_PIPE 0x002
+/*
+ * No SIGIO fired on read() calls when async I/O is enabled
+ * This is not implemented yet
+ */
+#define EMUL_NO_SIGIO_ON_READ 0x004
/*
* Description of a process.
Home |
Main Index |
Thread Index |
Old Index