#! /bin/sh -
-# $OpenBSD: makesyscalls.sh,v 1.18 2022/12/05 23:18:37 deraadt Exp $
+# $OpenBSD: makesyscalls.sh,v 1.19 2023/02/27 00:18:00 afresh1 Exp $
# $NetBSD: makesyscalls.sh,v 1.26 1998/01/09 06:17:51 thorpej Exp $
#
# Copyright (c) 1994,1996 Christopher G. Demetriou
returntype) > sysnumhdr
for (i = 1; i <= varargc; i++)
printf(" \"%s\"", argtype[i]) > sysnumhdr
- if (isvarargs)
+ if (isvarargs) {
printf(" \"...\"") > sysnumhdr
+ for (i = varargc+1; i <= argc; i++)
+ printf(" \"%s\"", argtype[i]) > sysnumhdr
+ }
printf(" */\n") > sysnumhdr
printf("#define\t%s%s\t%d\n\n", constprefix, funcalias,