DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T n

⟦465b656db⟧ TextFile

    Length: 1782 (0x6f6)
    Types: TextFile
    Names: »nntpxmit.h«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦5cced586a⟧ »EurOpenD3/news/nntp/nntp.1.5.7.tar.Z« 
        └─⟦7340f105e⟧ 
            └─⟦this⟧ »./xmit/nntpxmit.h« 

TextFile

/*
** Random stuff needed for nntpxmit
**
** This file also contains a lot of assumptions about what features
** are available on the local system - if something is not working
** to your liking, look them over carefully.
*/

#ifdef SIGRET
#undef SIGRET
#endif
#define SIGRET void	/* Newfangled signal() returns void, old returns int */

typedef	SIGRET	(*ifunp)();	/* pointer to function that returns */
				/* whatever signal() returns */

#define	dprintf	if (Debug) fprintf

#ifdef TIMEOUT
#undef TIMEOUT
#endif
#define	TIMEOUT	3600		/* seconds to read timeout in sfgets */

#ifndef	TRUE
#define	TRUE	1
#define	FALSE	0
#endif

/* in goodbye() wait (or not) for QUIT response */
#define	WAIT		TRUE
#define	DONT_WAIT	FALSE

/* in lockfd(), blocking, or non_blocking */
#define	BLOCK		FALSE
#define	DONT_BLOCK	TRUE

#ifndef FAIL
#define	FAIL		(-1)
#endif


/* DECNET support is only there if the DECNET compile-time option defined */
#define	T_IP_TCP	1	/* transport is IP/TCP */
#define	T_DECNET	2	/* transport is DECNET */
#define	T_FD		3	/* transport is a descriptor */

/* for syslog, if we compile it in */
#define	L_DEBUG		1
#define	L_INFO		2
#define	L_NOTICE	3
#define	L_WARNING	4

#if	(DECNET && !BSD4_2)	/* if we have DECNET, we're an Ultrix */
#define	BSD4_2
#undef	USG
#endif

#if	(EXCELAN && !USG)	/* if we have EXCELAN, we're an Uglix */
#define	USG
#undef	BSD4_2
#endif

#ifdef	USG			/* USG pinheadedness */
#ifndef dgux
#define	index	strchr
#define	rindex	strrchr
#define	u_long	unsigned long
#define	u_short	unsigned short
#endif
#endif

#ifdef	BSD4_2			/* look at all these goodies we get! */
#define	FTRUNCATE
#ifndef SYSLOG
#define	SYSLOG LOG_LOCAL6
#endif
#define	RELSIG
#endif	BSD4_2

#ifdef apollo
#undef SYSLOG			/* Apollos don't have this by default */
#endif