home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / SH162_2S.ZIP / CHANGES.H < prev    next >
C/C++ Source or Header  |  1990-08-04  |  2KB  |  61 lines

  1. extern int _CDECL    open    (char *, int, ...);
  2. extern int _CDECL    creat    (char *, int);
  3.  
  4. #define PATH_MAX    256        /* Maximum path length        */
  5. #define NAME_MAX    64        /* Maximum file name length    */
  6.  
  7. extern FILE * _CDECL    popen(char *, char *);
  8. extern int _CDECL    pclose(FILE *);
  9.  
  10. extern int _CDECL        optind;
  11. extern int _CDECL        opterr;
  12. extern int _CDECL        optind;
  13. extern int _CDECL        optopt;
  14. extern int _CDECL        optvar;
  15. extern char * _CDECL        optarg;
  16. extern int _CDECL        getopt    (int, char **, char *);
  17. extern int _CDECL        pnmatch    (char *, char *, int);
  18.  
  19. /* Tests for file types */
  20.  
  21. #define    S_IFBLK        0060000        /* block special        */
  22.  
  23. #define S_ISDIR(m)    ((((m) & S_IFMT) == S_IFDIR))
  24. #define S_ISCHR(m)    ((((m) & S_IFMT) == S_IFCHR))
  25. #define S_ISREG(m)    ((((m) & S_IFMT) == S_IFREG))
  26. #define S_ISBLK(m)    ((((m) & S_IFMT) == S_IFBLK))
  27. extern int _CDECL    chmod    (char *, int);
  28. extern int _CDECL    umask    (int);
  29.  
  30. #ifndef _USHORT_T_DEFINED
  31. typedef unsigned short    ushort;
  32. #define _USHORT_T_DEFINED
  33. #endif
  34.  
  35. #ifndef _MODE_T_DEFINED
  36. typedef unsigned short    mode_t;
  37. #define _MODE_T_DEFINED
  38. #endif
  39.  
  40. #ifndef _PID_T_DEFINED
  41. typedef int        pid_t;
  42. #define _PID_T_DEFINED
  43. #endif
  44.  
  45. #ifndef _GID_T_DEFINED
  46. typedef int        gid_t;
  47. #define _GID_T_DEFINED
  48. #endif
  49.  
  50. #ifndef _UID_T_DEFINED
  51. typedef int        uid_t;
  52. #define _UID_T_DEFINED
  53. #endif
  54.  
  55. #ifndef _BOOL_T_DEFINED
  56. typedef char        bool;    /* Boolean: 0 = false, 1 = true        */
  57. #define FALSE    0        /* Boolean 'false'            */
  58. #define TRUE    1        /* Boolean 'true'            */
  59. #define _BOOL_T_DEFINED
  60. #endif
  61.