[lkml]   [2011]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Applying inappropriate ioctl operation on socket should return ENOTTY
    Le mercredi 27 avril 2011 à 13:37 +0800, Lifeng Sun a écrit :
    > ioctl() calls against a socket with an inappropriate ioctl operation
    > are incorrectly returning EINVAL rather than ENOTTY:
    > [ENOTTY]
    > Inappropriate I/O control operation.
    > BugLink:
    > This bug is not limited to socket, it also occurs in a lot of, maybe
    > some hundred, other ioctl operations, while in the patch I only fixed
    > about a dozen of additional ones in pipe, fifo and character device
    > drivers.

    Really ?

    EINVAL is ok too : Request or argp is not valid.

    I would say, its not a bug as you claim.

    Its really too late to make such change and risk regressions.

    isatty(fd) performs well. Please use it instead.

    Also, networking patches should be sent to and
    David Miller, as mentioned in MAINTAINERS file.

    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: 2011-04-27 08:01    [W:0.020 / U:29.708 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site