3 * Copyright (c) 1997-2002, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 * The following symbols are defined if your operating system supports
12 * functions by that name. All Unixes I know of support them, thus they
13 * are not checked by the configuration script, but are directly defined
20 * This symbol, if defined, indicates that the ioctl() routine is
21 * available to set I/O characteristics
23 #define HAS_IOCTL / **/
26 * This symbol, if defined, indicates that the routine utime() is
27 * available to update the access and modification times of files.
29 #define HAS_UTIME / **/
32 * This symbol, if defined, indicates that the getgrnam() and
33 * getgrgid() routines are available to get group entries.
34 * The getgrent() has a separate definition, HAS_GETGRENT.
36 #define HAS_GROUP / **/
39 * This symbol, if defined, indicates that the getpwnam() and
40 * getpwuid() routines are available to get password entries.
41 * The getpwent() has a separate definition, HAS_GETPWENT.
43 #define HAS_PASSWD / **/
48 #endif /* !PERL_MICRO */
51 * This symbol, if defined, indicates that the program should
52 * use the routine my_binmode(FILE *fp, char iotype) to insure
53 * that a file is in "binary" mode -- that is, that no translation
54 * of bytes occurs on read or write operations.
59 * This symbol holds the type used to declare buffers for information
60 * returned by stat(). It's usually just struct stat. It may be necessary
61 * to include <sys/stat.h> and <sys/types.h> to get any typedef'ed
64 #define Stat_t struct stat
67 * This symbol is defined if this system has a stat structure declaring
70 #define USE_STAT_RDEV / **/
73 * This symbol, if defined, indicates that error messages should be
74 * should be generated in a format that allows the use of the Acme
75 * GUI/editor's autofind feature.
79 /* UNLINK_ALL_VERSIONS:
80 * This symbol, if defined, indicates that the program should arrange
81 * to remove all versions of a file if unlink() is called. This is
82 * probably only relevant for VMS.
84 /* #define UNLINK_ALL_VERSIONS / **/
87 * This symbol, if defined, indicates that the program is running under
88 * VMS. It is currently automatically set by cpps running under VMS,
89 * and is included here for completeness only.
94 * This symbol, if defined, contains a "magic" string which may be used
95 * as the first line of a Perl program designed to be executed directly
96 * by name, instead of the standard Unix #!. If ALTERNATE_SHEBANG
97 * begins with a character other then #, then Perl will only treat
98 * it as a command line if it finds the string "perl" in the first
99 * word; otherwise it's treated as the first line of code in the script.
100 * (IOW, Perl won't hand off to another interpreter via an alternate
101 * shebang sequence that might be legal Perl code.)
103 /* #define ALTERNATE_SHEBANG "#!" / **/
105 #if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
110 # define SIGABRT SIGILL
113 # define SIGILL 6 /* blech */
115 #define ABORT() kill(PerlProc_getpid(),SIGABRT);
118 * fwrite1() should be a routine with the same calling sequence as fwrite(),
119 * but which outputs all of the bytes requested as a single stream (unlike
120 * fwrite() itself, which on some systems outputs several distinct records
121 * if the number_of_items parameter is >1).
123 #define fwrite1 fwrite
125 #define Stat(fname,bufptr) stat((fname),(bufptr))
126 #define Fstat(fd,bufptr) fstat((fd),(bufptr))
127 #define Fflush(fp) fflush(fp)
128 #define Mkdir(path,mode) mkdir((path),(mode))
130 #ifndef PERL_SYS_INIT
131 # define PERL_SYS_INIT(c,v) PERL_FPU_INIT MALLOC_INIT
134 #ifndef PERL_SYS_TERM
135 #define PERL_SYS_TERM() OP_REFCNT_TERM; MALLOC_TERM
138 #define BIT_BUCKET "/dev/null"
142 #define USE_ENVIRON_ARRAY