The world's most popular open source database
#include "mysys_priv.h"#include "my_dir.h"Include dependency graph for test_dir.c:

Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 22 of file test_dir.c.
References DBUG_ENTER, DBUG_PROCESS, DBUG_PUSH, st_my_dir::dir_entry, f, my_dir(), MY_WANT_STAT, fileinfo::mystat, fileinfo::name, st_my_dir::number_off_files, and S_ISDIR.
00023 { 00024 MY_DIR *a; 00025 uint f; 00026 DBUG_ENTER ("main"); 00027 DBUG_PROCESS (argv[0]); 00028 00029 if (--argc > 0 && (*(++argv))[0] == '-' && (*argv)[1] == '#' ) 00030 DBUG_PUSH (*argv+2); 00031 00032 a = my_dir("./", 0); 00033 for (f = 0; f < a->number_off_files; f++) 00034 { 00035 printf("%s\n", a->dir_entry[f].name); 00036 } 00037 00038 a = my_dir("./", MY_WANT_STAT); 00039 for (f = 0; f < a->number_off_files; f++) 00040 { 00041 printf("%s %d %d %d %s\n", a->dir_entry[f].name, 00042 (int) a->dir_entry[f].mystat.st_size, 00043 (int) a->dir_entry[f].mystat.st_uid, 00044 (int) a->dir_entry[f].mystat.st_gid, 00045 S_ISDIR(a->dir_entry[f].mystat.st_mode) ? "dir" : ""); 00046 } 00047 return 0; 00048 }
Here is the call graph for this function:

1.4.7

