Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Why no LockFile() in Win32API::File ?

by demerphq (Chancellor)
on Apr 11, 2006 at 08:30 UTC ( [id://542482]=note: print w/replies, xml ) Need Help??


in reply to Re: Why no LockFile() in Win32API::File ?
in thread Why no LockFile() in Win32API::File ?

Isnt Win32_flock() used for perls flock() function?

---
$world=~s/war/peace/g

  • Comment on Re^2: Why no LockFile() in Win32API::File ?

Replies are listed 'Best First'.
Re^3: Why no LockFile() in Win32API::File ?
by BrowserUk (Patriarch) on Apr 11, 2006 at 08:37 UTC

    Could well be...:). As I've never had a use for it, and the OP was complaining of it's absence, I assumed it wasn't available. As I was in win32.c at the time and saw win32_flock() right there, I thought I would pass the info along.

    Now, perhaps you can explain why my attempt to use it doesn't work?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      Now, perhaps you can explain why my attempt to use it doesn't work?

      I think its because DATA and *DATA arent filedescriptors (int fd). In order to make that work you have to get the fd for the perl filehandle. The way I understand it is you have three handles, the perl level one, the unix file descriptor one, and the win32 handle under that. Im not sure if (or rather to what extent) the unix level one is supported by the Win32 API and what is provided by perl for portability reasons, but obviously the win32 handle one doesn't exist on UNIX at all.

      Bear in mind i havent inspected the code before replying to this, so its just conjecture based on recollection.

      ---
      $world=~s/war/peace/g

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://542482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-25 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found