diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2001-01-29 07:20:25 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2001-01-29 07:20:25 +0000 |
commit | 41f4fa99f775489847c89bfadf29073dd005e106 (patch) | |
tree | 6489d2e5b93014864069101a837e1bb887a57a15 | |
parent | dfb60e365033ae3066e264598ca67089d14f542f (diff) |
Allow syscall aliasing to allow for multiple linux syscalls to be mapped
to the same native syscall. To quote Jaromir's NetBSD commit
if the third argument in syscall.conf matches [a-z0-9_], use it
as a function alias instead of the function name in { ... }
- from NetBSD, deraadt@ ok.
-rw-r--r-- | sys/kern/makesyscalls.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 2aa198a2ade..53934584a6a 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -1,5 +1,5 @@ #! /bin/sh - -# $OpenBSD: makesyscalls.sh,v 1.6 1998/02/08 22:30:41 tholo Exp $ +# $OpenBSD: makesyscalls.sh,v 1.7 2001/01/29 07:20:24 jasoni Exp $ # $NetBSD: makesyscalls.sh,v 1.26 1998/01/09 06:17:51 thorpej Exp $ # # Copyright (c) 1994,1996 Christopher G. Demetriou @@ -240,6 +240,10 @@ function parseline() { funcalias="" end=NF } + if ($f ~ /^[a-z0-9_]*$/) { # allow syscall alias + funcalias=$f + f++ + } if ($f != "{") parserr($f, "{") f++ |