Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

using Linux getdents syscall

by glasswalk3r (Friar)
on Nov 23, 2015 at 23:37 UTC ( [id://1148448]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #define _GNU_SOURCE
    #include <dirent.h>     /* Defines DT_* constants */
    ...
    
       exit(EXIT_SUCCESS);
    }
    
  2. or download this
    struct linux_dirent {
       unsigned long  d_ino;     /* Inode number 32*/
    ...
                         /* length is actually (d_reclen - 2 -
                            offsetof(struct linux_dirent, d_name)) */
    }
    
  3. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
    close($fd);
    my $data = $converter->unpack( 'foo', $buf );
    print Dumper($data);
    
  4. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
    }
    
    close($fd);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1148448]
Front-paged by stevieb
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found