*BSD News Article 22002


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: problems with fopen in "nn" (streams in kernel?)
Message-ID: <JPYHBFP@math.fu-berlin.de>
Followup-To: comp.os.386bsd.questions
Sender: Robert A. Wheeler
Nntp-Posting-Host: knock1.mgh.harvard.edu
Organization: Mass General Hospital, Boston
References: <kaxiras.749938489@cs.wisc.edu>
Date: Wed, 6 Oct 1993 21:54:37 GMT
Lines: 39

I'm running: FreeBSD 1.0E on a 486dx/33.
 
I'm trying to get "nn" working properly and am running into a problem with
the global.c:open_file.
 
nnmaster fails to open the MPID lockfile, evidently because the following
command returns 0 as a result:
 
        f = fopen(name, "W");
 
        where name is the name of a file to open
        and "W" indicates open (or create) for writing.
 
I've tried a dummy program to see if the problem was related to the fopen
code, and it failed as well.
 
>#include <stdio.h>
>
>main ()
>{
>    FILE *f;
>
>        f = fopen("./MPID", "W");
>        printf ("\n[opening (%d)]\n", f);
>}
 
 
This code yields:
knock1# ./test
[opening (0)]
 
 
Question: Must streams be configured in the kernel, like fifos are, and
if so, how? If that isn't the problem, does anyone have any idea?
 
Robert A. Wheeler
pipes@pipedream.mgh.harvard.edu
pipes@knock1.mgh.harvard.edu