Bug 21499 - ioctl problems
Summary: ioctl problems
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: kernel
Version: 1.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2000-11-29 21:14 UTC by Will Newton
Modified: 2007-04-18 16:30 UTC (History)
0 users

Clone Of:
Last Closed: 2000-12-11 04:51:32 UTC

Attachments (Terms of Use)

Description Will Newton 2000-11-29 21:14:18 UTC
Using glibc-2.2-5 on i386 with kernel 2.4.0-test11.

ioctl seems to always (?) return EINVAL. Many apps do this, including

Comment 1 Bill Nottingham 2000-11-29 21:19:18 UTC
ioctl for *everything*?

Comment 2 Jakub Jelinek 2000-11-29 21:22:47 UTC
Impossible, your system would not even boot otherwise.
Can you give us some details? Which ioctl, under which conditions,
strace output.

Comment 3 Will Newton 2000-11-30 00:15:59 UTC
Sorry, I was not too clear. Here are examples:

[root@dogfox sys-utils]# ./tunelp /dev/lp0 -i 0
OP: 605, VAL: 0
tunelp: ioctl: Invalid argument
/dev/lp0 using IRQ 7

Valid args? I think so.


[root@dogfox gqcam-0.9]# ./gqcam -v /dev/v4l/video0 
ioctl (VIDIOCSPICT): Invalid argument
ioctl (VIDIOCSWIN): Invalid argument
ioctl (VIDIOCSPICT): Invalid argument
ioctl (VIDIOCSWIN): Invalid argument

I am currently recompiling glibc-2.2-5 to see if it makes any difference.

Comment 4 Bill Nottingham 2000-11-30 05:39:23 UTC
Are you using devfs?

Comment 5 Will Newton 2000-12-11 04:51:29 UTC
Yes, I am using devfs.
Latest version of devfsd AFAIK.

Comment 6 Jakub Jelinek 2000-12-19 11:10:20 UTC
So it is a kernel problem then (actually devfs problem; and also not a
problem in a kernel we have shipped). So I'd suggest to work this out
with devfs author (Richard Gooch).

Note You need to log in before you can comment on or make changes to this bug.