fs: Add O_NONBLOCK

This commit is contained in:
Alexander Neumann 2018-04-30 15:34:41 +02:00
parent 4e34325035
commit 19b9c881ca
1 changed files with 9 additions and 8 deletions

View File

@ -13,4 +13,5 @@ const (
O_EXCL int = syscall.O_EXCL // used with O_CREATE, file must not exist
O_SYNC int = syscall.O_SYNC // open for synchronous I/O.
O_TRUNC int = syscall.O_TRUNC // if possible, truncate file when opened.
O_NONBLOCK int = syscall.O_NONBLOCK // don't block open on fifos etc.
)