home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / filutl / pdtar.arc / PORT.H < prev    next >
Text File  |  1988-05-15  |  759b  |  22 lines

  1. /*
  2.  * Portability declarations for public domain tar.
  3.  *
  4.  * @(#)port.h 1.1    86/03/11    Public Domain by John Gilmore, 1986
  5.  * MS-DOS port 2/87 by Eric Roskos.
  6.  * Minix  port 3/88 by Eric Roskos.
  7.  */
  8.  
  9. /*
  10.  * Everybody does wait() differently.  There seem to be no definitions
  11.  * for this in V7 (e.g. you are supposed to shift and mask things out
  12.  * using constant shifts and masks.)  So fuck 'em all -- my own non
  13.  * standard but portable macros.  Don't change to a "union wait"
  14.  * based approach -- the ordering of the elements of the struct 
  15.  * depends on the byte-sex of the machine.  Foo!
  16.  */
  17. #define    TERM_SIGNAL(status)    ((status) & 0x7F)
  18. #define TERM_COREDUMP(status)    (((status) & 0x80) != 0)
  19. #define TERM_VALUE(status)    ((status) >> 8)
  20.  
  21.  
  22.