🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Paul Gerwitz Fri, 22 Sep 1989 19:51
Help with mini-inews on HP-UX
#297
Author: Paul Gerwitz
Date: Fri, 22 Sep 1989 19:51
65 lines
3178 bytes
I have an HP/9000-835 running HP-UX version 3.1 running as an nntp client.

Attached to this posting is the header or a news followup posted via
Pnews and mini-inews (nntp).  Here is what I've done: 

 1. I defined GHNAME in common/conf.h  (since HPUX supports it)

 2. This causes the appropriate sections of inews/uname.c to be compiled
 and linked to inews.  When inews is run via Pnews, it gets a segmentation
 violation.

 3. I traced this to the gethostname call in uname.c.  So I eliminated 
 uname.c from the cc line in the makefile for inews, thus pulling in the
 default uname(1) code from the systems library.  Since the default return
 for uname(1) is the systems type (HP-UX) that explains my strange 'From'
 and 'Path' lines in the enclosed  header.

 4. I have gotten around this problem by hardcoding the node name into
 inews but I would really like some advice.  Is the gethostcall in uname.c
 correct (both the HP and Sun man pages agree), or should I change the
 uname code to replect the struct that the HP system returns.

After the header file is the 'hunk' of inews/uname.c which is blowing up

Thanks in advance for you assistance

 +----------------------------------------------------------------------------+
 | Paul F Gerwitz       | SMTP: gerwitz@kodak.com                             |
 | Eastman Kodak Co     | UUCP: ..rutgers!rochester!kodak!eastman!gerwitz     |
 +----------------------------------------------------------------------------+

 --------------------------------------------------------------------------

>>From eastman!HP-UX!gerwitz Fri Sep 22 14:10:51 EDT 1989
>>Article 30 of to.eastman:
>>Path: eastman!HP-UX!gerwitz
>>>From: gerwitz@HP-UX.kodak.com (Paul Gerwitz)
>>Newsgroups: to.eastman
>>Subject: Re: test
>>Message-ID: <957@eastman.UUCP>
>>Date: 22 Sep 89 12:47:55 GMT
>>References: <955@eastman.UUCP>
>>Sender: news@eastman.UUCP
>>Reply-To: gerwitz@hpcore.UUCP (Paul Gerwitz)
>>Distribution: ek
>>Organization: Eastman Kodak Company, Rochester, NY
>>Lines: 12

 ----------------------------------------------------------------


#ifdef GHNAME
uname(uptr)
char	*uptr;
{
	gethostname(uptr, 256);
}
# define DONE
#endif

 +----------------------------------------------------------------------------+
 | Paul F Gerwitz       | SMTP: gerwitz@kodak.com                             |
 | Eastman Kodak Co     | UUCP: ..rutgers!rochester!kodak!eastman!gerwitz     |
 +----------------------------------------------------------------------------+
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads