mirror of
https://github.com/restic/restic.git
synced 2024-12-22 07:43:03 +00:00
fs: Add O_NONBLOCK
This commit is contained in:
parent
4e34325035
commit
19b9c881ca
1 changed files with 9 additions and 8 deletions
|
@ -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.
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue