def _IOR_len(type, nr):
    def f(fileno, buffer):
        request = _IOC(_IOC_READ, ord(type), nr, ctypes.sizeof(buffer))
        if 0 < c.ioctl(fileno, request, ctypes.byref(buffer)):
            err = ctypes.c_int.in_dll(c, 'errno').value
            raise OSError(err, errno.errorcode[err])
        return buffer
    return f
dataset/ETHPy150Open ardekantur/pyglet/pyglet/input/evdev.py/_IOR_len/swapped operands of `<`