Skip to content

Commit

Permalink
move fsstatat constant to syscall linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed Sep 27, 2024
1 parent ed9db1a commit d09238e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
3 changes: 0 additions & 3 deletions unix/linux/mksysnum.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ func main() {
if !bytes.Contains(cmd, []byte("#define __NR_arch_specific_syscall")) {
cmd = append(cmd, []byte("#define __NR_arch_specific_syscall 244\n")...)
}
if !bytes.Contains(cmd, []byte("#define __NR_fstatat")) {
cmd = append(cmd, []byte("#define __NR_fstatat 79\n")...)
}
}

s := bufio.NewScanner(strings.NewReader(string(cmd)))
Expand Down
2 changes: 2 additions & 0 deletions unix/syscall_linux_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,5 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
}
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
}

const SYS_FSTATAT = SYS_NEWFSTATAT
2 changes: 2 additions & 0 deletions unix/syscall_linux_loong64.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,5 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
}
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
}

const SYS_FSTATAT = SYS_NEWFSTATAT
2 changes: 2 additions & 0 deletions unix/syscall_linux_riscv64.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,5 @@ func RISCVHWProbe(pairs []RISCVHWProbePairs, set *CPUSet, flags uint) (err error
}
return riscvHWProbe(pairs, setSize, set, flags)
}

const SYS_FSTATAT = SYS_NEWFSTATAT
1 change: 0 additions & 1 deletion unix/zsysnum_linux_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion unix/zsysnum_linux_loong64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion unix/zsysnum_linux_riscv64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d09238e

Please sign in to comment.