From b7889e538975fff4c1a9c1eaeb59531780904bf9 Mon Sep 17 00:00:00 2001 From: afresh1 Date: Mon, 27 Feb 2023 00:18:00 +0000 Subject: [PATCH] Include varags types in sys/syscalls.h comment Separated with the existing "..." requested by deraadt@ OK gnezdo@ --- sys/kern/makesyscalls.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 96f4d6064aa..5a51d7d8001 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -1,5 +1,5 @@ #! /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 @@ -396,8 +396,11 @@ function putent(nodefs, compatwrap) { 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, -- 2.20.1