the fcntl syscall can return a negative value when the command is F_GETOWN, and this is not an error code but an actual value. thus we must special-case it and avoid calling __syscall_ret to set errno. this fix is better than the glibc fix (using F_GETOWN_EX) which only works on newer kernels and is more complex. |
||
|---|---|---|
| .. | ||
| creat.c | ||
| fcntl.c | ||
| open.c | ||
| openat.c | ||
| posix_fadvise.c | ||
| posix_fallocate.c | ||