adisi has asked for the wisdom of the Perl Monks concerning the following question:
Hi, The following code:
straced, gives:#!/usr/bin/perl open (FH,"test.txt"); close(FH);
open("test.txt", O_RDONLY|O_LARGEFILE) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe83bf8) = -1 ENOTTY (Inapp +ropriate ioctl for device)
I'm using Perl version 5.8.8 on a CentOS release 5.2
(2.6.18-92.1.1.el5), but this behaviour occures
also
on Red Hat Enterprise Linux AS release 4 (2.6.9-55.ELsmp) with perl 5.8.5 on it.
At first I suspected that it has something to do with the O_LARGEFILE flag, but I compiled perl again without
largefile support, and the same error appears.
The script itself isn't affected by this error (at least so it seems), the file is being opened and everything seems well.
My question is, should I be concerned about this error? I saw a lot of these cases over the internet but not one solution.
I'd be happy for an advice on how to get rid of this error.
Thanks,
Adi.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inappropriate ioctl for device
by almut (Canon) on Jul 21, 2008 at 13:36 UTC | |
by MidLifeXis (Monsignor) on Jul 21, 2008 at 16:29 UTC | |
by Bloodnok (Vicar) on Jul 22, 2008 at 11:36 UTC | |
|
Re: Inappropriate ioctl for device
by moritz (Cardinal) on Jul 21, 2008 at 13:27 UTC | |
|
Re: Inappropriate ioctl for device
by pc88mxer (Vicar) on Jul 21, 2008 at 15:42 UTC | |
by Anonymous Monk on Feb 17, 2012 at 18:11 UTC |