| ... | ... | @@ -3010,31 +3010,31 @@ pub const S = struct { |
| 3010 | 3010 | pub const IXOTH = 0o001; |
| 3011 | 3011 | pub const IRWXO = 0o007; |
| 3012 | 3012 | |
| 3013 | | pub fn ISREG(m: u32) bool { |
| 3013 | pub fn ISREG(m: mode_t) bool { |
| 3014 | 3014 | return m & IFMT == IFREG; |
| 3015 | 3015 | } |
| 3016 | 3016 | |
| 3017 | | pub fn ISDIR(m: u32) bool { |
| 3017 | pub fn ISDIR(m: mode_t) bool { |
| 3018 | 3018 | return m & IFMT == IFDIR; |
| 3019 | 3019 | } |
| 3020 | 3020 | |
| 3021 | | pub fn ISCHR(m: u32) bool { |
| 3021 | pub fn ISCHR(m: mode_t) bool { |
| 3022 | 3022 | return m & IFMT == IFCHR; |
| 3023 | 3023 | } |
| 3024 | 3024 | |
| 3025 | | pub fn ISBLK(m: u32) bool { |
| 3025 | pub fn ISBLK(m: mode_t) bool { |
| 3026 | 3026 | return m & IFMT == IFBLK; |
| 3027 | 3027 | } |
| 3028 | 3028 | |
| 3029 | | pub fn ISFIFO(m: u32) bool { |
| 3029 | pub fn ISFIFO(m: mode_t) bool { |
| 3030 | 3030 | return m & IFMT == IFIFO; |
| 3031 | 3031 | } |
| 3032 | 3032 | |
| 3033 | | pub fn ISLNK(m: u32) bool { |
| 3033 | pub fn ISLNK(m: mode_t) bool { |
| 3034 | 3034 | return m & IFMT == IFLNK; |
| 3035 | 3035 | } |
| 3036 | 3036 | |
| 3037 | | pub fn ISSOCK(m: u32) bool { |
| 3037 | pub fn ISSOCK(m: mode_t) bool { |
| 3038 | 3038 | return m & IFMT == IFSOCK; |
| 3039 | 3039 | } |
| 3040 | 3040 | }; |