Include varags types in sys/syscalls.h comment
authorafresh1 <afresh1@openbsd.org>
Mon, 27 Feb 2023 00:18:00 +0000 (00:18 +0000)
committerafresh1 <afresh1@openbsd.org>
Mon, 27 Feb 2023 00:18:00 +0000 (00:18 +0000)
Separated with the existing "..." requested by deraadt@
OK gnezdo@

sys/kern/makesyscalls.sh

index 96f4d60..5a51d7d 100644 (file)
@@ -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,