Commit | Line | Data |
79072805 |
1 | /* |
2 | * The following symbols are defined if your operating system supports |
3 | * functions by that name. All Unixes I know of support them, thus they |
4 | * are not checked by the configuration script, but are directly defined |
5 | * here. |
6 | */ |
a0d0e21e |
7 | |
12ae5dfc |
8 | #ifndef PERL_MICRO |
9 | |
a0d0e21e |
10 | /* HAS_IOCTL: |
11 | * This symbol, if defined, indicates that the ioctl() routine is |
12 | * available to set I/O characteristics |
13 | */ |
95146c06 |
14 | #define HAS_IOCTL / **/ |
a0d0e21e |
15 | |
16 | /* HAS_UTIME: |
17 | * This symbol, if defined, indicates that the routine utime() is |
18 | * available to update the access and modification times of files. |
19 | */ |
95146c06 |
20 | #define HAS_UTIME / **/ |
a0d0e21e |
21 | |
1aef975c |
22 | /* HAS_GROUP |
28e8609d |
23 | * This symbol, if defined, indicates that the getgrnam() and |
24 | * getgrgid() routines are available to get group entries. |
25 | * The getgrent() has a separate definition, HAS_GETGRENT. |
79072805 |
26 | */ |
95146c06 |
27 | #define HAS_GROUP / **/ |
1aef975c |
28 | |
29 | /* HAS_PASSWD |
28e8609d |
30 | * This symbol, if defined, indicates that the getpwnam() and |
31 | * getpwuid() routines are available to get password entries. |
32 | * The getpwent() has a separate definition, HAS_GETPWENT. |
1aef975c |
33 | */ |
95146c06 |
34 | #define HAS_PASSWD / **/ |
79072805 |
35 | |
1aef975c |
36 | #define HAS_KILL |
37 | #define HAS_WAIT |
12ae5dfc |
38 | |
3ebb1980 |
39 | #endif /* !PERL_MICRO */ |
16d20bd9 |
40 | |
47234eb8 |
41 | /* USEMYBINMODE |
42 | * This symbol, if defined, indicates that the program should |
43 | * use the routine my_binmode(FILE *fp, char iotype) to insure |
44 | * that a file is in "binary" mode -- that is, that no translation |
45 | * of bytes occurs on read or write operations. |
46 | */ |
47 | #undef USEMYBINMODE |
48 | |
61bb5906 |
49 | /* Stat_t: |
50 | * This symbol holds the type used to declare buffers for information |
51 | * returned by stat(). It's usually just struct stat. It may be necessary |
52 | * to include <sys/stat.h> and <sys/types.h> to get any typedef'ed |
53 | * information. |
54 | */ |
55 | #define Stat_t struct stat |
56 | |
47234eb8 |
57 | /* USE_STAT_RDEV: |
58 | * This symbol is defined if this system has a stat structure declaring |
59 | * st_rdev |
60 | */ |
95146c06 |
61 | #define USE_STAT_RDEV / **/ |
47234eb8 |
62 | |
63 | /* ACME_MESS: |
64 | * This symbol, if defined, indicates that error messages should be |
65 | * should be generated in a format that allows the use of the Acme |
66 | * GUI/editor's autofind feature. |
67 | */ |
68 | #undef ACME_MESS /**/ |
69 | |
16d20bd9 |
70 | /* UNLINK_ALL_VERSIONS: |
71 | * This symbol, if defined, indicates that the program should arrange |
72 | * to remove all versions of a file if unlink() is called. This is |
73 | * probably only relevant for VMS. |
74 | */ |
95146c06 |
75 | /* #define UNLINK_ALL_VERSIONS / **/ |
16d20bd9 |
76 | |
77 | /* VMS: |
78 | * This symbol, if defined, indicates that the program is running under |
79 | * VMS. It is currently automatically set by cpps running under VMS, |
80 | * and is included here for completeness only. |
81 | */ |
95146c06 |
82 | /* #define VMS / **/ |
ed6116ce |
83 | |
44a8e56a |
84 | /* ALTERNATE_SHEBANG: |
85 | * This symbol, if defined, contains a "magic" string which may be used |
86 | * as the first line of a Perl program designed to be executed directly |
87 | * by name, instead of the standard Unix #!. If ALTERNATE_SHEBANG |
88 | * begins with a character other then #, then Perl will only treat |
89 | * it as a command line if if finds the string "perl" in the first |
90 | * word; otherwise it's treated as the first line of code in the script. |
91 | * (IOW, Perl won't hand off to another interpreter via an alternate |
92 | * shebang sequence that might be legal Perl code.) |
93 | */ |
94 | /* #define ALTERNATE_SHEBANG "#!" / **/ |
95 | |
607f7f20 |
96 | #if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX) || defined(__NetBSD__) || defined(__FreeBSD__) |
ed6116ce |
97 | # include <signal.h> |
98 | #endif |
99 | |
79072805 |
100 | #ifndef SIGABRT |
101 | # define SIGABRT SIGILL |
102 | #endif |
103 | #ifndef SIGILL |
104 | # define SIGILL 6 /* blech */ |
105 | #endif |
7766f137 |
106 | #define ABORT() kill(PerlProc_getpid(),SIGABRT); |
79072805 |
107 | |
a0d0e21e |
108 | /* |
109 | * fwrite1() should be a routine with the same calling sequence as fwrite(), |
110 | * but which outputs all of the bytes requested as a single stream (unlike |
111 | * fwrite() itself, which on some systems outputs several distinct records |
112 | * if the number_of_items parameter is >1). |
113 | */ |
114 | #define fwrite1 fwrite |
115 | |
116 | #define Stat(fname,bufptr) stat((fname),(bufptr)) |
117 | #define Fstat(fd,bufptr) fstat((fd),(bufptr)) |
a5f75d66 |
118 | #define Fflush(fp) fflush(fp) |
8cc95fdb |
119 | #define Mkdir(path,mode) mkdir((path),(mode)) |
a0d0e21e |
120 | |
60e4866f |
121 | #ifndef PERL_SYS_INIT |
c77b533b |
122 | # define PERL_SYS_INIT(c,v) PERL_FPU_INIT MALLOC_INIT |
60e4866f |
123 | #endif |
124 | |
125 | #ifndef PERL_SYS_TERM |
534825c4 |
126 | #define PERL_SYS_TERM() OP_REFCNT_TERM; MALLOC_TERM |
60e4866f |
127 | #endif |
35f48355 |
128 | |
129 | #define BIT_BUCKET "/dev/null" |
130 | |
a3c8358c |
131 | #define dXSUB_SYS |
13b6e58c |
132 | |
133 | #define USE_ENVIRON_ARRAY |
134 | |