Article View: news.software.nntp
Article #17679Re: Linux compilation problem (was Re: Diablo V1.08 RELEASED (Major Release))
From: Manuel J. Galan
Date: Sat, 10 May 1997 00:00
Date: Sat, 10 May 1997 00:00
42 lines
2130 bytes
2130 bytes
In article <5ktamh$i6l$1@flea.best.net>,
dillon@flea.best.net (Matt Dillon) writes:
>:In article <5ks1ie$bei$1@flea.best.net>,
>:Matt Dillon <dillon@flea.best.net> wrote:
>:> Diablo V1.08 has been released. This released represents a MAJOR
>> upgrade. Please read the RELEASE_NOTES and INSTALL instructions
>:...
>
> There is a linux compilation problem in release V1.08. the problem
> stems from diablo doing this:
>
> fileno(fi) = -1;
>
> Why? Well, because I use fdopen() and I don't want fclose() to close
> the descriptor. I can't dup() the descriptor for the fdopen() because
> closing the dup'd descriptor will release the record locks, so I'm
> stuck.
>
> Anyone have any solutions? The only thing I can think of is to
> manually overwrite the appropriate field in the FILE structure.
Quick and 'dirty' hack Matt, will this work?
---------------------------------------------------------------------------
--- diablo.c Mon May 5 07:09:26 1997
+++ diablo.c.linux Sat May 10 15:05:28 1997
@@ -1587,7 +1587,7 @@
* force an illegal descriptor because we will loose our
* flock if we close a dup(), so we can't use a dup.
*/
- fileno(fo) = -1;
+ fo->_fileno = -1; /* XXX */
fclose(fo);
}
---------------------------------------------------------------------------
--
Manuel J. Galan
Technical Details
Message-ID:
<337481c8.0@noticias.ulpgc.es>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5ks1ie$bei$1@flea.best.net> <5ktamh$i6l$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <337481c8.0@noticias.ulpgc.es> Subject: Re: Linux compilation problem (was Re: Diablo V1.08 RELEASED (Major Release)) Date: Sat, 10 May 1997 00:00:00 +0000 From: root@ulpgc.es (Manuel J. Galan) References: <5ks1ie$bei$1@flea.best.net> <5ktamh$i6l$1@flea.best.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 240572898 X-NNTP-Posting-Host: mgmux.ulpgc.es Organization: Universidad de Las Palmas de G.C. Newsgroups: news.software.nntp