Browse Source

* Some convenience permission constants, patch by Graeme #26373

git-svn-id: trunk@28038 -
marco 11 years ago
parent
commit
bcd13a856d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/bsd/ostypes.inc

+ 3 - 0
rtl/bsd/ostypes.inc

@@ -242,6 +242,9 @@ CONST
     S_IROTH =  %0000000100;     { Read permission for world   }
     S_IROTH =  %0000000100;     { Read permission for world   }
     S_IWOTH =  %0000000010;     { Write permission for world  }
     S_IWOTH =  %0000000010;     { Write permission for world  }
     S_IXOTH =  %0000000001;     { Exec permission for world   }
     S_IXOTH =  %0000000001;     { Exec permission for world   }
+    S_IRWXU =  S_IRUSR or S_IWUSR or S_IXUSR;
+    S_IRWXG =  S_IRGRP or S_IWGRP or S_IXGRP;
+    S_IRWXO =  S_IROTH or S_IWOTH or S_IXOTH;
 
 
     { Used for waitpid }
     { Used for waitpid }
     WNOHANG   =          1;     { don't block waiting               }
     WNOHANG   =          1;     { don't block waiting               }