summaryrefslogtreecommitdiff
path: root/sys/compat/ultrix/ultrix_misc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-26 01:28:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-26 01:28:43 +0000
commit27cbf6f6d12ccddede1c5860500319959267b82f (patch)
tree2e58b085c3a7314b6b66e431768b75be9e0a9226 /sys/compat/ultrix/ultrix_misc.c
parent046588a3f5676450b42ab21bbc94009df885357f (diff)
update to netbsd
Diffstat (limited to 'sys/compat/ultrix/ultrix_misc.c')
-rw-r--r--sys/compat/ultrix/ultrix_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/ultrix/ultrix_misc.c b/sys/compat/ultrix/ultrix_misc.c
index 620d3fef5d1..9a42e7bbaab 100644
--- a/sys/compat/ultrix/ultrix_misc.c
+++ b/sys/compat/ultrix/ultrix_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ultrix_misc.c,v 1.16 1995/10/07 06:28:02 mycroft Exp $ */
+/* $NetBSD: ultrix_misc.c,v 1.16.2.1 1995/10/18 06:46:14 jonathan Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -381,8 +381,8 @@ ultrix_sys_open(p, v, retval)
int noctty;
int ret;
- /* convert mode into NetBSD mode */
- l = SCARG(uap, mode);
+ /* convert open flags into NetBSD flags */
+ l = SCARG(uap, flags);
noctty = l & 0x8000;
r = (l & (0x0001 | 0x0002 | 0x0008 | 0x0040 | 0x0200 | 0x0400 | 0x0800));
r |= ((l & (0x0004 | 0x1000 | 0x4000)) ? O_NONBLOCK : 0);