xref: /386bsd/usr/src/libexec/uucp/conf.h (revision a2142627)
1 /* conf.h */
2 /* Configuration header file for Taylor UUCP.
3    Generated on Mon Jun  1 16:01:13 PDT 1992.  */
4 
5 /* Set MAIL_PROGRAM to a program which takes a mail address as an argument
6    and accepts a mail message to send to that address on stdin.  */
7 #define MAIL_PROGRAM "/bin/mail"
8 
9 /* Set ECHO_PROGRAM to a program which echoes its arguments; if echo
10    is a shell builtin you can just use "echo".  */
11 #define ECHO_PROGRAM "/bin/echo"
12 
13 /* The following macros indicate what header files you have.  Set the
14    macro to 1 if you have the corresponding header file, or 0 if you
15    do not.  */
16 #define HAVE_STRING_H 1   	/* <string.h> */
17 #define HAVE_STRINGS_H 1   	/* <strings.h> */
18 #define HAVE_UNISTD_H 1   	/* <unistd.h> */
19 #define HAVE_STDLIB_H 1   	/* <stdlib.h> */
20 #define HAVE_LIMITS_H 1   	/* <limits.h> */
21 #define HAVE_TIME_H 1   	/* <time.h> */
22 #define HAVE_SYS_WAIT_H 1   	/* <sys/wait.h> */
23 #define HAVE_SYS_IOCTL_H 1   	/* <sys/ioctl.h> */
24 #define HAVE_DIRENT_H 1   	/* <dirent.h> */
25 #define HAVE_MEMORY_H 1   	/* <memory.h> */
26 #define HAVE_SYS_PARAM_H 1   	/* <sys/param.h> */
27 #define HAVE_UTIME_H 1   	/* <utime.h> */
28 #define HAVE_FCNTL_H 1   	/* <fcntl.h> */
29 #define HAVE_SYS_FILE_H 1   	/* <sys/file.h> */
30 #define HAVE_LIBC_H 0   	/* <libc.h> */
31 #define HAVE_SYSEXITS_H 1   	/* <sysexits.h> */
32 #define HAVE_POLL_H 0   	/* <poll.h> */
33 #define HAVE_STROPTS_H 0   	/* <stropts.h> */
34 
35 /* Set SIGtype to the return type of a signal handler.  On newer systems
36    this will be void; some older systems use int.  */
37 #define SIGtype int
38 
39 /* Set HAVE_TIME_T to 1 if time_t is defined in <time.h>, as required by
40    the ANSI C standard.  */
41 #define HAVE_TIME_T 1
42 
43 /* Set HAVE_SYS_TIME_T to 1 if time_t is defined in <sys/types.h>;  this
44    is only checked if HAVE_TIME_T is 0.  */
45 #define HAVE_SYS_TIME_T 1
46 
47 /* Set HAVE_SYS_TIME_AND_TIME_H to 1 if <time.h> and <sys/time.h> can both
48    be included in a single source file; if you don't have either or both of
49    them, it doesn't matter what you set this to.  */
50 #define HAVE_SYS_TIME_AND_TIME_H 1
51 
52 /* Set HAVE_TERMIOS_AND_SYS_IOCTL_H to 1 if <termios.h> and <sys/ioctl.h>
53    can both be included in a single source file; if you don't have either
54    or both of them, it doesn't matter what you set this to.  */
55 #define HAVE_TERMIOS_AND_SYS_IOCTL_H 1
56 
57 /* If you are configuring by hand, you should set one of the terminal
58    driver options in policy.h.  If you are autoconfiguring, the script
59    will check whether your system defines CBREAK, which is a terminal
60    setting; if your system supports CBREAK, and you don't set a terminal
61    driver in policy.h, the code will assume that you have a BSD style
62    terminal driver.  */
63 #define HAVE_CBREAK 1
64 
65 /* The package needs several standard types.  If you are using the
66    configure script, it will look in standard places for these types,
67    and give default definitions for them here if it doesn't find them.
68    The default definitions should work on most systems, but you may
69    want to check them.  If you are configuring by hand, you will have
70    to figure out whether the types are defined on your system, and
71    what they should be defined to.
72 
73    Each of the types should be defined using #define.  For example,
74    #define pid_t int
75    */
76 
77 /* The type pid_t is used to hold a process ID number.  It is normally
78    defined in <sys/types.h>.  This is the type returned by the
79    functions fork or getpid.  Usually int will work fine.  */
80 /* A definition of pid_t was found on your system.  */
81 
82 /* The type uid_t is used to hold a user ID number.  It is normally
83    defined in <sys/types.h>.  This is the type returned by the getuid
84    function.  Usually int will work fine.  */
85 /* A definition of uid_t was found on your system.  */
86 
87 /* The type gid_t is used to hold a group ID number.  It is sometimes
88    defined in <sys/types.h>.  This is the type returned by the getgid
89    function.  Usually int will work fine.  */
90 /* A definition of gid_t was found on your system.  */
91 
92 /* The type off_t is used to hold an offset in a file.  It is sometimes
93    defined in <sys/types.h>.  This is the type of the second argument to
94    the lseek function.  Usually long will work fine.  */
95 /* A definition of off_t was found on your system.  */
96 
97 /* Set HAVE_SIG_ATOMIC_T_IN_SIGNAL_H if the type sig_atomic_t is defined
98    in <signal.h> as required by ANSI C.  */
99 #define HAVE_SIG_ATOMIC_T_IN_SIGNAL_H 0
100 
101 /* Set HAVE_SIG_ATOMIC_T_IN_TYPES_H if the type sig_atomic_t is defined
102    in <sys/types.h>.  This is ignored if HAVE_SIG_ATOMIC_T_IN_SIGNAL_H is
103    set to 1.  */
104 #define HAVE_SIG_ATOMIC_T_IN_TYPES_H 0
105 
106 /* The type sig_atomic_t is used to hold a value which may be
107    referenced in a single atomic operation.  If it is not defined in
108    either <signal.h> or <sys/types.h>, you may want to give it a
109    definition here (if you don't, the code will use char).  If your
110    compiler does not support sig_atomic_t, there is no type which is
111    really correct; fortunately, for this package it does not really
112    matter very much.  */
113 
114 /* When Taylor UUCP is talking to another instance of itself, it will
115    tell the other side the size of a file before it is transferred.
116    If the package can determine how much disk space is available, it
117    will use this information to avoid filling up the disk.  Define one
118    of the following macros to tell the code how to determine the
119    amount of available disk space.  It is possible that none of these
120    are appropriate; it will do no harm to use none of them, but, of
121    course, nothing will then prevent the package from filling up the
122    disk.  Note that this space check is only useful when talking to
123    another instance of Taylor UUCP.
124 
125    FS_STATVFS    the statvfs function
126    FS_USG_STATFS the four argument statfs function
127    FS_MNTENT     the two argument statfs function with the f_bsize field
128    FS_STATFS     the two argument statfs function with the f_fsize field
129    FS_GETMNT     the two argument statfs function with the fd_req field
130    FS_USTAT      the ustat function with 512 byte blocks.  */
131 #define FS_STATFS
132 
133 /* Set HAVE_VOID to 1 if the compiler supports declaring functions with
134    a return type of void and casting values to void.  */
135 #define HAVE_VOID 1
136 
137 /* Set HAVE_UNSIGNED_CHAR to 1 if the compiler supports the type unsigned
138    char.  */
139 #define HAVE_UNSIGNED_CHAR 1
140 
141 /* Set HAVE_ERRNO_DECLARATION to 1 if errno is declared in <errno.h>.  */
142 #define HAVE_ERRNO_DECLARATION 1
143 
144 /* Set COMBINED_UNBLOCK to 1 if the flags O_NONBLOCK and O_NDELAY can
145    both be specified at once on a file descriptor.  If your system
146    does not support both flags, it doesn't matter what you set this
147    to.  */
148 #define COMBINED_UNBLOCK 1
149 
150 /* There are now a number of functions to check for.  For each of these,
151    the macro HAVE_FUNC should be set to 1 if your system has FUNC.  For
152    example, HAVE_STRERROR should be set to 1 if your system has strerror,
153    0 otherwise.  */
154 
155 /* Taylor UUCP provides its own versions of the following functions,
156    or knows how to work around their absence.  */
157 #define HAVE_MEMSET 1
158 #define HAVE_MEMCMP 1
159 #define HAVE_MEMCHR 1
160 #define HAVE_MEMCPY 1
161 #define HAVE_BCOPY 1
162 #define HAVE_BCMP 1
163 #define HAVE_BZERO 1
164 #define HAVE_MEMMOVE 1
165 #define HAVE_STRCHR 1
166 #define HAVE_STRRCHR 1
167 #define HAVE_INDEX 1
168 #define HAVE_RINDEX 1
169 #define HAVE_STRERROR 1
170 #define HAVE_STRTOL 1
171 #define HAVE_STRSTR 1
172 #define HAVE_STRDUP 1
173 #define HAVE_STRCASECMP 1
174 #define HAVE_STRICMP 0
175 #define HAVE_STRLWR 0
176 #define HAVE_BSEARCH 1
177 #define HAVE_VFPRINTF 1
178 #define HAVE_REMOVE 1
179 #define HAVE_FTRUNCATE 1
180 #define HAVE_LTRUNC 0
181 #define HAVE_RENAME 1
182 #define HAVE_OPENDIR 1
183 #define HAVE_DUP2 1
184 #define HAVE_WAITPID 1
185 #define HAVE_WAIT4 1
186 
187 /* If you have either sigsetjmp or setret, it will be used instead of
188    setjmp.  These functions will only be used if your system restarts
189    system calls after interrupts (see HAVE_RESTARTABLE_SYSCALLS,
190    below).  */
191 #define HAVE_SIGSETJMP 0
192 #define HAVE_SETRET 0
193 
194 /* The code needs to know what function to use to set a signal
195    handler.  If will try to use each of the following functions in
196    turn.  If none are available, it will use signal, which is assumed
197    to always exist.  */
198 #define HAVE_SIGACTION 1
199 #define HAVE_SIGVEC 1
200 #define HAVE_SIGSET 0
201 
202 /* The code will try to use each of the following functions in turn
203    when blocking signals from delivery.  If none are available, a
204    relatively unimportant race condition will exist.  */
205 #define HAVE_SIGPROCMASK 1
206 #define HAVE_SIGBLOCK 1
207 #define HAVE_SIGHOLD 0
208 
209 /* If you have either of the following functions, it will be used to
210    determine the number of file descriptors which may be open.
211    Otherwise, the code will use OPEN_MAX if defined, then NOFILE if
212    defined, then 20.  */
213 #define HAVE_GETDTABLESIZE 1
214 #define HAVE_SYSCONF 0
215 
216 /* The code will use one of the following functions when detaching
217    from a terminal.  One of these must exist.  */
218 #define HAVE_SETPGRP 1
219 #define HAVE_SETSID 1
220 
221 /* If you do not specify the local node name in the main configuration
222    file, Taylor UUCP will try to use each of the following functions
223    in turn.  If neither is available, you must specify the local node
224    name in the configuration file.  */
225 #define HAVE_GETHOSTNAME 1
226 #define HAVE_UNAME 0
227 
228 /* The code will try to use each of the following functions in turn to
229    determine the current time.  If none are available, it will use
230    time, which is assume to always exist.  */
231 #define HAVE_GETTIMEOFDAY 1
232 #define HAVE_FTIME 0
233 
234 /* If neither gettimeofday nor ftime is available, the code will use
235    times (if available) to measure a span of time.  See also the
236    discussion of TIMES_TICK in policy.h.  */
237 #define HAVE_TIMES 1
238 
239 /* When a chat script requests a pause of less than a second with \p,
240    Taylor UUCP will try to use each of the following functions in
241    turn.  If none are available, it will sleep for a full second.
242    Also, the (non-portable) tstuu program requires either select or
243    poll.  */
244 #define HAVE_NAPMS 0
245 #define HAVE_NAP 0
246 #define HAVE_USLEEP 1
247 #define HAVE_POLL 0
248 #define HAVE_SELECT 1
249 
250 /* If the getgrent function is available, it will be used to determine
251    all the groups a user belongs to when checking file access
252    permissions.  */
253 #define HAVE_GETGRENT 1
254 
255 /* If the socket function is available, TCP support code will be
256    compiled in.  */
257 #define HAVE_SOCKET 1
258 
259 /* The code needs to know to how to get the name of the current
260    directory.  If getcwd is available it will be used, otherwise if
261    getwd is available it will be used.  Otherwise, set PWD_PROGRAM to
262    the name of the program which will print the name of the current
263    working directory.  */
264 #define HAVE_GETCWD 1
265 #define HAVE_GETWD 1
266 #define PWD_PROGRAM unused
267 
268 /* The code needs to know how to create directories.  If you have the
269    mkdir function, set HAVE_MKDIR to 1 and replace @UUDIR@ in
270    Makefile.in with '# ' (the configure script will set @UUDIR@
271    according to the variable UUDIR).  Otherwise, set HAVE_MKDIR to 0,
272    remove @UUDIR@ from Makefile.in, and set MKDIR_PROGRAM to the name
273    of the program which will create a directory named on the command
274    line.  */
275 #define HAVE_MKDIR 1
276 #define MKDIR_PROGRAM unused
277 
278 /* That's the end of the list of the functions.  Now there are a few
279    last miscellaneous items.  */
280 
281 /* On some systems times is declared in <sys/times.h> as returning
282    int, so the code cannot safely declare it as returning long.  On
283    the other hand, on some systems times will not work unless it is
284    declared as returning long.  Set TIMES_DECLARATION_OK to 1 if times
285    can be safely declared as returning long.  If you will not be using
286    times, it doesn't matter what you set this to.  */
287 #define TIMES_DECLARATION_OK 0
288 
289 /* Set HAVE_BSD_PGRP to 1 if your getpgrp call takes 1 argument and
290    your setpgrp calls takes 2 argument (on System V they generally
291    take no arguments).  You can safely set this to 1 on System V,
292    provided the call will compile without any errors.  */
293 #define HAVE_BSD_PGRP 0
294 
295 /* Set HAVE_UNION_WAIT to 1 if union wait is defined in the header
296    file <sys/wait.h>.  */
297 #define HAVE_UNION_WAIT 1
298 
299 /* Define UTIME_NULL_MISSING if utime with a NULL second argument does not
300    set the file times to the current time.  */
301 #define UTIME_NULL_MISSING
302 
303 /* Set HAVE_LONG_NAMES to 1 if the system supports file names longer
304    than 14 characters.  */
305 #define HAVE_LONG_NAMES 1
306 
307 /* If slow system calls are restarted after interrupts, set
308    HAVE_RESTARTABLE_SYSCALLS to 1.  This is ignored if HAVE_SIGACTION
309    is 1 or if HAVE_SIGVEC is 1 and SV_INTERRUPT is defined in
310    <signal.h>.  In both of these cases system calls can be prevented
311    from restarting.  */
312 #define HAVE_RESTARTABLE_SYSCALLS 1
313