2 * du.h: the function which actually performs the disk scan.
9 * Function called to report a file or directory, its size and its
12 * Returns non-zero if recursion should proceed into this file's
13 * contents (if it's a directory); zero if it should not. If the
14 * file isn't a directory, the return value is ignored.
16 typedef int (*gotdata_fn_t
)(void *ctx
,
18 const struct stat64
*st
);
21 * Recursively scan a directory tree and report every
22 * space-consuming item in it to gotdata().
24 void du(const char *path
, gotdata_fn_t gotdata
, void *gotdata_ctx
);