1 /*
2  *	Use this file as a template for new s- files
3  *	Created by Michael Pins <mtpins@isca.uiowa.edu>
4  *	August 15, 1996
5  */
6 
7 
8 /*
9  *	Include header files containing the following definitions:
10  *
11  * 		off_t, time_t, struct stat
12  */
13 
14 #include <sys/types.h>
15 #include <sys/stat.h>
16 
17 
18 /*
19  *	Define if your system has system V like ioctls
20  */
21 
22 #define	HAVE_TERMIOS_H			/* */
23 
24 /*
25  *	Define to use terminfo database.
26  *	Otherwise, termcap is used
27  */
28 
29 /* #define	USE_TERMINFO			/* */
30 
31 /*
32  *	Specify the library (or libraries) containing the termcap/terminfo
33  *	routines.
34  *
35  *	Notice:  nn only uses the low-level terminal access routines
36  *	(i.e. it does not use curses).
37  */
38 
39 #define TERMLIB	-ltermcap
40 
41 /*
42  *	Define HAVE_STRCHR if strchr() and strrchr() are available
43  */
44 
45 #define HAVE_STRCHR			/* */
46 
47 /*
48  *	Define if a signal handler has type void (see signal.h)
49  */
50 
51 #define	SIGNAL_HANDLERS_ARE_VOID	/* */
52 
53 /*
54  *	Define if signals must be set again after they are caught
55  */
56 
57 #define	RESET_SIGNAL_WHEN_CAUGHT	/* */
58 
59 /*
60  *	Define FAKE_INTERRUPT if a keyboard interrupt (^C) cannot interrupt
61  *	a read() system call.  This happens on a few BSD based systems
62  *	which don't have SV_INTERRUPT defined in <signal.h> and no
63  *	siginterrupt() call to make systems call interruptable.
64  *	However, if siginterrupt() is available, but SV_INTERRUPT isn't
65  *	defined, then simply define that instead of FAKE_INTERRUPT!
66  */
67 
68 /* #define FAKE_INTERRUPT	/* */
69 
70 /*
71  *	Define HAVE_HARD_SLEEP if sending a SIGALRM isn't enough to
72  *	interrupt a sleep() call - typical symptom is that nnadmin W
73  *	doesn't wakeup the nnmaster.
74  */
75 
76 /* #define HAVE_HARD_SLEEP		/* BSD ? */
77 
78 /*
79  *	Define HAVE_UALARM if your system has a 4.3 BSD like ualarm() call.
80  *	Else define MICRO_ALARM(n) to timeout in n/10 seconds if possible.
81  *	Don't define either if system only has the standard alarm() call.
82  */
83 
84 #define HAVE_UALARM			/* BSD 4.3 */
85 /* #define MICRO_ALARM(n)	xxxx(n)	/* */
86 
87 /*
88  *	Define if your system has BSD like job control (SIGTSTP works)
89  */
90 
91 #define HAVE_JOBCONTROL			/* */
92 
93 
94 /*
95  *	Define if your system has a 4.3BSD like syslog library.
96  */
97 
98 #define HAVE_SYSLOG
99 
100 /*
101  *	Define if your system provides the "directory(3X)" access routines
102  *
103  *	If true, include the header file(s) required by the package below
104  *	(remember that <sys/types.h> or equivalent is included above)
105  *	Also typedef Direntry to the proper struct type.
106  */
107 
108 #define	HAVE_DIRECTORY			/* */
109 
110 #include <dirent.h>			/* System V */
111 /* #include <sys/dir.h>				/* BSD */
112 
113 typedef struct dirent Direntry;		/* System V */
114 /* typedef struct direct Direntry;		/* BSD */
115 
116 /*
117  *	Define if your system has a mkdir() library routine
118  */
119 
120 #define	HAVE_MKDIR			/* */
121 
122 /*
123  *	Pick one:
124  *	Define HAVE_GETHOSTNAME if you have a BSD like gethostname routine.
125  *	Define HAVE_UNAME if a system V compatible uname() is available.
126  *	Define HOSTNAME_FILE "...." to a file containing the hostname.
127  *	Define HOSTNAME_WHOAMI if sysname is defined in <whoami.h>.
128  *
129  *	As a final resort, define HOSTNAME to the name of your system
130  *	(in config.h).
131  */
132 
133 #define HAVE_GETHOSTNAME			/* BSD systems */
134 /* #define HAVE_UNAME				/* System V */
135 /* #define HOSTNAME_FILE "/etc/uucpname"	/* or another file */
136 /* #define HOSTNAME_WHOAMI			/* in <whoami.h> */
137 
138 /*
139  *	Define HAVE_MULTIGROUP if system has simultaneous multiple group
140  *	membership capability (BSD style).
141  *	Also define NGROUPS or include the proper .h file if NGROUPS is
142  *	not defined in <sys/param.h>.
143  */
144 
145 #define HAVE_MULTIGROUP	/* BSD */
146 
147 /*
148  *	Define DETACH_TERMINAL to be a command sequence which
149  *	will detatch a process from the control terminal
150  *	Also include system files needed to perform this HERE.
151  *	If not possible, just define it (empty)
152  */
153 
154 /* #include "...." */
155 
156 #define	DETACH_TERMINAL	setpgrp();
157 
158 
159 /*
160  *	Specify where the Bourne Shell is.
161  */
162 
163 #define SHELL		"/bin/sh"
164 
165 /*
166  *	Define OLD_AWK to the name of the "old awk" program if your
167  *	standard 'awk' is 'nawk' (new awk).  Use full path if necessary.
168  *	(This is a temporary hack until I get time to fix the scripts
169  *	which breaks nawk).
170  */
171 
172 /* #define OLD_AWK	"oawk"		/* */
173 
174 /*
175  *	Define AVOID_SHELL_EXEC if the system gets confused by
176  *		#!/bin/sh
177  *	lines in shell scripts, e.g. only reads #! and thinks it
178  *	is a csh script.
179  */
180 
181 /* #define AVOID_SHELL_EXEC		/* */
182 
183 /*
184  *	Specify the default mailer
185  */
186 
187 /* #define	MAILX		"/usr/bin/mailx"	/* SysV */
188 #define	MAILX	"/usr/bin/Mail"		/* BSD */
189 
190 /*
191  *	Define the maximum length of any pathname that may occur
192  */
193 
194 #define	FILENAME 	256
195 
196 /*
197  *	Define USE_MALLOC_H if the faster malloc() in -lmalloc should be used.
198  *	This requires that -lmalloc is added to EXTRA_LIB below.
199  *
200  *	You can tune the malloc package through the following definitions
201  *	according to the descriptions in malloc(3X):
202  */
203 
204 /* #define USE_MALLOC_H		/* */
205 
206 /* #define MALLOC_GRAIN		sizeof(double)		/* M_GRAIN */
207 /* #define MALLOC_MAXFAST	(MALLOC_GRAIN*4)	/* M_MXFAST */
208 /* #define MALLOC_FASTBLOCKS	100			/* M_NLBLKS */
209 
210 /*
211  *	NNTP support requires tcp/ip with socket interface.
212  *
213  *	Define NO_RENAME if the rename() system call is not available.
214  *	Define EXCELAN if the tcp/ip package is EXCELAN based.
215  *	Define NNTP_EXTRA_LIB to any libraries required only for nntp.
216  */
217 
218 /* #define NO_RENAME			/* */
219 /* #define EXCELAN			/* */
220 /* #define NNTP_EXTRA_LIB -lsocket	/* */
221 
222 /*
223  * 	Define RESIZING to make nn understand dynamic window-resizing.
224  * 	(It uses the TIOCGWINSZ ioctl found on most 4.3BSD systems)
225  *	This should be defined in the conf/s-xxxxx.h file.
226  */
227 
228 #define RESIZING	/* */
229 #define _SYS_TTYDEV_H_	/* ??? looping headers ??? */
230 
231 /*
232  *	Define standard compiler flags here:
233  */
234 
235 #define COMPILER_FLAGS
236 
237 /*
238  *	Define standard loader flags here:
239  */
240 
241 #define LOADER_FLAGS
242 
243 /*
244  *	If your system requires other libraries when linking nn
245  *	specify them here:
246  */
247 
248 #define EXTRA_LIB
249 
250