|
|
|
|
|
by Panino
808 days ago
|
|
I'm currently switching my Go code to Rust in part because of the syscall related Go trouble: > Users of syscall(2), such as Perl and the Go programming language were converted to use the libc functions. I think the following may still need to be converted: * unix.Pledge from golang.org/x/sys/unix
* unix.Unveil from golang.org/x/sys/unix
* terminal.ReadPassword from golang.org/x/crypto/ssh/terminal
|
|
On Linux, using direct syscalls is a good idea, since it's the stable userspace-kernel interface. There's really no need for libc on Linux, each language should just implement it's standard library on top of syscalls.