summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-08-06 17:09:10 +0000
committermiod <miod@openbsd.org>2005-08-06 17:09:10 +0000
commit4fce09e076b613462203e40b888549e10a21925a (patch)
tree6138a55e2a8fe19cb5fe78b17ade6c1b52833a86
parentDocument M_CANFAIL and sync M_xxx types; (diff)
downloadwireguard-openbsd-4fce09e076b613462203e40b888549e10a21925a.tar.xz
wireguard-openbsd-4fce09e076b613462203e40b888549e10a21925a.zip
Remove 16 bit mode_t leftover in syscall processing.
ok deraadt@
-rw-r--r--sys/arch/vax/vax/trap.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c
index 7d4caf6e0ae..8ac1d4fbf89 100644
--- a/sys/arch/vax/vax/trap.c
+++ b/sys/arch/vax/vax/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.29 2004/12/06 20:12:25 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.30 2005/08/06 17:09:10 miod Exp $ */
/* $NetBSD: trap.c,v 1.47 1999/08/21 19:26:20 matt Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -419,27 +419,6 @@ if(startsysc)printf("trap syscall %s pc %lx, psl %lx, sp %lx, pid %d, frame %p\n
goto bad;
}
}
- /*
- * XXX ***TAKE THIS OUT SOON***
- * this is an evil hack to get around incongruities in (some) syscall
- * argument types
- */
- switch(frame->code) {
- case SYS_open:
- args[2] &= 0xffff;
- break;
-
- case SYS_mkdir:
- case SYS_chmod:
- case SYS_fchmod:
- case SYS_mkfifo:
- case SYS_mknod:
- args[1] &= 0xffff;
- break;
-
- case SYS_umask:
- args[0] &= 0xffff;
- }
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSCALL))