Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: open(): Is there a simple way to map between numeric open modes and "symbol modes"?

by muba (Priest)
on Feb 07, 2013 at 23:48 UTC ( #1017734=note: print w/replies, xml ) Need Help??


in reply to open(): Is there a simple way to map between numeric open modes and "symbol modes"? (solved)

What do you mean by numeric mode values? I don't think I've ever heard of that.

  • Comment on Re: open(): Is there a simple way to map between numeric open modes and "symbol modes"?

Replies are listed 'Best First'.
Re^2: open(): Is there a simple way to map between numeric open modes and "symbol modes"?
by Anonymous Monk on Feb 08, 2013 at 02:35 UTC
    "Numeric mode value" means the number you'd pass to an open() call, "which is an OR-ing of stuff like O_RDONLY and O_SYNC, constants you can import from POSIX" (for example from FUSE, see).

    Question is: how do I un-OR this stuff and get the matching symbol for what the ORed POSIX flags/constants mean.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017734]
help
Chatterbox?
[Corion]: Hmmm... Weird. Maybe it needs that for doing its timers or something. Still weird.
[Corion]: But I guess I'll find out soonish, as my application seems to use Prima for more than just displaying the OpenGL output soonish ;))
[ambrus]: No, I think the timers are handled fine in the event loop, as far as I can see.
[Corion]: So far, I liked Prima quite well as it simply seems to do what I want even if it has an upside-down coordinate system. But it installs from CPAN out of the box and is cross-platform

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2016-12-09 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.