Merge pull request #1505 from xiaobo55x:fcntl_flags

PiperOrigin-RevId: 290840484
This commit is contained in:
gVisor bot 2020-01-21 17:02:56 -08:00
commit 0693fb05d1
3 changed files with 33 additions and 21 deletions

View File

@ -36,10 +36,6 @@ const (
O_NONBLOCK = 000004000
O_DSYNC = 000010000
O_ASYNC = 000020000
O_DIRECT = 000040000
O_LARGEFILE = 000100000
O_DIRECTORY = 000200000
O_NOFOLLOW = 000400000
O_NOATIME = 001000000
O_CLOEXEC = 002000000
O_SYNC = 004000000 // __O_SYNC in Linux

View File

@ -14,6 +14,14 @@
package linux
// Constants for open(2).
const (
O_DIRECT = 000040000
O_LARGEFILE = 000100000
O_DIRECTORY = 000200000
O_NOFOLLOW = 000400000
)
// Stat represents struct stat.
type Stat struct {
Dev uint64

View File

@ -14,6 +14,14 @@
package linux
// Constants for open(2).
const (
O_DIRECTORY = 000040000
O_NOFOLLOW = 000100000
O_DIRECT = 000200000
O_LARGEFILE = 000400000
)
// Stat represents struct stat.
type Stat struct {
Dev uint64