Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: Using stderr from Inline::C: (part deux) (fileno/dup2)

by BrowserUk (Pope)
on May 23, 2013 at 09:32 UTC ( #1034923=note: print w/replies, xml ) Need Help??

in reply to Re: Using stderr from Inline::C: (part deux) (fileno/dup2)
in thread Using stderr from Inline::C: (part deux)

Thank you anonymonk. The last post in the subthread you linked showed the use of _write) which does what fwrite() does, but takes a fileno rather than stream handle, and that works just fine. Presumably because the fileno gets used to look up the appropriate stream stuff internally, and thus gets to use the correct expansion of __iob_func().

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034923]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-06-24 14:03 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.