[lkml]   [2007]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: O_NONBLOCK is broken
    > b) Make recv(fd, buf, size, flags) and send(fd, buf, size, flags);
    > work with non-socket fds too, for flags==0 or flags==MSG_DONTWAIT.
    > (it's ok to fail with "socket op on non-socket fd" for other values
    > of flags)

    I think that makes a lot of sense, and to be honest other MSG_ flags make
    useful sense and have meaningful semantics that might be helpful
    elsewhere if ever coded that way.

    If you want to do this the first job is going to be to sort out the way
    non-block is propogated to device driver read/write handlers. At the
    moment they all check filp->f_flags

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-08-14 14:51    [W:0.020 / U:8.404 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site