Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!think!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.lang.c Subject: Re: Function prototypes versus open() Message-ID: <20838@sun.uucp> Date: Wed, 10-Jun-87 16:03:48 EDT Article-I.D.: sun.20838 Posted: Wed Jun 10 16:03:48 1987 Date-Received: Sat, 13-Jun-87 05:36:53 EDT References: <18346@ucbvax.BERKELEY.EDU> <8042@utzoo.UUCP> <2210@hoptoad.uucp> <749@bsu-cs.UUCP> Sender: news@sun.uucp Lines: 16 > It should be noted that the 4.2BSD manual page for open(2), dated 2 > July 1983, and the 4.3BSD manual page for open(2), dated May 14 1986, > both clearly show that open() has three, and exactly three, > parameters. The value of the third parameter is simply ignored in most > cases, which is quite different from saying that the presence of the > parameter is optional. It should also be noted that plenty of 4.[23]BSD code uses "open" as if the third argument were options, so the fact that the manual does not explicitly indicate the third parameter as optional probably does not mean that one is obliged to provide it. Plenty of 4.[23]BSD code will break on systems that don't support "open" with the third argument optional. Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com