Go to the source code of this file.
Functions |
int | explain_fileinfo_pid_fd_n (pid_t pid, int fildes, char *data, size_t data_size) |
int | explain_fileinfo_self_fd_n (int fildes, char *data, size_t data_size) |
int | explain_fileinfo_pid_cwd (pid_t pid, char *data, size_t data_size) |
int | explain_fileinfo_self_cwd (char *data, size_t data_size) |
int | explain_fileinfo_pid_exe (pid_t pid, char *data, size_t data_size) |
int | explain_fileinfo_self_exe (char *data, size_t data_size) |
int | explain_fileinfo_dir_tree_in_use (const char *dirpath) |
Function Documentation
The explain_fileinfo_dir_tree_in_use function is used to determine whether or not a given mount point still has files open.
- Parameters:
-
dirpath | The 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.
The explain_fileinfo_pid_cwd function may be used to obtain the absolute path of the current working directory of the given process.
- Parameters:
-
pid | The process ID of the process of interest. |
data | Where to return the path. |
data_size | The maximum size of the returned path. |
- Returns:
- true (non-zero) on success, or false (zero) on error
Definition at line 82 of file pid_cwd.c.
The explain_fileinfo_pid_exe function may be used to obtain the absolute path of the executable file of the given process.
- Parameters:
-
pid | The process ID of the process of interest. |
data | Where to return the path. |
data_size | The maximum size of the returned path. |
- Returns:
- true (non-zero) on success, or false (zero) on error
Definition at line 142 of file pid_exe.c.
The explain_fileinfo_pid_fd_n function may be used to obtain the path name of the file corresponding to the given process and given file descriptor.
- Parameters:
-
pid | The process ID of interest. |
fildes | The file descriptor of interest. |
data | Where to return the path. |
data_size | The maximum size of the returned path. |
- Returns:
- true (non-zero) on success, or false (zero) on error
Definition at line 63 of file pid_fd_n.c.
The explain_fileinfo_self_cwd function may be used to obtain the absolute path of the current working directory of current process.
- Parameters:
-
data | Where to return the path. |
data_size | The maximum size of the returned path. |
- Returns:
- true (non-zero) on success, or false (zero) on error
Definition at line 26 of file self_cwd.c.
The explain_fileinfo_self_exe function may be used to obtain the absolute path of the executable file of the executing process.
- Parameters:
-
data | Where to return the path. |
data_size | The maximum size of the returned path. |
- Returns:
- true (non-zero) on success, or false (zero) on error
Definition at line 26 of file self_exe.c.
The explain_fileinfo_self_fd_n function may be used to obtain the path name of the file corresponding to the given file descriptor.
- Parameters:
-
fildes | The file descriptor of interest. |
data | Where to return the path. |
data_size | The maximum size of the returned path. |
- Returns:
- true (non-zero) on success, or false (zero) on error
Definition at line 26 of file self_fd_n.c.