4 * This symbol, if defined, indicates that the ioctl() routine is
5 * available to set I/O characteristics
10 * This symbol, if defined, indicates that the routine utime() is
11 * available to update the access and modification times of files.
13 #define HAS_UTIME /**/
19 # define SIGABRT SIGILL
22 # define SIGILL 6 /* blech */
24 #define ABORT() kill(getpid(),SIGABRT);
26 #define BIT_BUCKET "/dev/null" /* Will this work? */
28 #define PERL_SYS_INIT(argcp, argvp) do { \
29 _response(argcp, argvp); \
30 _wildcard(argcp, argvp); } while (0)
34 * fwrite1() should be a routine with the same calling sequence as fwrite(),
35 * but which outputs all of the bytes requested as a single stream (unlike
36 * fwrite() itself, which on some systems outputs several distinct records
37 * if the number_of_items parameter is >1).
39 #define fwrite1 fwrite
41 #define my_getenv(var) getenv(var)
43 /*****************************************************************************/
45 #include <stdlib.h> /* before the following definitions */
46 #include <unistd.h> /* before the following definitions */
49 #define getcwd _getcwd2
51 /* This guy is needed for quick stdstd */
53 #if defined(USE_STDIO_PTR) && defined(STDIO_PTR_LVALUE) && defined(STDIO_CNT_LVALUE)
54 # define _filbuf _fill
55 /* Perl uses ungetc only with successful return */
56 # define ungetc(c,fp) \
57 (FILE_ptr(fp) > FILE_base(fp) && c == (int)*(FILE_ptr(fp) - 1) \
58 ? (--FILE_ptr(fp), ++FILE_cnt(fp), (int)c) : ungetc(c,fp))
61 #define OP_BINARY O_BINARY
63 #define OS2_STAT_HACK 1
66 #define Stat(fname,bufptr) os2_stat((fname),(bufptr))
67 #define Fstat(fd,bufptr) fstat((fd),(bufptr))
71 #define S_IFBLK 0120000
72 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
76 #define Stat(fname,bufptr) stat((fname),(bufptr))
77 #define Fstat(fd,bufptr) fstat((fd),(bufptr))