Merge pull request #1505 from xiaobo55x:fcntl_flags
PiperOrigin-RevId: 290840484
This commit is contained in:
commit
0693fb05d1
|
@ -24,27 +24,23 @@ import (
|
||||||
|
|
||||||
// Constants for open(2).
|
// Constants for open(2).
|
||||||
const (
|
const (
|
||||||
O_ACCMODE = 000000003
|
O_ACCMODE = 000000003
|
||||||
O_RDONLY = 000000000
|
O_RDONLY = 000000000
|
||||||
O_WRONLY = 000000001
|
O_WRONLY = 000000001
|
||||||
O_RDWR = 000000002
|
O_RDWR = 000000002
|
||||||
O_CREAT = 000000100
|
O_CREAT = 000000100
|
||||||
O_EXCL = 000000200
|
O_EXCL = 000000200
|
||||||
O_NOCTTY = 000000400
|
O_NOCTTY = 000000400
|
||||||
O_TRUNC = 000001000
|
O_TRUNC = 000001000
|
||||||
O_APPEND = 000002000
|
O_APPEND = 000002000
|
||||||
O_NONBLOCK = 000004000
|
O_NONBLOCK = 000004000
|
||||||
O_DSYNC = 000010000
|
O_DSYNC = 000010000
|
||||||
O_ASYNC = 000020000
|
O_ASYNC = 000020000
|
||||||
O_DIRECT = 000040000
|
O_NOATIME = 001000000
|
||||||
O_LARGEFILE = 000100000
|
O_CLOEXEC = 002000000
|
||||||
O_DIRECTORY = 000200000
|
O_SYNC = 004000000 // __O_SYNC in Linux
|
||||||
O_NOFOLLOW = 000400000
|
O_PATH = 010000000
|
||||||
O_NOATIME = 001000000
|
O_TMPFILE = 020000000 // __O_TMPFILE in Linux
|
||||||
O_CLOEXEC = 002000000
|
|
||||||
O_SYNC = 004000000 // __O_SYNC in Linux
|
|
||||||
O_PATH = 010000000
|
|
||||||
O_TMPFILE = 020000000 // __O_TMPFILE in Linux
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Constants for fstatat(2).
|
// Constants for fstatat(2).
|
||||||
|
|
|
@ -14,6 +14,14 @@
|
||||||
|
|
||||||
package linux
|
package linux
|
||||||
|
|
||||||
|
// Constants for open(2).
|
||||||
|
const (
|
||||||
|
O_DIRECT = 000040000
|
||||||
|
O_LARGEFILE = 000100000
|
||||||
|
O_DIRECTORY = 000200000
|
||||||
|
O_NOFOLLOW = 000400000
|
||||||
|
)
|
||||||
|
|
||||||
// Stat represents struct stat.
|
// Stat represents struct stat.
|
||||||
type Stat struct {
|
type Stat struct {
|
||||||
Dev uint64
|
Dev uint64
|
||||||
|
|
|
@ -14,6 +14,14 @@
|
||||||
|
|
||||||
package linux
|
package linux
|
||||||
|
|
||||||
|
// Constants for open(2).
|
||||||
|
const (
|
||||||
|
O_DIRECTORY = 000040000
|
||||||
|
O_NOFOLLOW = 000100000
|
||||||
|
O_DIRECT = 000200000
|
||||||
|
O_LARGEFILE = 000400000
|
||||||
|
)
|
||||||
|
|
||||||
// Stat represents struct stat.
|
// Stat represents struct stat.
|
||||||
type Stat struct {
|
type Stat struct {
|
||||||
Dev uint64
|
Dev uint64
|
||||||
|
|
Loading…
Reference in New Issue