This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Okay, here's your official unofficial closure leak patch
[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 /* HAS_IOCTL:
9  *      This symbol, if defined, indicates that the ioctl() routine is
10  *      available to set I/O characteristics
11  */
12 #define HAS_IOCTL               /**/
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  */
18 #define HAS_UTIME               /**/
19
20 /* HAS_GROUP
21  *      This symbol, if defined, indicates that the getgrnam(),
22  *      getgrgid(), and getgrent() routines are available to 
23  *      get group entries.
24  */
25 #define HAS_GROUP               /**/
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  */
32 #define HAS_PASSWD              /**/
33
34 #define HAS_KILL
35 #define HAS_WAIT
36
37 #if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
38 # include <signal.h>
39 #endif
40
41 #ifndef SIGABRT
42 #    define SIGABRT SIGILL
43 #endif
44 #ifndef SIGILL
45 #    define SIGILL 6         /* blech */
46 #endif
47 #define ABORT() kill(getpid(),SIGABRT);
48
49 /*
50  * fwrite1() should be a routine with the same calling sequence as fwrite(),
51  * but which outputs all of the bytes requested as a single stream (unlike
52  * fwrite() itself, which on some systems outputs several distinct records
53  * if the number_of_items parameter is >1).
54  */
55 #define fwrite1 fwrite
56
57 #define Stat(fname,bufptr) stat((fname),(bufptr))
58 #define Fstat(fd,bufptr)   fstat((fd),(bufptr))
59
60 #define my_getenv(var) getenv(var)
61