Bug 21499 - ioctl problems
ioctl problems
Status: CLOSED NOTABUG
Product: Red Hat Raw Hide
Classification: Retired
Component: kernel (Show other bugs)
1.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-11-29 16:14 EST by Will Newton
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-12-10 23:51:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Will Newton 2000-11-29 16:14:18 EST
Using glibc-2.2-5 on i386 with kernel 2.4.0-test11.

ioctl seems to always (?) return EINVAL. Many apps do this, including
tunelp.
Comment 1 Bill Nottingham 2000-11-29 16:19:18 EST
ioctl for *everything*?
Comment 2 Jakub Jelinek 2000-11-29 16:22:47 EST
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-29 19:15:59 EST
Sorry, I was not too clear. Here are examples:

tunelp:
[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.

gqcam:

[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
etc.

I am currently recompiling glibc-2.2-5 to see if it makes any difference.
Comment 4 Bill Nottingham 2000-11-30 00:39:23 EST
Are you using devfs?
Comment 5 Will Newton 2000-12-10 23:51:29 EST
Yes, I am using devfs.
Latest version of devfsd AFAIK.
Comment 6 Jakub Jelinek 2000-12-19 06:10:20 EST
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.