From 41f4fa99f775489847c89bfadf29073dd005e106 Mon Sep 17 00:00:00 2001 From: jasoni Date: Mon, 29 Jan 2001 07:20:25 +0000 Subject: 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. --- sys/kern/makesyscalls.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/kern') 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++ -- cgit v1.2.3