Article View: comp.std.c
Article #6029Re: Re: open() prototype
From: Shankar Unni
Date: Sun, 14 May 1989 00:51
Date: Sun, 14 May 1989 00:51
13 lines
886 bytes
886 bytes
> 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 <fcntl.h> 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.
Technical Details
Message-ID:
<12570010@hpclscu.HP.COM>Path:
arc1-ca.pugleaf.net!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!shankarReferences:
<10249@smoke.BRL.MIL>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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