瀏覽代碼

* some O_ constants. Patch by Barlone.

git-svn-id: trunk@24536 -
marco 12 年之前
父節點
當前提交
9554eb2b48
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      rtl/bsd/ostypes.inc

+ 11 - 0
rtl/bsd/ostypes.inc

@@ -221,6 +221,17 @@ CONST
     O_APPEND    =     8;        { Writes append to the file.        }
     O_NONBLOCK  =     4;        { Non-blocking I/O.                 }
 
+{$ifdef freebsd}
+    { Other }
+    O_SHLOCK    =   $10;        { Open with shared file lock }
+    O_EXLOCK    =   $20;        { Open with exclusive file lock }
+    O_ASYNC     =   $40;        { Signal pgrp when data ready }
+    O_FSYNC     =   $80;        { Synchronous writes }
+    O_SYNC      =   $80;        { POSIX synonym for O_FSYNC }
+    O_NOFOLLOW  =  $100;        { Don't follow symlinks }
+    O_DIRECT    =$10000;        { Attempt to bypass buffer cache }
+{$endif}
+
     { mode_t possible values                                 }
     S_IRUSR =  %0100000000;     { Read permission for owner   }
     S_IWUSR =  %0010000000;     { Write permission for owner  }