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);