home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Online / Samba / source / amiga_rcs / commifmt.h < prev    next >
Text File  |  2000-08-17  |  2KB  |  88 lines

  1. head    1.1;
  2. access;
  3. symbols
  4.     V1_15:1.1
  5.     V1_12:1.1
  6.     V1_11:1.1
  7.     V1_10:1.1
  8.     V1_9:1.1
  9.     V1_8:1.1
  10.     V1_7:1.1
  11.     V1_6:1.1
  12.     V1_5:1.1
  13.     V1_4:1.1
  14.     V1_3:1.1
  15.     V1_2:1.1
  16.     V1_1:1.1;
  17. locks
  18.     olsen:1.1; strict;
  19. comment    @ * @;
  20.  
  21.  
  22. 1.1
  23. date    99.02.06.14.23.29;    author olsen;    state Exp;
  24. branches;
  25. next    ;
  26.  
  27.  
  28. desc
  29. @.
  30. @
  31.  
  32.  
  33. 1.1
  34. log
  35. @.
  36. @
  37. text
  38. @#ifndef _WRAPPER_SYS_COMMIFMT_H
  39. #define _WRAPPER_SYS_COMMIFMT_H 1
  40.  
  41. /*
  42.  * $Id: commifmt.h 1.1 1999/02/06 14:23:29 olsen Exp olsen $
  43.  *
  44.  * :ts=4
  45.  *
  46.  * AmigaOS wrapper routines for Samba 2.0.0, using the AmiTCP V4 API
  47.  * and the SAS/C V6.58 compiler.
  48.  */
  49.  
  50. /****************************************************************************/
  51.  
  52. #define    S_ISUID    0004000        /* set user id on execution */
  53. #define    S_ISGID    0002000        /* set group id on execution */
  54. #define    S_ISVTX    0001000        /* save swapped text even after use */
  55.  
  56. #define    S_IRWXU    0000700        /* RWX mask for owner */
  57. #define    S_IRUSR    0000400        /* R for owner */
  58. #define    S_IWUSR    0000200        /* W for owner */
  59. #define    S_IXUSR    0000100        /* X for owner */
  60.  
  61. #define    S_IRWXG    0000070        /* RWX mask for group */
  62. #define    S_IRGRP    0000040        /* R for group */
  63. #define    S_IWGRP    0000020        /* W for group */
  64. #define    S_IXGRP    0000010        /* X for group */
  65.  
  66. #define    S_IRWXO    0000007        /* RWX mask for other */
  67. #define    S_IROTH    0000004        /* R for other */
  68. #define    S_IWOTH    0000002        /* W for other */
  69. #define    S_IXOTH    0000001        /* X for other */
  70.  
  71. #define    S_IFMT     0170000    /* type of file */
  72. #define    S_IFIFO     0010000    /* named pipe (fifo) */
  73. #define    S_IFDIR     0040000    /* directory */
  74. #define    S_IFBLK     0060000    /* block special */
  75. #define    S_IFREG     0100000    /* regular */
  76. #define    S_IFLNK     0120000    /* symbolic link */
  77. #define    S_IFSOCK 0140000    /* socket */
  78.  
  79. #define    S_ISDIR(m)    (((m) & S_IFMT) == S_IFDIR)    /* directory */
  80. #define    S_ISREG(m)    (((m) & S_IFMT) == S_IFREG)    /* regular file */
  81. #define    S_ISLNK(m)    (((m) & S_IFMT) == S_IFLNK)    /* symbolic link */
  82. #define    S_ISFIFO(m)    (((m) & S_IFMT) == S_IFIFO)    /* fifo */
  83.  
  84. /****************************************************************************/
  85.  
  86. #endif /* _WRAPPER_SYS_COMMIFMT_H */
  87. @
  88.