home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / octa21fs.zip / octave / kpathsea / c-unistd.h < prev    next >
C/C++ Source or Header  |  2000-01-15  |  2KB  |  56 lines

  1. /* c-unistd.h: ensure we have constants from <unistd.h>.  Included from
  2.    c-std.h.
  3.  
  4. Copyright (C) 1992, 93 Free Software Foundation, Inc.
  5.  
  6. This library is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU Library General Public
  8. License as published by the Free Software Foundation; either
  9. version 2 of the License, or (at your option) any later version.
  10.  
  11. This library is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14. Library General Public License for more details.
  15.  
  16. You should have received a copy of the GNU Library General Public
  17. License along with this library; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  19.  
  20. /* Modified by Klaus Gebhardt, 1999 */
  21.  
  22. #ifndef KPATHSEA_C_UNISTD_H
  23. #define KPATHSEA_C_UNISTD_H
  24.  
  25. /* <unistd.h> is allowed to depend on <sys/types.h>.  */
  26. #include <kpathsea/systypes.h>
  27.  
  28. #ifdef HAVE_UNISTD_H
  29. #include <unistd.h>
  30. #endif
  31.  
  32. #include <kpathsea/c-std.h>
  33.  
  34. /* For fseek.  */
  35. #ifndef SEEK_SET
  36. #define SEEK_SET 0
  37. #define SEEK_CUR 1
  38. #define SEEK_END 2
  39. #endif /* not SEEK_SET */
  40.  
  41. /* For access.  */
  42. #ifndef F_OK
  43. #define F_OK 0
  44. #define X_OK 1
  45. #define W_OK 2
  46. #define R_OK 4
  47. #endif /* not F_OK */
  48.  
  49. #ifndef STDIN_FILENO
  50. #define STDIN_FILENO    0
  51. #define STDOUT_FILENO   1
  52. #define STDERR_FILENO   2
  53. #endif /* not STDIN_FILENO */
  54.  
  55. #endif /* not KPATHSEA_C_UNISTD_H */
  56.