home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / forth / pfe-0.000 / pfe-0 / pfe-0.9.13 / src / missing.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-17  |  3.4 KB  |  123 lines

  1. /*
  2.  * This file is part of the portable Forth environment written in ANSI C.
  3.  * Copyright (C) 1995  Dirk Uwe Zoller
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13.  * See the GNU Library General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Library General Public
  16.  * License along with this library; if not, write to the Free
  17.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  * This file is version 0.9.13 of 17-July-95
  20.  * Check for the latest version of this package via anonymous ftp at
  21.  *    roxi.rz.fht-mannheim.de:/pub/languages/forth/pfe-VERSION.tar.gz
  22.  * or    sunsite.unc.edu:/pub/languages/forth/pfe-VERSION.tar.gz
  23.  * or    ftp.cygnus.com:/pub/forth/pfe-VERSION.tar.gz
  24.  *
  25.  * Please direct any comments via internet to
  26.  *    duz@roxi.rz.fht-mannheim.de.
  27.  * Thank You.
  28.  */
  29. /*
  30.  * This file is part of the portable Forth environment written in ANSI C.
  31.  * Copyright (C) 1994  Dirk Uwe Zoller
  32.  *
  33.  * This library is free software; you can redistribute it and/or
  34.  * modify it under the terms of the GNU Library General Public
  35.  * License as published by the Free Software Foundation; either
  36.  * version 2 of the License, or (at your option) any later version.
  37.  *
  38.  * This library is distributed in the hope that it will be useful,
  39.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  40.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  41.  * See the GNU Library General Public License for more details.
  42.  *
  43.  * You should have received a copy of the GNU Library General Public
  44.  * License along with this library; if not, write to the Free
  45.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  46.  *
  47.  * This file is version 0.9.11 of 03-Apr-95
  48.  * Check for the latest version of this package via anonymous ftp at
  49.  *    roxi.rz.fht-mannheim.de:/pub/languages/forth/pfe-VERSION.tar.gz
  50.  * or    sunsite.unc.edu:/pub/languages/forth/pfe-VERSION.tar.gz
  51.  * or    ftp.cygnus.com:/pub/forth/pfe-VERSION.tar.gz
  52.  *
  53.  * Please direct any comments via internet to
  54.  *    duz@roxi.rz.fht-mannheim.de.
  55.  * Thank You.
  56.  */
  57. /*
  58.  * missing.h ---    declarations sometimes missing.
  59.  *            This file is included after all system includes.
  60.  * (duz 03Nov94)
  61.  */
  62.  
  63.  
  64. #ifndef STDIN_FILENO
  65. # define STDIN_FILENO 0
  66. #endif
  67. #ifndef STDOUT_FILENO
  68. # define STDOUT_FILENO 1
  69. #endif
  70. #ifndef STDERR_FILENO
  71. # define STDERR_FILENO 2
  72. #endif
  73.  
  74.  
  75. #ifndef SEEK_SET
  76. # define SEEK_SET 0        /* Set file pointer to "offset" */
  77. #endif
  78. #ifndef SEEK_CUR
  79. # define SEEK_CUR 1        /* Set file pointer to current plus "offset" */
  80. #endif
  81. #ifndef SEEK_END
  82. # define SEEK_END 2        /* Set file pointer to EOF plus "offset" */
  83. #endif
  84.  
  85.  
  86. #ifndef F_OK
  87. # define F_OK 0
  88. #endif
  89. #ifndef X_OK
  90. # define X_OK 1
  91. #endif
  92. #ifndef W_OK
  93. # define W_OK 2
  94. #endif
  95. #ifndef R_OK
  96. # define R_OK 4
  97. #endif
  98.  
  99. #ifndef S_IREAD
  100. # define S_IREAD S_IRUSR
  101. #endif
  102. #ifndef S_IWRITE
  103. # define S_IWRITE S_IWUSR
  104. #endif
  105. #ifndef S_IEXEC
  106. # define S_IEXEC S_IXUSR
  107. #endif
  108.  
  109.  
  110. #ifndef isascii
  111. # define isascii(X) ((unsigned char)(X) < 0x80)
  112. #endif
  113.  
  114.  
  115. #ifndef EPERM
  116. # define EPERM -1
  117. #endif
  118.  
  119.  
  120. #if defined WC_OS2V2 && !defined SIG_ACK
  121. # define SIG_ACK ((void (*)(int))4)
  122. #endif
  123.