No empty .Rs/.Re
[netbsd-mini2440.git] / libexec / cron / compat.h
blobf747b1814db7cc05f2cfd6e612576d3edbd4fcd6
1 /* Copyright 1993 by Paul Vixie
2 * All rights reserved
4 * Distribute freely, except: don't remove my name from the source or
5 * documentation (don't take credit for my work), mark your changes (don't
6 * get me blamed for your possible bugs), don't alter or remove this
7 * notice. May be sold if buildable source is provided to buyer. No
8 * warrantee of any kind, express or implied, is included with this
9 * software; use at your own risk, responsibility for damages (if any) to
10 * anyone resulting from the use of this software rests entirely with the
11 * user.
13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
14 * I'll try to keep a version up to date. I can be reached as follows:
15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
19 * $Id: compat.h,v 1.1 1994/01/05 20:40:12 jtc Exp $
22 #ifndef __P
23 # ifdef __STDC__
24 # define __P(x) x
25 # else
26 # define __P(x) ()
27 # define const
28 # endif
29 #endif
31 #if defined(UNIXPC) || defined(unixpc)
32 # define UNIXPC 1
33 # define ATT 1
34 #endif
36 #if defined(hpux) || defined(_hpux)
37 # define HPUX 1
38 # define seteuid(e) setresuid(-1,e,-1)
39 # define setreuid(r,e) setresuid(r,e,-1)
40 #endif
42 #if defined(_IBMR2)
43 # define AIX 1
44 #endif
46 #if defined(__convex__)
47 # define CONVEX 1
48 #endif
50 #if defined(sgi) || defined(_sgi) || defined(__sgi)
51 # define IRIX 1
52 /* IRIX 4 hdrs are broken: one cannot #include both <stdio.h>
53 * and <stdlib.h> because they disagree on system(), perror().
54 * Therefore we must zap the "const" keyword BEFORE including
55 * either of them.
57 # define const
58 #endif
60 #if defined(_UNICOS)
61 # define UNICOS 1
62 #endif
64 #ifndef POSIX
65 # if (BSD >= 199103) || defined(__linux) || defined(ultrix) || defined(AIX) ||\
66 defined(HPUX) || defined(CONVEX) || defined(IRIX)
67 # define POSIX
68 # endif
69 #endif
71 #ifndef BSD
72 # if defined(ultrix)
73 # define BSD 198902
74 # endif
75 #endif
77 /*****************************************************************/
79 #if !defined(BSD) && !defined(HPUX) && !defined(CONVEX) && !defined(__linux)
80 # define NEED_VFORK
81 #endif
83 #if (!defined(BSD) || (BSD < 198902)) && !defined(__linux) && \
84 !defined(IRIX) && !defined(NeXT)
85 # define NEED_STRCASECMP
86 #endif
88 #if (!defined(BSD) || (BSD < 198911)) && !defined(__linux) &&\
89 !defined(IRIX) && !defined(UNICOS)
90 # define NEED_STRDUP
91 #endif
93 #if (!defined(BSD) || (BSD < 198911)) && !defined(POSIX) && !defined(NeXT)
94 # define NEED_STRERROR
95 #endif
97 #if defined(HPUX) || defined(AIX) || defined(UNIXPC)
98 # define NEED_FLOCK
99 #endif
101 #ifndef POSIX
102 # define NEED_SETSID
103 #endif
105 #if (defined(POSIX) && !defined(BSD)) && !defined(__linux)
106 # define NEED_GETDTABLESIZE
107 #endif
109 #if (BSD >= 199103)
110 # define HAVE_SAVED_UIDS
111 #endif
113 #if !defined(ATT) && !defined(__linux) && !defined(IRIX) && !defined(UNICOS)
114 # define USE_SIGCHLD
115 #endif
117 #if !defined(AIX) && !defined(UNICOS)
118 # define SYS_TIME_H 1
119 #else
120 # define SYS_TIME_H 0
121 #endif
123 #if defined(BSD) && !defined(POSIX)
124 # define USE_UTIMES
125 #endif
127 #if defined(AIX) || defined(HPUX) || defined(IRIX)
128 # define NEED_SETENV
129 #endif
131 #if !defined(UNICOS) && !defined(UNIXPC)
132 # define HAS_FCHOWN
133 #endif
135 #if !defined(UNICOS) && !defined(UNIXPC)
136 # define HAS_FCHMOD
137 #endif