Made syscallargs.h lint-friendly, so that it can be included in libc sources
more easily.
This commit is contained in:
parent
ac3e0f6b6c
commit
40c8c13901
@ -1,5 +1,5 @@
|
||||
#! /bin/sh -
|
||||
# $NetBSD: makesyscalls.sh,v 1.50 2001/07/08 19:08:48 wiz Exp $
|
||||
# $NetBSD: makesyscalls.sh,v 1.51 2001/10/30 21:52:27 manu Exp $
|
||||
#
|
||||
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
|
||||
# All rights reserved.
|
||||
@ -199,8 +199,10 @@ NR == 1 {
|
||||
printf "\tunion {\t\t\t\t\t\t\t\t\\\n" > sysarghdr
|
||||
printf "\t\t%s pad;\t\t\t\t\t\t\\\n", registertype > sysarghdr
|
||||
printf "\t\tstruct { x datum; } le;\t\t\t\t\t\\\n" > sysarghdr
|
||||
printf "\t\tstruct {\t\t\t\t\t\t\\\n" > sysarghdr
|
||||
printf "\t\t\tint8_t pad[ (sizeof (%s) < sizeof (x))\t\\\n", \
|
||||
printf "\t\tstruct { /* LINTED zero array dimension */\t\t\\\n" \
|
||||
> sysarghdr
|
||||
printf "\t\t\tint8_t pad[ /* CONSTCOND */\t\t\t\\\n" > sysarghdr
|
||||
printf "\t\t\t\t(sizeof (%s) < sizeof (x))\t\\\n", \
|
||||
registertype > sysarghdr
|
||||
printf "\t\t\t\t? 0\t\t\t\t\t\\\n" > sysarghdr
|
||||
printf "\t\t\t\t: sizeof (%s) - sizeof (x)];\t\\\n", \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: syscallargs.h,v 1.102 2001/07/01 18:07:33 thorpej Exp $ */
|
||||
/* $NetBSD: syscallargs.h,v 1.103 2001/10/30 21:52:26 manu Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
@ -18,8 +18,9 @@
|
||||
union { \
|
||||
register_t pad; \
|
||||
struct { x datum; } le; \
|
||||
struct { \
|
||||
int8_t pad[ (sizeof (register_t) < sizeof (x)) \
|
||||
struct { /* LINTED zero array dimension */ \
|
||||
int8_t pad[ /* CONSTCOND */ \
|
||||
(sizeof (register_t) < sizeof (x)) \
|
||||
? 0 \
|
||||
: sizeof (register_t) - sizeof (x)]; \
|
||||
x datum; \
|
||||
|
Loading…
Reference in New Issue
Block a user