🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40516

Re: Diablo debugging problems...

#40516
From: Brad Knowles
Date: Tue, 05 Oct 1999 00:00
30 lines
2507 bytes
In article <brad-0510990113060001@dialup1042.brussels2.skynet.be>,
brad@shub-internet.org (Brad Knowles) wrote:

>     Anyway, now I just have to retrofit this xwrite() routine to all the
> places that currently call write(), and probably move xwrite() to
> something in lib/ (with suitable additions to the appropriate header
> files, etc...), so that I can use it everywhere.

    Blargh.  There are 67 different places in various pieces of Diablo
source code where write() is called.  I guess the easy way to fix this
problem is to define the xwrite() routine in lib/xwrite.c, make sure that
all objects are linked against it, and then do a #define in defs.h (or
perhaps vendor.h?) that ensures that all calls to write() actually go to
xwrite().

    Blech.  This reminds me of what Eric had to do to fix sendmail to use
a private "hard_syslog()" routine on OSes where syslog() doesn't guarantee
success (such as HP-UX).  Only it'll be slightly different for me, since
there's no simple catch-all library or header files that appear to be
obvious places to dump something like this, entailing modifications to the
XMakefile.inc as well as everything else.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 100?  If so, please contact me via private e-mail for details.

Technical Details
Message-ID: <brad-0510991317560001@brad.techos.skynet.be>
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
References: <brad-0110991517500001@brad.techos.skynet.be> <37f4e0b3$0$10188@news.execpc.com> <brad-0410991834410001@brad.techos.skynet.be> <yl670ndpwz.fsf@windlord.stanford.edu> <brad-0410992339180001@dialup1042.brussels2.skynet.be> <ylg0zqaja4.fsf@windlord.stanford.edu> <brad-0510990113060001@dialup1042.brussels2.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <brad-0510991317560001@brad.techos.skynet.be>
Subject: Re: Diablo debugging problems...
Date: Tue, 05 Oct 1999 00:00:00 +0000
From: brad@shub-internet.org (Brad Knowles)
References: <brad-0110991517500001@brad.techos.skynet.be> <37f4e0b3$0$10188@news.execpc.com> <brad-0410991834410001@brad.techos.skynet.be> <yl670ndpwz.fsf@windlord.stanford.edu> <brad-0410992339180001@dialup1042.brussels2.skynet.be> <ylg0zqaja4.fsf@windlord.stanford.edu> <brad-0510990113060001@dialup1042.brussels2.skynet.be>
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: 533027793
X-Complaints-To: abuse@skynet.be
X-Trace: news1.skynet.be 939122302 8283 195.238.1.121 (5 Oct 1999 11:18:22 GMT)
Organization: Shub-Internet
X-URL: http://www.shub-internet.org/
NNTP-Posting-Date: 5 Oct 1999 11:18:22 GMT
Newsgroups: news.software.nntp