This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document the flags of pv_uni_display().
[perl5.git] / unixish.h
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  */
7
8 #ifndef PERL_MICRO
9
10 /* HAS_IOCTL:
11  *      This symbol, if defined, indicates that the ioctl() routine is
12  *      available to set I/O characteristics
13  */
14 #define HAS_IOCTL               / **/
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  */
20 #define HAS_UTIME               / **/
21
22 /* HAS_GROUP
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.
26  */
27 #define HAS_GROUP               / **/
28
29 /* HAS_PASSWD
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.
33  */
34 #define HAS_PASSWD              / **/
35
36 #define HAS_KILL
37 #define HAS_WAIT
38
39 #endif /* !PERL_MICRO */
40   
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
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
57 /* USE_STAT_RDEV:
58  *      This symbol is defined if this system has a stat structure declaring
59  *      st_rdev
60  */
61 #define USE_STAT_RDEV   / **/
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
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  */
75 /* #define UNLINK_ALL_VERSIONS          / **/
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  */
82 /* #define VMS          / **/
83
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 it 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
96 #if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
97 # include <signal.h>
98 #endif
99
100 #ifndef SIGABRT
101 #    define SIGABRT SIGILL
102 #endif
103 #ifndef SIGILL
104 #    define SIGILL 6         /* blech */
105 #endif
106 #define ABORT() kill(PerlProc_getpid(),SIGABRT);
107
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))
118 #define Fflush(fp)         fflush(fp)
119 #define Mkdir(path,mode)   mkdir((path),(mode))
120
121 #ifndef PERL_SYS_INIT
122 #  define PERL_SYS_INIT(c,v) PERL_FPU_INIT MALLOC_INIT
123 #endif
124
125 #ifndef PERL_SYS_TERM
126 #define PERL_SYS_TERM()         OP_REFCNT_TERM; MALLOC_TERM
127 #endif
128
129 #define BIT_BUCKET "/dev/null"
130
131 #define dXSUB_SYS
132
133 #define USE_ENVIRON_ARRAY
134