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
11 * This symbol, if defined, indicates that the ioctl() routine is
12 * available to set I/O characteristics
14 #define HAS_IOCTL / **/
17 * This symbol, if defined, indicates that the routine utime() is
18 * available to update the access and modification times of files.
20 #define HAS_UTIME / **/
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.
27 #define HAS_GROUP / **/
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.
34 #define HAS_PASSWD / **/
39 #endif /* !PERL_MICRO */
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.
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
55 #define Stat_t struct stat
58 * This symbol is defined if this system has a stat structure declaring
61 #define USE_STAT_RDEV / **/
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.
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.
75 /* #define UNLINK_ALL_VERSIONS / **/
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.
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.)
94 /* #define ALTERNATE_SHEBANG "#!" / **/
96 #if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX) || defined(__NetBSD__) || defined(__FreeBSD__)
101 # define SIGABRT SIGILL
104 # define SIGILL 6 /* blech */
106 #define ABORT() kill(PerlProc_getpid(),SIGABRT);
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).
114 #define fwrite1 fwrite
116 #define Stat(fname,bufptr) stat((fname),(bufptr))
117 #define Fstat(fd,bufptr) fstat((fd),(bufptr))
118 #define Fflush(fp) fflush(fp)
119 #define Mkdir(path,mode) mkdir((path),(mode))
121 #ifndef PERL_SYS_INIT
122 # define PERL_SYS_INIT(c,v) PERL_FPU_INIT MALLOC_INIT
125 #ifndef PERL_SYS_TERM
126 #define PERL_SYS_TERM() OP_REFCNT_TERM; MALLOC_TERM
129 #define BIT_BUCKET "/dev/null"
133 #define USE_ENVIRON_ARRAY