• Andrew Morton's avatar
    [PATCH] make readv/writev return 0 for 0 segments · 6a839d30
    Andrew Morton authored
    Should resolve an ongoing fiasco concerning what we should return to
    userspace if they do a readv or writev of zero segments.
    
    SuS is ambiguous, but implies EINVAL.  We're currently returning
    EINVAL, but 2.4 returns zero.
    
    I think zero makes more sense, and it is what 2.4 does.
    6a839d30
read_write.c 11.7 KB