Path: utzoo!attcan!uunet!lll-winken!lll-lcc!pyramid!nsc!andrew From: andrew@nsc.nsc.com (Andrew Lue) Newsgroups: comp.unix.questions Subject: Question about discrepancy of open()'s documentation; BSD vs. SYS V Keywords: open, documentation Message-ID: <5068@nsc.nsc.com> Date: 18 May 88 00:06:24 GMT Organization: National Semiconductor, Sunnyvale Lines: 17 I'm experimenting with file I/O on a BSD system. According to K&R, the format of the open() function is: fd = open(name,rwmode); where rwmode is 0, 1, or 2. In the BSD documents, the format is open(path, flags, mode); With my experiments, I can get the first format to work. When is the second format applicable? When I invoke the C compiler, I don't pass any flags. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Andrew H. Lue {decwrl|sun}!nsc!andrew