home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gtak212.zip / 1.10 / port.h < prev    next >
C/C++ Source or Header  |  1993-02-23  |  3KB  |  103 lines

  1. /*****************************************************************************
  2.  * $Id: port.h,v 1.4 1992/09/29 09:55:58 ak Exp $
  3.  *****************************************************************************
  4.  * $Log: port.h,v $
  5.  * Revision 1.4  1992/09/29  09:55:58  ak
  6.  * K.U.R., once again :-)
  7.  * - removed a dup() in buffer.c
  8.  * - EMX opendir with hidden/system test in gnu.c (...dotdot)
  9.  *
  10.  * Revision 1.3  1992/09/12  15:57:00  ak
  11.  * - Usenet patches for GNU TAR 1.10
  12.  * - Bugfixes and patches of Kai Uwe Rommel:
  13.  *         filename conversion for FAT
  14.  *         EMX 0.8e
  15.  *         -0..1 alias for a: b:
  16.  *         -2..7 alias for +++TAPE$x
  17.  *
  18.  * Revision 1.2  1992/09/02  20:08:34  ak
  19.  * Version AK200
  20.  * - Tape access
  21.  * - Quick file access
  22.  * - OS/2 extended attributes
  23.  * - Some OS/2 fixes
  24.  * - Some fixes of Kai Uwe Rommel
  25.  *
  26.  * Revision 1.1.1.1  1992/09/02  19:22:19  ak
  27.  * Original GNU Tar 1.10 with some filenames changed for FAT compatibility.
  28.  *
  29.  * Revision 1.1  1992/09/02  19:22:17  ak
  30.  * Initial revision
  31.  *
  32.  *****************************************************************************/
  33.  
  34. /*
  35.  * Modified by Andreas Kaiser July 92.
  36.  * See CHANGES.AK for info.
  37.  */
  38.  
  39. /* Portability declarations.
  40.    Copyright (C) 1988 Free Software Foundation
  41.  
  42. This file is part of GNU Tar.
  43.  
  44. GNU Tar is free software; you can redistribute it and/or modify
  45. it under the terms of the GNU General Public License as published by
  46. the Free Software Foundation; either version 1, or (at your option)
  47. any later version.
  48.  
  49. GNU Tar is distributed in the hope that it will be useful,
  50. but WITHOUT ANY WARRANTY; without even the implied warranty of
  51. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  52. GNU General Public License for more details.
  53.  
  54. You should have received a copy of the GNU General Public License
  55. along with GNU Tar; see the file COPYING.  If not, write to
  56. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  57. /*
  58.  * Portability declarations for tar.
  59.  *
  60.  * @(#)port.h 1.3    87/11/11    by John Gilmore, 1986
  61.  */
  62.  
  63. /*
  64.  * Everybody does wait() differently.  There seem to be no definitions
  65.  * for this in V7 (e.g. you are supposed to shift and mask things out
  66.  * using constant shifts and masks.)  So fuck 'em all -- my own non
  67.  * standard but portable macros.  Don't change to a "union wait"
  68.  * based approach -- the ordering of the elements of the struct 
  69.  * depends on the byte-sex of the machine.  Foo!
  70.  */
  71. #define    TERM_SIGNAL(status)    ((status) & 0x7F)
  72. #define TERM_COREDUMP(status)    (((status) & 0x80) != 0)
  73. #define TERM_VALUE(status)    ((status) >> 8)
  74.  
  75. #ifdef    MSDOS
  76. /* missing things from sys/stat.h */
  77. #define    S_ISUID        0
  78. #define    S_ISGID        0
  79. #define    S_ISVTX        0
  80.  
  81. /* device stuff */
  82. #define    makedev(ma, mi)        ((ma << 8) | mi)
  83. #define    major(dev)        (dev)
  84. #define    minor(dev)        (dev)
  85. #endif    /* MSDOS */
  86.  
  87. /*------------------------------------------------------------------------*/
  88.  
  89. #ifdef OS2
  90.  
  91. #define FILENAME_MAX 260
  92.  
  93. #include <os2eattr.h>
  94. pEABuf        eabuf;        /* extended attribute buffer */
  95. long        ealen;        /* length of .. */
  96. #ifdef NAMSIZ
  97. char        eaname[NAMSIZ];    /* file name of current EA */
  98. #endif
  99.  
  100. #define chdir _chdir2
  101.  
  102. #endif
  103.