in reply to problem with fcntl

From perldoc -f fcntl:
Note that "fcntl" will produce a fatal error if used on a
machine that doesn’t implement fcntl(2).  See the Fcntl 
module or your fcntl(2) manpage to learn what functions 
are available on your system.

Recent versions of Perl directly translate your systems' fcntl.h file and define what it defines. My fcntl.h file includes bits/fcntl.h to get the definitions of O_*, FD_* and F_*, including F_GETFL and F_SETFL. My perl intallation recognized this and defined them for me in Fcntl.pm.

What OS are you running?

-- dug

Replies are listed 'Best First'.
Re: Re: problem with fcntl
by nivlek78 (Initiate) on Oct 11, 2002 at 17:36 UTC
    I am running windows with the lastest version of activestate perl
    does this mean that fcntl(2) is not implemented on windows?
      Which Windows? I don't have access to a Windows evironment and probably won't be able to help much, but reply with the output of perl -V, as well as something more specific than "windows" and maybe some of the other kind folks here can help you out.

      -- dug
        sorry
        i run win XP
        will run it with perl -v in the morning, as the code is on my other computer.
        thx for helping dug. did not know the version of windows matters.