From 7ef1c44a7fe027d60c92b44515655a612d40d034 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Fri, 4 Oct 2019 14:19:08 -0700 Subject: Change linux.FileMode from uint to uint16, and update VFS to use FileMode. In Linux (include/linux/types.h), mode_t is an unsigned short. PiperOrigin-RevId: 272956350 --- pkg/abi/linux/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/abi/linux') diff --git a/pkg/abi/linux/file.go b/pkg/abi/linux/file.go index 7d742871a..257f67222 100644 --- a/pkg/abi/linux/file.go +++ b/pkg/abi/linux/file.go @@ -271,7 +271,7 @@ type Statx struct { } // FileMode represents a mode_t. -type FileMode uint +type FileMode uint16 // Permissions returns just the permission bits. func (m FileMode) Permissions() FileMode { -- cgit v1.2.3