|
From: Julian S. <js...@ac...> - 2020-01-02 09:48:48
|
Ryan, I am seeing this problem also when running Gecko now, as compiled with rustc 1.40. > `statx` is a relatively new system call, only appearing in Linux 4.11. > Rust uses a trick where it calls `statx` with two NULL pointers to see > if the kernel/glibc support it because it's faster than calling it with > a real filename. If it returns `EFAULT` the system call is supported, > otherwise it returns `ENOSYS`. The comments in the Rust source code > imply this is a known trick. Can you point me at the comments in the Rust source code? I read the man page for statx pretty carefully, and saw nothing there implying that NULL is an acceptable value for the |filename| argument. I also didn't see anything like that in the kernel sources (but I could easily have missed it, it's a twisty maze in there). J |