Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site gatech.CSNET Path: utzoo!watmath!clyde!burl!ulysses!gatech!arnold From: arnold@gatech.CSNET (Arnold Robbins) Newsgroups: net.bugs.4bsd Subject: 4.2BSD does not define O_CREAT, and other O_.* constants Message-ID: <640@gatech.CSNET> Date: Wed, 24-Jul-85 14:27:01 EDT Article-I.D.: gatech.640 Posted: Wed Jul 24 14:27:01 1985 Date-Received: Thu, 25-Jul-85 22:08:19 EDT Distribution: net Organization: Pr1mebusters! Lines: 31 Subject: 4.2 BSD is incomplete Index: /usr/include/fcntl.h, /usr/include/sys/file.h Description: (This has probably been reported before, and I just haven't seen it....) 4.2 has the System III/V extended open(2) system call, but the include file is incomplete. In order to fully use the new open, you have to include . The System V open defines all of O_RDONLY, O_WRONLY, O_RDWR, O_NDELAY, O_APPEND, O_CREAT, O_TRUNC, and O_EXCL, and 4.2 does have these, but in . The file only defines the first 5. This is an unnecessary portability stumbling block. Repeat-by: Try to port a System V program which includes and uses open (file, O_RDWR|O_CREAT, 0666), and watch it die. Fix: Add the necessary definitions to from , or better yet, change the contents of to be #include , or make it a symbolic link to . -- Arnold Robbins CSNET: arnold@gatech ARPA: arnold%gatech.csnet@csnet-relay.arpa UUCP: { akgua, allegra, hplabs, ihnp4, seismo, ut-sally }!gatech!arnold Hello. You have reached the Coalition to Eliminate Answering Machines. Unfortunately, no one can come to the phone right now....