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:
parent
d197326e7a
commit
0c74ffb7fd
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh -
|
#! /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
|
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -270,6 +270,10 @@ function parseline() {
|
||||||
funcalias=""
|
funcalias=""
|
||||||
end=NF
|
end=NF
|
||||||
}
|
}
|
||||||
|
if ($f ~ /^[a-z0-9_]*$/) { # allow syscall alias
|
||||||
|
funcalias=$f
|
||||||
|
f++
|
||||||
|
}
|
||||||
if ($f != "{")
|
if ($f != "{")
|
||||||
parserr($f, "{")
|
parserr($f, "{")
|
||||||
f++
|
f++
|
||||||
|
|
Loading…
Reference in New Issue