• R
    fix F_GETOWN return value handling · 8e8ddeff
    Rich Felker 提交于
    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.
    8e8ddeff
fcntl.c 446 字节