*BSD News Article 22097


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!math.fu-berlin.de!knock1.mgh.harvard.edu!pipes
From: pipes@knock1.mgh.harvard.edu (Robert A. Wheeler)
Subject: Re: problems with fopen in "nn" (streams in kernel?)
Message-ID: <II1HBSZE@math.fu-berlin.de>
Followup-To: comp.os.386bsd.questions
Summary: grrrr!
Sender: Robert A. Wheeler
Nntp-Posting-Host: knock1.mgh.harvard.edu
Organization: Mass General Hospital, Boston
References: <kaxiras.749938489@cs.wisc.edu> <JPYHBFP@math.fu-berlin.de> <CEJAJI.LyJ@festival.ed.ac.uk>
Date: Fri, 8 Oct 1993 12:53:08 GMT
Lines: 19

In article <CEJAJI.LyJ@festival.ed.ac.uk> richard@castle.ed.ac.uk (Richard Tobin) writes:
>In article <JPYHBFP@math.fu-berlin.de> pipes@knock1.mgh.harvard.edu (Robert A. Wheeler) writes:
>>        f = fopen(name, "W");
>>        and "W" indicates open (or create) for writing.
>
>No, "w" indicates open for writing.  "W" doesn't indicate anything.
>
>-- Richard

	Okay, okay, I used "W" because the man page shows an example
with "W", not "w". The test program then works. (I swear I thoought I
tried it that way before though)

	However, the similar statement in global.c _fails_ to open or
create the file. This is running as su root, so I don't see how it could
be a permission problem, either.