|
CWB
|
Data Structures | |
| struct | _CLStream |
Typedefs | |
| typedef struct _CLStream * | CLStream |
Functions | |
| off_t | file_length (char *filename) |
| Gets the size of the specified file; returns EOF for error. More... | |
| off_t | fd_file_length (FILE *fd) |
| Gets the size of the specified file; returns EOF for error. More... | |
| off_t | fi_file_length (int fileno) |
| Gets the size of the specified file; returns EOF for error. More... | |
| long | fprobe (char *fname) |
| Gets the size of the specified file; returns EOF for error. More... | |
| int | is_directory (char *path) |
| Checks whether the specified path indicates a directory. More... | |
| int | is_file (char *path) |
| Checks whether the specified path indicates a regular file. More... | |
| int | is_link (char *path) |
| Checks whether the specified path indicates a link. More... | |
| 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(), and comp_component_state().
| 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 makeall_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.
Note this function always returns false in Windows, because Windows doesn't have Unix-style links. (.lnk files don't count.)
| path | Path to check. |
1.8.8