Hi, The following code:

#!/usr/bin/perl open (FH,"test.txt"); close(FH);
straced, gives:
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.


In reply to Inappropriate ioctl for device by adisi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.