From: neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz)
Subject: Re: fdopen() Bug
Date: 11 Jun 1994 17:04:08 GMT [thread overview]
Message-ID: <2tcqq8INNq7p@usenet.pa.dec.com> (raw)
In-Reply-To: 1994Jun9.125544.4297@vmsmail.gov.bc.ca
In article <1994Jun9.125544.4297@vmsmail.gov.bc.ca> cschuber@passer.osg.gov.bc.ca (Cy Schubert - BCSC Open Systems Group) writes:
>
>main()
>{
> FILE *lockfile;
> int lockfd, i;
> char hostname[80];
>
> lockfd = open("xyz", O_CREAT , S_IRUSR | S_IWUSR);
make that: open("xyz", O_CREAT | O_WRONLY , S_IRUSR | S_IWUSR);
> lockfile = fdopen(lockfd, "r");
make that: fdopen(lockfd, "w");
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Advanced Technology Group, Digital Equipment Corporation
neideck@nestvx.enet.dec.com
prev parent reply other threads:[~1994-06-11 17:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-09 19:55 fdopen() Bug Cy Schubert - BCSC Open Systems Group
1994-06-11 17:04 ` Burkhard Neidecker-Lutz [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox