Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Anonymous Monk
on May 23, 2013 at 07:19 UTC ( [id://1034899]=note: print w/replies, xml ) Need Help??


in reply to Using stderr from Inline::C: (part deux)

I don't really know, but I think you can use fileno/dup2, see see Re^2: STDERR going to string
  • Comment on Re: Using stderr from Inline::C: (part deux) (fileno/dup2)

Replies are listed 'Best First'.
Re^2: Using stderr from Inline::C: (part deux) (fileno/dup2)
by BrowserUk (Patriarch) on May 23, 2013 at 09:32 UTC

    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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found