NN & C-news

Tim Northrup tim at brspyr1.BRS.Com
Thu Jul 27 07:06:43 AEST 1989


warren at ginosko.samsung.com (Warren Lavallee) writes:

>	NN sorta works now, but there is a bug that is specific to the
>Pyramid in it.  If you select an article, in the newsgroup menu, then 
>hit S to save it, if SEGFAULT's and dumps core...


I have been using NN for about a week now -- seems okay, but I had to
come up with system specific m- and s- files.  Since they are kind of
short, and is probably a problem for all Pyramid users, I'll include
them here.  Just modify your config.h file to use these system specific
files, and go to it.  This was compiled under OSx 4.4c with NN at patch
level 4 in the UCB universe.  No other code changes were needed.

Hope this works for y'all ...

							-- Tim

#-----cut here-----cut here-----cut here-----cut here-----
#!/bin/sh
# shar:	Shell Archiver
#	Run the following text with /bin/sh to create:
#	m-pyramid.h
#	s-osx4-4.h
# This archive created: Wed Jul 26 17:02:16 1989
# By:	Tim Northrup (BRS Information Technologies, Latham NY)
echo shar: extracting m-pyramid.h '(671 characters)'
sed 's/^XX//' << \SHAR_EOF > m-pyramid.h
XX
XX/************** Machine (and compiler) dependent definitions. **************
XX *
XX *	Define appropriate types for the following ranges of integer
XX *	variables.  These are processor & compiler dependent, but the
XX *	distributed definitions will probably work on most systems.
XX */
XX
XX
XX
XX/*      MACHINE TYPE	DEFINED TYPE		VALUE RANGE	*/
XX
XXtypedef unsigned char	int8;		/*        0 ..     255 */
XXtypedef short		int16;		/*  -10,000 ..  10,000 */
XXtypedef long		int32;		/* -100,000 .. 100,000 */
XXtypedef unsigned long	uint32;		/* 	  0 ..  2^31-1 */
XX
XX
XX
XX/*
XX *	Define NETWORK_BYTE_ORDER if the machine's longs are
XX *	already in network byte order.
XX */
XX
XX#define NETWORK_BYTE_ORDER	/* */
XX
SHAR_EOF
if test 671 -ne "`wc -c m-pyramid.h`"
then
echo shar: error transmitting m-pyramid.h '(should have been 671 characters)'
fi
echo shar: extracting s-osx4-4.h '(2913 characters)'
sed 's/^XX//' << \SHAR_EOF > s-osx4-4.h
XX/*
XX *	This version is for 4.3 systems
XX */
XX
XX
XX/*
XX *	Include haeder files containing the following definitions:
XX *
XX * 		off_t, time_t, struct stat
XX */
XX
XX#include <sys/types.h>
XX#include <sys/stat.h>
XX
XX
XX/*
XX *	Define if your system has system V like ioctls
XX */
XX
XX#undef	HAVE_TERMIO			/* */
XX
XX/*
XX *	Define to use terminfo database.
XX *	Otherwise, termcap is used
XX */
XX
XX#undef	USE_TERMINFO			/* */
XX
XX/*
XX *	Specify the library (or libraries) containing the termcap/terminfo
XX *	routines.
XX *
XX *	Notice:  nn only uses the low-level terminal access routines
XX *	(i.e. it does not use curses).
XX */
XX
XX#define TERMLIB	-ltermlib
XX
XX
XX/*
XX * 	Define NO_VARARGS if the varargs feature is not available
XX *
XX *	Also define NO_VARARGS if the vprintf/vsprintf routines are not
XX *	available (however, this will only by safe on some machines, like
XX *	the VAX).
XX *	
XX */
XX
XX#define NO_VARARGS
XX
XX/*
XX *	Define HAVE_STRCHR if strchr() and strrchr() are available
XX */
XX
XX#include <strings.h>
XX
XX#undef HAVE_STRCHR			/* */
XX#define STRCSPN
XX
XX/*
XX *	Define if a signal handler has type void (see signal.h)
XX */
XX
XX#undef	SIGNAL_HANDLERS_ARE_VOID	/* */
XX
XX/*
XX *	Define MICRO_ALARM to timeout in 0.1 seconds if possible
XX */
XX
XX#define MICRO_ALARM()	alarm(1)	/* */
XX
XX/*
XX *	Define if your system has BSD like job control (SIGTSTP works)
XX */
XX
XX#define HAVE_JOBCONTROL			/* */
XX
XX/*
XX *	Define if your system has a 4.3BSD like syslog library.
XX */
XX
XX#undef HAVE_SYSLOG
XX
XX/*
XX *	Define if your system provides the "directory(3X)" access routines
XX *
XX *	If true, include the header file(s) required by the package below
XX *	(remember that <sys/types.h> or equivalent is included above)
XX *	Also typedef Direntry to the proper struct type.
XX */
XX
XX#define	HAVE_DIRECTORY			/* */
XX
XX#include <sys/dir.h>			/* BSD */
XX
XXtypedef struct direct Direntry;		/* BSD */
XX
XX/*
XX *	Define if your system has a mkdir() library routine
XX */
XX
XX#define	HAVE_MKDIR			/* */
XX
XX/*
XX *	Define if your system provides a BSD like gethostname routine.
XX *	Otherwise, define HAVE_UNAME if uname() is avaiable.
XX */
XX
XX#define	HAVE_GETHOSTNAME	/* BSD systems */
XX
XX/*
XX *	Define DETATCH_TERMINAL to be a command sequence which 
XX *	will detatch a process from the control terminal
XX *	Also include system files needed to perform this HERE.
XX *	If not possible, just define it (empty)
XX */
XX
XX#include <sys/file.h>	/* for O_RDONLY */
XX#include <sys/ioctl.h>	/* for TIOCNOTTY */
XX
XX#define	DETATCH_TERMINAL \
XX    { int t = open("/dev/tty", O_RDONLY); \
XX	  if (t >= 0) ioctl(t, TIOCNOTTY, (int *)0), close(t); }
XX
XX      
XX/* 
XX *	Specify where the Bourne Shell is.
XX */
XX
XX#define SHELL		"/bin/sh"
XX
XX/*
XX *	Specify the default mailer to be invoked by nnmail
XX */
XX
XX#define	MAILX	"/usr/ucb/Mail"		/* BSD */
XX
XX
XX/*
XX *	Specify the default pager & options.
XX */
XX
XX#define	PAGER		"more"
XX
XX/*
XX *	Specify the default print command and options.
XX */
XX
XX#define	PRINTER		"lpr -p -JNN-print"
XX
XX
XX/*
XX *	Define the maximum length of any pathname that may occur
XX */
XX
XX#define	FILENAME 	256
SHAR_EOF
if test 2913 -ne "`wc -c s-osx4-4.h`"
then
echo shar: error transmitting s-osx4-4.h '(should have been 2913 characters)'
fi
#	End of shell archive
exit 0
-- 
Tim Northrup      		  +------------------------------------------+
+---------------------------------+         GEnie:  T.Northrup               |
UUCP: uunet!crdgw1!brspyr1!tim    |   Air Warrior:  "Duke"                   |
ARPA: tim at brspyr1.BRS.Com	  +------------------------------------------+



More information about the Comp.sys.pyramid mailing list