Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: How *do* they do that?

by gellyfish (Monsignor)
on Aug 12, 2001 at 17:20 UTC ( [id://104242]=note: print w/replies, xml ) Need Help??


in reply to Re: How *do* they do that?
in thread How does Perl handle opendir/readdir/closedir internally?

In an XS program it appears that it is slightly more complicated than this as the XSUB.h for perl 5.72 has :

# define opendir PerlDir_open

having previously undefined opendir.

PerlDir_open itself is defined in iperlsys.h in 5.72 - this is so that it can be made to fit in with the whole PerlIO thing.

Probably the easiest way of finding out what is going on in here is to look at the implementation of pp_open_dir in pp_sys.c and then work backward from there.

/J\

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found