summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-21 23:25:49 +0000
committergVisor bot <gvisor-bot@google.com>2020-01-21 23:25:49 +0000
commita4bc66abe77fb2f64e6944bf99705694da09148f (patch)
tree7a61efea2428f4b5d75fcbcb4bd6802310bd0a32 /pkg/abi
parent515341d1aef848dcf66d67ac3981aec221637dcb (diff)
parentad1968ed5665c7541d6920edbd7c7492b7db3046 (diff)
Merge release-20200115.0-55-gad1968e (automated)
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/file.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/abi/linux/file.go b/pkg/abi/linux/file.go
index 16791d03e..6fbdd668d 100644
--- a/pkg/abi/linux/file.go
+++ b/pkg/abi/linux/file.go
@@ -180,6 +180,19 @@ const (
DT_WHT = 14
)
+// DirentType are the friendly strings for linux_dirent64.d_type.
+var DirentType = abi.ValueSet{
+ DT_UNKNOWN: "DT_UNKNOWN",
+ DT_FIFO: "DT_FIFO",
+ DT_CHR: "DT_CHR",
+ DT_DIR: "DT_DIR",
+ DT_BLK: "DT_BLK",
+ DT_REG: "DT_REG",
+ DT_LNK: "DT_LNK",
+ DT_SOCK: "DT_SOCK",
+ DT_WHT: "DT_WHT",
+}
+
// Values for preadv2/pwritev2.
const (
// Note: gVisor does not implement the RWF_HIPRI feature, but the flag is