Subject: Re: standards/19209: test(1)'s -r, -w, and -x don't match POSIX for root (or 4.4BSD, or even V7)
To: NetBSD Bugs and PR posting List <firstname.lastname@example.org>
From: Andrew Brown <email@example.com>
Date: 12/01/2002 01:00:14
>> > + static void * ckmalloc(size_t);
>> Not needed for static function
>Tell that to the compiler -- i.e. to GCC in particular, and more
>specifically the version used by various NetBSDs, not me. If I were to
>rule on this I'd say prototypes are not necessary or even allowed: use
>lint! (C prototypes are a bad implementation of a poorly concieved idea
>that does not have the desired effect unless it's so stringently forced
>that people baulk at it in the way you have. In the mean while the
>standard parameter promotion rules of traditional C are violated and old
>code cannot just be recompiled with new compilers. but that's a whole
>other debate... :-)
oh, and i suppose that adhering to an established abi isn't important?
prototypes work to establish the abi. if you don't have prototypes,
then you can't write portable code. lint can't do anything to enforce
a proper abi.
|-----< "CODE WARRIOR" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."