-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.h
executable file
·149 lines (138 loc) · 5.93 KB
/
conf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* example RCS compile-time configuration */
/* $Id: conf.st,v 1.5 91/01/30 12:04:02 apratt Exp $ */
/*
* This is an example RCS compile-time configuration.
* If you can't get conf.sh to work as described in the Makefile,
* copy this file to conf.h and edit conf.h by hand.
*/
#define exitmain(n) return n /* how to exit from main() */
#if !MAKEDEPEND
# include <stdio.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <limits.h>
# include <stdlib.h>
# include <string.h>
# include <unistd.h>
/* #include <vfork.h> does not work. */
#endif /* !MAKEDEPEND */
#define has_tmpnam 1 /* does tmpnam() work? (if not, mktemp is used) */
#define has_sys_dir_h 1 /* Does #include <sys/dir.h> work? */
#define has_sys_param_h 1 /* Does #include <sys/param.h> work? */
#define has_sys_wait_h 1 /* Does #include <sys/wait.h> work? */
/* #define const */ /* The 'const' keyword works. */
/* #define volatile */ /* The 'volatile' keyword works. */
/* typedef int gid_t; */ /* Standard headers define gid_t. */
/*typedef u_short mode_t;*/ /* Standard headers define mode_t. */
/* typedef int pid_t; */ /* Standard headers define pid_t. */
/* typedef int sig_atomic_t; */ /* Standard headers define sig_atomic_t. */
/* typedef int size_t; */ /* Standard headers define size_t. */
/* typedef long time_t; */ /* Standard headers define time_t. */
/* typedef int uid_t; */ /* Standard headers define uid_t. */
#define has_prototypes 1 /* Do function prototypes work? */
#if has_prototypes
# define P(params) params
# if !MAKEDEPEND
# include <stdarg.h>
# endif
# define vararg_start(ap,p) va_start(ap,p)
#else
# define P(params) ()
# if !MAKEDEPEND
# include <varargs.h>
# endif
# define vararg_start(ap,p) va_start(ap)
#endif
#define has_getuid 0 /* Does getuid() work? */
/*#define declare_getpwuid struct passwd *getpwuid P((int));*/
#define has_rename 1 /* Does rename() work? */
#define bad_rename 1 /* Does rename(A,B) fail if B exists? */
#define VOID (void) /* 'VOID e;' discards the value of an expression 'e'. */
#define signal_type void /* type returned by signal handlers */
#define sig_zaps_handler 0 /* Must a signal handler reinvoke signal()? */
#define has_seteuid 0 /* Does seteuid() obey Posix 1003.1-1990? */
#define has_sigaction 0 /* Does struct sigaction work? */
#define has_sigblock 0 /* Does sigblock() work? */
#define has_sys_siglist 0 /* Does sys_siglist[] work? */
#define exit_type void /* type returned by exit() */
#define underscore_exit_type void /* type returned by _exit() */
typedef size_t fread_type; /* type returned by fread() and fwrite() */
typedef void *malloc_type; /* type returned by malloc() */
#define free_type void /* type returned by free() */
typedef size_t strlen_type; /* type returned by strlen() */
#define has_getcwd 1 /* Does getcwd() work? */
#define has_getwd 1 /* Does getwd() work? */
#define has_vfork 0 /* Does vfork() work? */
#define has_vfprintf 1 /* Does vfprintf() work? */
#define CO "co" /* name of 'co' program */
#define COMPAT2 0 /* Are version 2 files supported? */
#define DATEFORM "%.2d.%.2d.%.2d.%.2d.%.2d.%.2d" /* e.g. 01.01.01.01.01.01 */
#define DIFF "diff" /* name of 'diff' program */
#define DIFF_FLAGS , "-n" /* Make diff output suitable for RCS. */
#define DIFF_L 1 /* Does diff -L work? */
#define EXECRCS execv /* variant of execv() to use on subprograms */
#define MERGE "merge" /* name of 'merge' program */
#define RCSDIR "RCS\\" /* subdirectory for RCS files */
#define SLASH '\\' /* path name separator */
#define TMPDIR "/tmp/" /* default directory for temporary files */
#define DIFF_PATH_HARDWIRED 1 /* Is DIFF absolute, not relative? */
#define ROOTPATH(p) ((p)[0]==SLASH)
#define RCSSEP ',' /* separator for RCSSUF */
#define SENDMAIL "/bin/mail" /* how to send mail */
/* AKP: added switches to control things I needed to make this work on */
/* a mostly-ANSI, partly-POSIX, but not-UNIX, system. Leave them all zero */
/* to get the distribution code for the features they control. */
/* HEAD_REV is added so you can say "rcs -nRELEASE:head *.c" to do the */
/* same thing that rcsfreeze does: apply the name to the head revision of */
/* each named file. 'head' is special-cased in the function lookupsym, */
/* and applies anywhere a symbolic revision spec can be used. */
#define DONT_USE_SIGNALS 1 /* 1=just ignore signal handling */
#define DONT_USE_FORK 1 /* 1=use system() instead */
#define DONT_USE_MAIL 1 /* 1=ask the user to tell lock holder */
#define ANSI_INCLUDE_FILES 1 /* 1=don't redeclare ANSI stuff in headers */
#define USE_AKP_PAIRS 1 /* 1=use 8.3 filename pair code */
#define HEAD_REV 1 /* 1=allow "head" as revision name */
#define terrible_rename 1 /* 1=rename(A,B) fails if A is read-only */
#define bad_unlink 1 /* 1=unlink(A) fails if A is read-only */
#define AKP_MODES 1 /* 1=define WORKMODE per gcc lib, not unix */
#define AKP_BUGFIXES 1 /* 1=enable misc AKP bug fixes */
/* these defines are for Atari TOS, where system() just returns the exit code. */
#if DONT_USE_FORK
#ifdef WIFEXITED
# undef WIFEXITED
#endif
#ifdef WEXITSTATUS
# undef WEXITSTATUS
#endif
#define WIFEXITED(stat_val) ((stat_val) >= 0)
#define WEXITSTATUS(stat_val) (stat_val)
/* end if DONT_USE_FORK */
#endif
#if !ANSI_INCLUDE_FILES
#if 0 /* These agree with <stdio.h>. */
int fprintf P((FILE*,const char*,...));
int printf P((const char*,...));
# if has_vfprintf
int vfprintf P((FILE*,const char*,...));
# else
void _doprnt P((const char*,...));
# endif
#endif
#if 0
char *sprintf P((char*,const char*,...));
int chmod P((const char*,mode_t));
int fcntl P((int,int,...));
int open P((const char*,int,...));
mode_t umask P((mode_t));
pid_t wait P((int*));
#endif
#ifndef O_CREAT
int creat P((const char*,mode_t));
#endif
#if has_seteuid
int setegid P((gid_t));
int seteuid P((uid_t));
#endif
/* end if !ANSI_INCLUDE_FILES */
#endif