Merge pull request #1505 from xiaobo55x:fcntl_flags
PiperOrigin-RevId: 290840484
This commit is contained in:
commit
0693fb05d1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue