file_util.h File Reference

#include <sys/stat.h>
#include <unistd.h>
Include dependency graph for file_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BOOL Is_File (const char *fname)
BOOL Same_File (FILE *file1, FILE *file2)
BOOL Has_Extension (char *name, char *ext)
BOOL Find_File (char *name, char *ext)
char * New_Extension (const char *name, const char *ext)
char * Remove_Extension (char *name)
char * Make_Temp_File (char *tmp, char *prefix)
char * Full_Path_Name (char *base, char *path, INT pathlen)
char * Last_Pathname_Component (char *pname)
char * Make_Absolute_Path (char *filename)
char * Get_Current_Working_Directory (void)

Function Documentation

BOOL Find_File ( char *  name,
char *  ext 
)
char* Full_Path_Name ( char *  base,
char *  path,
INT  pathlen 
)
char* Get_Current_Working_Directory ( void   ) 
BOOL Has_Extension ( char *  name,
char *  ext 
)
BOOL Is_File ( const char *  fname  ) 

Definition at line 60 of file file_util.c.

References FALSE, NULL, and stat.

Referenced by Diag_Set_File(), and Set_Error_File().

char* Last_Pathname_Component ( char *  pname  ) 
char* Make_Absolute_Path ( char *  filename  ) 

Referenced by cwh_dst_enter_path().

char* Make_Temp_File ( char *  tmp,
char *  prefix 
)
char* New_Extension ( const char *  name,
const char *  ext 
)
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 FALSE, fileno(), fstat, NULL, and stat.

Referenced by Close_File(), Diag_Set_File(), Init_Error_File(), and Set_Error_Trace().

Here is the call graph for this function:


Generated on Tue Nov 17 06:15:12 2009 for Open64 (mfef90, whirl2f, and IR tools) by  doxygen 1.6.1