authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-09-18 18:54:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-09-20 17:54:32-04:00
log521c753fda3cd5ebb79752287ef3c87d84f8d5c3
treee6461561166c1f9af049350df1e58e22ca71be4e
parent1f50810733e087faf884c5641617369c1c8e258f

std: fix os.linux.S function signatures to use mode_t


1 files changed, 7 insertions(+), 7 deletions(-)

lib/std/os/linux.zig+7-7
......@@ -3010,31 +3010,31 @@ pub const S = struct {
30103010 pub const IXOTH = 0o001;
30113011 pub const IRWXO = 0o007;
30123012
3013 pub fn ISREG(m: u32) bool {
3013 pub fn ISREG(m: mode_t) bool {
30143014 return m & IFMT == IFREG;
30153015 }
30163016
3017 pub fn ISDIR(m: u32) bool {
3017 pub fn ISDIR(m: mode_t) bool {
30183018 return m & IFMT == IFDIR;
30193019 }
30203020
3021 pub fn ISCHR(m: u32) bool {
3021 pub fn ISCHR(m: mode_t) bool {
30223022 return m & IFMT == IFCHR;
30233023 }
30243024
3025 pub fn ISBLK(m: u32) bool {
3025 pub fn ISBLK(m: mode_t) bool {
30263026 return m & IFMT == IFBLK;
30273027 }
30283028
3029 pub fn ISFIFO(m: u32) bool {
3029 pub fn ISFIFO(m: mode_t) bool {
30303030 return m & IFMT == IFIFO;
30313031 }
30323032
3033 pub fn ISLNK(m: u32) bool {
3033 pub fn ISLNK(m: mode_t) bool {
30343034 return m & IFMT == IFLNK;
30353035 }
30363036
3037 pub fn ISSOCK(m: u32) bool {
3037 pub fn ISSOCK(m: mode_t) bool {
30383038 return m & IFMT == IFSOCK;
30393039 }
30403040};