if the third argument in syscall.conf matches [a-z0-9_], use it as

a function alias instead of the function name in { ... }
This commit is contained in:
jdolecek 2000-12-12 17:32:45 +00:00
parent d197326e7a
commit 0c74ffb7fd
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#! /bin/sh -
# $NetBSD: makesyscalls.sh,v 1.42 2000/12/09 05:41:12 mycroft Exp $
# $NetBSD: makesyscalls.sh,v 1.43 2000/12/12 17:32:45 jdolecek Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@ -270,6 +270,10 @@ function parseline() {
funcalias=""
end=NF
}
if ($f ~ /^[a-z0-9_]*$/) { # allow syscall alias
funcalias=$f
f++
}
if ($f != "{")
parserr($f, "{")
f++