Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.std.c Subject: Re: Re: open() prototype Message-ID: <12570010@hpclscu.HP.COM> Date: 14 May 89 00:51:42 GMT References: <10249@smoke.BRL.MIL> Organization: Hewlett-Packard Calif. Language Lab Lines: 13 > The best interpretation is that open() really is a variadic-argument > function, that the third argument is required for O_CREAT and may be > present but is ignored otherwise, and that must be included > in applications to obtain the appropriate function declaration. What would have been really useful is some way to "default" the value of an argument: int open (char *, int, int = 0777); (a' la' C++). --- Shankar.