#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <sys/param.h>#include <stdlib.h>#include <stdio.h>#include <cmplrs/rcodes.h>#include "defs.h"#include "file_util.h"
Go to the source code of this file.
Functions | |
| BOOL | Is_File (const char *fname) |
| BOOL | Same_File (FILE *file1, FILE *file2) |
| char * | New_Extension (const char *name, const char *ext) |
| char * | Remove_Extension (char *name) |
| char * | Last_Pathname_Component (char *pname) |
Variables | |
| static char * | source_file = __FILE__ |
| BOOL Is_File | ( | const char * | fname | ) |
Definition at line 60 of file file_util.c.
Referenced by Diag_Set_File(), and Set_Error_File().
| char* Last_Pathname_Component | ( | char * | pname | ) |
Definition at line 329 of file file_util.c.
Referenced by Derive_Anl_Filename(), Move_Locations_To_Anl_File(), Phase_Init(), Prepare_Listing_File(), Prepare_Source(), Process_Command_Line(), Process_Filename_Options(), and RiceWhirl2f().
| char* New_Extension | ( | const char * | name, | |
| const char * | ext | |||
| ) |
Definition at line 172 of file file_util.c.
References strcpy.
Referenced by Derive_Anl_Filename(), DRA_Make_File_Name(), Move_Locations_To_Anl_File(), PDGCS_initialize(), Phase_Init(), Prepare_Listing_File(), Prepare_Source(), and Process_Filename_Options().
| char* Remove_Extension | ( | char * | name | ) |
Definition at line 204 of file file_util.c.
References strcpy.
| BOOL Same_File | ( | FILE * | file1, | |
| FILE * | file2 | |||
| ) |
Definition at line 85 of file file_util.c.
References fileno(), fstat, NULL, and stat.
Referenced by Close_File(), Diag_Set_File(), Init_Error_File(), and Set_Error_Trace().

char* source_file = __FILE__ [static] |
Definition at line 37 of file file_util.c.
1.7.1