Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
file_util.c File Reference
#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"
Include dependency graph for file_util.c:

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__

Function Documentation

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* Remove_Extension ( char *  name)

Definition at line 204 of file file_util.c.

References len, and 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:


Variable Documentation

char* source_file = __FILE__ [static]

Definition at line 37 of file file_util.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines