Skip to content

Commit d09238e

Browse files
committed
move fsstatat constant to syscall linux
1 parent ed9db1a commit d09238e

7 files changed

+6
-6
lines changed

unix/linux/mksysnum.go

-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ func main() {
137137
if !bytes.Contains(cmd, []byte("#define __NR_arch_specific_syscall")) {
138138
cmd = append(cmd, []byte("#define __NR_arch_specific_syscall 244\n")...)
139139
}
140-
if !bytes.Contains(cmd, []byte("#define __NR_fstatat")) {
141-
cmd = append(cmd, []byte("#define __NR_fstatat 79\n")...)
142-
}
143140
}
144141

145142
s := bufio.NewScanner(strings.NewReader(string(cmd)))

unix/syscall_linux_arm64.go

+2
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,5 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
182182
}
183183
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
184184
}
185+
186+
const SYS_FSTATAT = SYS_NEWFSTATAT

unix/syscall_linux_loong64.go

+2
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,5 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
214214
}
215215
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
216216
}
217+
218+
const SYS_FSTATAT = SYS_NEWFSTATAT

unix/syscall_linux_riscv64.go

+2
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,5 @@ func RISCVHWProbe(pairs []RISCVHWProbePairs, set *CPUSet, flags uint) (err error
187187
}
188188
return riscvHWProbe(pairs, setSize, set, flags)
189189
}
190+
191+
const SYS_FSTATAT = SYS_NEWFSTATAT

unix/zsysnum_linux_arm64.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsysnum_linux_loong64.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsysnum_linux_riscv64.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)