home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / kpathsea / c-unistd.h < prev    next >
C/C++ Source or Header  |  1993-06-08  |  1KB  |  54 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 program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. This program 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
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef KPATHSEA_C_UNISTD_H
  21. #define KPATHSEA_C_UNISTD_H
  22.  
  23. /* <unistd.h> is allowed to depend on <sys/types.h>.  */
  24. #include <kpathsea/systypes.h>
  25.  
  26. #if HAVE_UNISTD_H
  27. #include <unistd.h>
  28. #endif
  29.  
  30. #include <kpathsea/c-std.h>
  31.  
  32. /* For fseek.  */
  33. #ifndef SEEK_SET
  34. #define SEEK_SET 0
  35. #define SEEK_CUR 1
  36. #define SEEK_END 2
  37. #endif /* not SEEK_SET */
  38.  
  39. /* For access.  */
  40. #ifndef F_OK
  41. #define F_OK 0
  42. #define X_OK 1
  43. #define W_OK 2
  44. #define R_OK 4
  45. #endif /* not F_OK */
  46.  
  47. #ifndef STDIN_FILENO
  48. #define STDIN_FILENO    0
  49. #define STDOUT_FILENO   1
  50. #define STDERR_FILENO   2
  51. #endif /* not STDIN_FILENO */
  52.  
  53. #endif /* not KPATHSEA_C_UNISTD_H */
  54.