home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / perl / perl_1 / Perlsource / source / !Perl / h / unixish < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.7 KB  |  67 lines

  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. #ifdef RISCOS
  14. #undef HAS_IOCTL
  15. #endif
  16.  
  17. /* HAS_UTIME:
  18.  *    This symbol, if defined, indicates that the routine utime() is
  19.  *    available to update the access and modification times of files.
  20.  */
  21. #undef HAS_UTIME        /**/
  22.  
  23. /* HAS_GROUP
  24.  *    This symbol, if defined, indicates that the getgrnam(),
  25.  *    getgrgid(), and getgrent() routines are available to
  26.  *    get group entries.
  27.  */
  28. #undef HAS_GROUP        /**/
  29.  
  30. /* HAS_PASSWD
  31.  *    This symbol, if defined, indicates that the getpwnam(),
  32.  *    getpwuid(), and getpwent() routines are available to
  33.  *    get password entries.
  34.  */
  35. #undef HAS_PASSWD        /**/
  36.  
  37. #undef HAS_KILL
  38. #undef HAS_WAIT
  39.  
  40. #if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
  41. # include <signal.h>
  42. #endif
  43.  
  44. #ifndef SIGABRT
  45. #    define SIGABRT SIGILL
  46. #endif
  47. #ifndef SIGILL
  48. #    define SIGILL 6         /* blech */
  49. #endif
  50.  
  51. /* #define ABORT() kill(getpid(),SIGABRT); */
  52. #define ABORT() abort();
  53.  
  54. /*
  55.  * fwrite1() should be a routine with the same calling sequence as fwrite(),
  56.  * but which outputs all of the bytes requested as a single stream (unlike
  57.  * fwrite() itself, which on some systems outputs several distinct records
  58.  * if the number_of_items parameter is >1).
  59.  */
  60. #define fwrite1 fwrite
  61.  
  62. #define Stat(fname,bufptr) stat((fname),(bufptr))
  63. #define Fstat(fd,bufptr)   fstat((fd),(bufptr))
  64.  
  65.  
  66. #define my_getenv(var) getenvar(var)
  67.