-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
any - What operating system and processor architecture are you using (
go env)?
linux/arm - What did you do?
(Use play.golang.org to provide a runnable example, if possible.)
nothing - What did you expect to see?
invalid syscall numbers are not used - What did you see instead?
invalid syscall numbers are used
As far as is known, linux/arm sycalls are slightly limited.
Here is the list taken from kernel header:
/*
* The following syscalls are obsolete and no longer available for EABI.
*/
#if !defined(__KERNEL__)
#if defined(__ARM_EABI__)
#undef __NR_time
#undef __NR_umount
#undef __NR_stime
#undef __NR_alarm
#undef __NR_utime
#undef __NR_getrlimit
#undef __NR_select
#undef __NR_readdir
#undef __NR_mmap
#undef __NR_socketcall
#undef __NR_syscall
#undef __NR_ipc
#endif
#endif
I confirmed time, utime and getrlimit are used, others are not used in both syscall package and x/sys/unix package.
I also suggest such syscall numbers should be removed from these packages on linux/arm.
(except syscall package? because of compatibility promise)
Thank you.
Reactions are currently unavailable