Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Oct 1996 13:11:38 +0200
From:      Poul-Henning Kamp <phk@critter.tfs.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sys@freefall.freebsd.org, jkh@freefall.freebsd.org, peter@spinner.dialix.com, sos@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/isa syscons.c 
Message-ID:  <5699.844341098@critter.tfs.com>
In-Reply-To: Your message of "Thu, 03 Oct 1996 19:04:51 %2B1000." <199610030904.TAA08440@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199610030904.TAA08440@godzilla.zeta.org.au>, Bruce Evans writes:

>>But that's because you cannot say
>>
>>	sy_call_t
>>	read 
>>	{
>>		if (proc != curproc)
>>		...
>>	}
>>
>>(Which I think is a bug in C btw.)
>
>That's because the names in prototypes are unused :-).  The attributes
>could be used.
>
>>You don't use the typedef when you declare the function.
>
>Yes you do.  The above is a definition, not a declaration :-).
Sorry, I always swap those two.

>>That's why I have used the SYSCTL_HANDLER_ARGS solution for sysctl.
>
>I don't like macros like these, although I introduced similar ones
>for ddb functions.

I don't like them either, but they are the least horrible solution.

--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@ref.tfs.com       TRW Financial Systems, Inc.
Future will arrive by its own means, progress not so.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5699.844341098>