aboutsummaryrefslogtreecommitdiff
path: root/src/libdiskfs/hfs.h
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-12-18 09:13:34 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-12-18 09:13:34 +0100
commit94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14 (patch)
treead1ad80ee9a4e0ae97451c94a7cf455d3068951b /src/libdiskfs/hfs.h
parent7cda34cf34f3afbd3f2000aa5e2b59ddc319f0f2 (diff)
parent2991442aef1cf020ffde43673433ee97ef322a53 (diff)
downloadplan9port-94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14.tar.gz
plan9port-94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14.tar.bz2
plan9port-94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/libdiskfs/hfs.h')
-rw-r--r--src/libdiskfs/hfs.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libdiskfs/hfs.h b/src/libdiskfs/hfs.h
index bf5ebc9f..dc30aeed 100644
--- a/src/libdiskfs/hfs.h
+++ b/src/libdiskfs/hfs.h
@@ -75,6 +75,39 @@ enum
/* catalog record types */
Folder = 1, File, FolderThread, FileThread,
+ /* some systems have these defined */
+ #undef IEXEC
+ #undef IWRITE
+ #undef IREAD
+ #undef ISVTX
+ #undef ISGID
+ #undef ISUID
+ #undef IFMT
+ #undef IFIFO
+ #undef IFCHR
+ #undef IFDIR
+ #undef IFBLK
+ #undef IFREG
+ #undef IFLNK
+ #undef IFSOCK
+ #undef IFWHT
+
+ #define IEXEC HFS_IEXEC
+ #define IWRITE HFS_IWRITE
+ #define IREAD HFS_IREAD
+ #define ISVTX HFS_ISVTX
+ #define ISGID HFS_ISGID
+ #define ISUID HFS_ISUID
+ #define IFMT HFS_IFMT
+ #define IFIFO HFS_IFIFO
+ #define IFCHR HFS_IFCHR
+ #define IFDIR HFS_IFDIR
+ #define IFBLK HFS_IFBLK
+ #define IFREG HFS_IFREG
+ #define IFLNK HFS_IFLNK
+ #define IFSOCK HFS_IFSOCK
+ #define IFWHT HFS_IFWHT
+
/* permissions in Inode.mode */
IEXEC = 00100,
IWRITE = 0200,