libexplain  1.4.D001
Data Structures | Typedefs | Functions
libexplain/fileinfo/dir_tree_in_use.c File Reference
#include <libexplain/ac/string.h>
#include <libexplain/fileinfo.h>
#include <libexplain/lsof.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Data Structures

struct  adapter

Typedefs

typedef struct adapter adapter

Functions

static void n_callback (explain_lsof_t *context, const char *name)
int explain_fileinfo_dir_tree_in_use (const char *path)

Typedef Documentation

typedef struct adapter adapter

Definition at line 27 of file dir_tree_in_use.c.


Function Documentation

int explain_fileinfo_dir_tree_in_use ( const char *  dirpath)

The explain_fileinfo_dir_tree_in_use function is used to determine whether or not a given mount point still has files open.

Parameters:
dirpathThe absolute path of the diretory to be checked.
Returns:
-1 on error, 0 i niot in use, 1 if in use at least once

Definition at line 55 of file dir_tree_in_use.c.

static void n_callback ( explain_lsof_t context,
const char *  name 
) [static]

Definition at line 36 of file dir_tree_in_use.c.