#include <sys/types.h>#include "globals.h"| off_t fd_file_length | ( | FILE * | fd | ) |
Gets the size of the specified file; returns EOF for error.
As file_length, but the file is specified by file handle, not name.
| fd | The file to size up. |
| off_t fi_file_length | ( | int | fileno | ) |
Gets the size of the specified file; returns EOF for error.
As file_length, but the file is specified by number, not name.
| fileno | The file to size up. |
| off_t file_length | ( | char * | filename | ) |
Gets the size of the specified file; returns EOF for error.
| filename | The file to size up. |
Referenced by attach_subcorpus(), comp_component_state(), and show_subcorpus_info().
| long fprobe | ( | char * | fname | ) |
Gets the size of the specified file; returns EOF for error.
Duplicates functionality of file_length, but return is long instead of off_t.
| fname | The file to size up. |
| int is_directory | ( | char * | path | ) |
Checks whether the specified path indicates a directory.
| path | Path to check. |
Referenced by do_attribute().
| int is_file | ( | char * | path | ) |
Checks whether the specified path indicates a regular file.
| path | Path to check. |
| int is_link | ( | char * | path | ) |
Checks whether the specified path indicates a link.
| path | Path to check. |
1.6.1