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 | |
8 | /* HAS_IOCTL: |
9 | * This symbol, if defined, indicates that the ioctl() routine is |
10 | * available to set I/O characteristics |
11 | */ |
95146c06 |
12 | #define HAS_IOCTL / **/ |
a0d0e21e |
13 | |
14 | /* HAS_UTIME: |
15 | * This symbol, if defined, indicates that the routine utime() is |
16 | * available to update the access and modification times of files. |
17 | */ |
95146c06 |
18 | #define HAS_UTIME / **/ |
a0d0e21e |
19 | |
1aef975c |
20 | /* HAS_GROUP |
21 | * This symbol, if defined, indicates that the getgrnam(), |
22 | * getgrgid(), and getgrent() routines are available to |
23 | * get group entries. |
79072805 |
24 | */ |
95146c06 |
25 | #define HAS_GROUP / **/ |
1aef975c |
26 | |
27 | /* HAS_PASSWD |
28 | * This symbol, if defined, indicates that the getpwnam(), |
29 | * getpwuid(), and getpwent() routines are available to |
30 | * get password entries. |
31 | */ |
95146c06 |
32 | #define HAS_PASSWD / **/ |
79072805 |
33 | |
1aef975c |
34 | #define HAS_KILL |
35 | #define HAS_WAIT |
16d20bd9 |
36 | |
47234eb8 |
37 | /* USEMYBINMODE |
38 | * This symbol, if defined, indicates that the program should |
39 | * use the routine my_binmode(FILE *fp, char iotype) to insure |
40 | * that a file is in "binary" mode -- that is, that no translation |
41 | * of bytes occurs on read or write operations. |
42 | */ |
43 | #undef USEMYBINMODE |
44 | |
45 | /* USE_STAT_RDEV: |
46 | * This symbol is defined if this system has a stat structure declaring |
47 | * st_rdev |
48 | */ |
95146c06 |
49 | #define USE_STAT_RDEV / **/ |
47234eb8 |
50 | |
51 | /* ACME_MESS: |
52 | * This symbol, if defined, indicates that error messages should be |
53 | * should be generated in a format that allows the use of the Acme |
54 | * GUI/editor's autofind feature. |
55 | */ |
56 | #undef ACME_MESS /**/ |
57 | |
16d20bd9 |
58 | /* UNLINK_ALL_VERSIONS: |
59 | * This symbol, if defined, indicates that the program should arrange |
60 | * to remove all versions of a file if unlink() is called. This is |
61 | * probably only relevant for VMS. |
62 | */ |
95146c06 |
63 | /* #define UNLINK_ALL_VERSIONS / **/ |
16d20bd9 |
64 | |
65 | /* VMS: |
66 | * This symbol, if defined, indicates that the program is running under |
67 | * VMS. It is currently automatically set by cpps running under VMS, |
68 | * and is included here for completeness only. |
69 | */ |
95146c06 |
70 | /* #define VMS / **/ |
ed6116ce |
71 | |
72 | #if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX) |
73 | # include <signal.h> |
74 | #endif |
75 | |
79072805 |
76 | #ifndef SIGABRT |
77 | # define SIGABRT SIGILL |
78 | #endif |
79 | #ifndef SIGILL |
80 | # define SIGILL 6 /* blech */ |
81 | #endif |
82 | #define ABORT() kill(getpid(),SIGABRT); |
83 | |
c07a80fd |
84 | #define BIT_BUCKET "/dev/null" |
85 | #define PERL_SYS_INIT(c,v) |
bef10a86 |
86 | #define PERL_SYS_TERM() |
87 | #define dXSUB_SYS int dummy |
c07a80fd |
88 | |
a0d0e21e |
89 | /* |
90 | * fwrite1() should be a routine with the same calling sequence as fwrite(), |
91 | * but which outputs all of the bytes requested as a single stream (unlike |
92 | * fwrite() itself, which on some systems outputs several distinct records |
93 | * if the number_of_items parameter is >1). |
94 | */ |
95 | #define fwrite1 fwrite |
96 | |
97 | #define Stat(fname,bufptr) stat((fname),(bufptr)) |
98 | #define Fstat(fd,bufptr) fstat((fd),(bufptr)) |
a5f75d66 |
99 | #define Fflush(fp) fflush(fp) |
a0d0e21e |
100 | |
101 | #define my_getenv(var) getenv(var) |
1aef975c |
102 | |