Parameter mismatch legality question

Stephen Friedl friedl at mtndew.Tustin.CA.US
Mon Nov 19 03:41:34 AEST 1990


In article <14502 at smoke.brl.mil>, gwyn at smoke.brl.mil (Doug Gwyn) writes:
> 
> IEEE 1003.1 decided that open() had to be officially variadic, i.e.
> 	extern int open( const char *path, int flags, ... );
> Since this requires ANSI C support, you're best off if you let <fcntl.h>
> declare open() for you.

Unless of course you are IBM building the RS6000, where the prototype
in <fcntl.h> omits the /const/ type qualifier on the pathname.  Mighty
nice of them not to burden us with qualifiers, eh?

     Steve :-(

-- 
Stephen J. Friedl, KA8CMY / I speak for me only / Tustin, CA / 3B2-kind-of-guy
+1 714 544 6561  / friedl at mtndew.Tustin.CA.US  / {uunet,attmail}!mtndew!friedl

"Gcc compiles an interesting language which is not ANSI C." - Henry Spencer



More information about the Comp.lang.c mailing list