Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <cif.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "cif_int.h"
Go to the source code of this file.
Defines | |
#define | CIF_VERSION 3 |
#define | DEFGLOBAL |
#define | HDRBUF_SIZE 128 /* size of buffer used to read the file header */ |
#define | HDRTOKENS 10 /* number of tokens in header before tools field */ |
Functions | |
int | fileno (FILE *stream) |
char * | strdup (const char *s) |
int | Cif_Open_V1 (char *filename, char *optype, int *rtypes, int version) |
int | Cif_Open_V2 (char *filename, char *optype, int *rtypes, int version) |
int | Cif_Open_V2_1 (char *filename, char *optype, int *rtypes, int version, int sub_version) |
int | Cif_Open_V3_1 (char *filename, char *optype, int *rtypes, int version, int sub_version) |
int | Cif_Open (char *filename, char *optype, int *rtypes, int version) |
Variables | |
static char | USMID [] = "@(#) libcif/cifopen.c 30.6 05/22/97 11:49:31" |
int | _cif_version = 0 |
#define CIF_VERSION 3 |
#define HDRBUF_SIZE 128 /* size of buffer used to read the file header */ |
Definition at line 75 of file cifopen.c.
Referenced by Cif_Open().
#define HDRTOKENS 10 /* number of tokens in header before tools field */ |
int Cif_Open | ( | char * | filename, |
char * | optype, | ||
int * | rtypes, | ||
int | version | ||
) |
Definition at line 245 of file cifopen.c.
References _Cif_filetbl, _CIF_INT_VERSION, _cif_version, ASCII_CIF, BINARY_CIF, CIF_BADREQ, CIF_BUFSIZE, CIF_EXP_VERS, CIF_FILE_VERS, CIF_FIRST_RECORD, CIF_FT_SIZE, Cif_Getrecord(), CIF_MAXOPENS, CIF_MAXRECORD, CIF_MEM_DEFAULT, CIF_NOMEM, CIF_NOTCIF, Cif_Setpos(), CIF_SRCFILE, CIF_SYSERR, CIF_UNIT, CIFSRC, fd, _Cif_File_Tbl::fd, _Cif_File_Tbl::filename, fileno(), _Cif_File_Tbl::form, fstat, HDRBUF_SIZE, _Cif_File_Tbl::ifull, IO_ERROR, _Cif_File_Tbl::ip, _Cif_File_Tbl::mode, NO, NOT_A_CIF, NULL, _Cif_File_Tbl::return_version, _Cif_File_Tbl::rmask, _Cif_File_Tbl::seek, SEPARATOR, _Cif_File_Tbl::srcfid, stat, strdup, _Cif_File_Tbl::tmp_cif, _Cif_File_Tbl::version, and YES.
Referenced by Cif_Make_Cifconv(), Cif_Make_Lines(), Cif_Open_V1(), Cif_Open_V2(), Cif_Open_V2_1(), Cif_Open_V3_1(), cifconv_type(), copy_units(), lines_type(), and sortfile().
int Cif_Open_V1 | ( | char * | filename, |
char * | optype, | ||
int * | rtypes, | ||
int | version | ||
) |
Definition at line 104 of file cifopen.c.
References _cif_version, CIF_EXP_VERS, and Cif_Open().
int Cif_Open_V2 | ( | char * | filename, |
char * | optype, | ||
int * | rtypes, | ||
int | version | ||
) |
Definition at line 136 of file cifopen.c.
References _cif_version, and Cif_Open().
Referenced by Cif_Cifconv(), and Cif_Lines().
int Cif_Open_V2_1 | ( | char * | filename, |
char * | optype, | ||
int * | rtypes, | ||
int | version, | ||
int | sub_version | ||
) |
Definition at line 170 of file cifopen.c.
References _cif_version, Cif_Open(), and CIF_SUB_VERSION_2.
int Cif_Open_V3_1 | ( | char * | filename, |
char * | optype, | ||
int * | rtypes, | ||
int | version, | ||
int | sub_version | ||
) |
Definition at line 204 of file cifopen.c.
References _cif_version, Cif_Open(), and CIF_SUB_VERSION_3.
Referenced by Cif_Cifconv(), and Cif_Lines().
int fileno | ( | FILE * | stream | ) |
Referenced by _do_open(), _f_open(), _f_opn(), _pr_echomsg(), _unit_trunc(), cal_wch(), Cif_Open(), pr_msg(), s_paus(), Same_File(), and ux_fileno().
int _cif_version = 0 |
Definition at line 88 of file cifopen.c.
Referenced by Cif_Cifconv(), Cif_Cifconv_V2_1(), Cif_Cifconv_V3_1(), Cif_Duplicate(), Cif_Free(), Cif_Lines(), Cif_Lines_V2_1(), Cif_Lines_V3_1(), Cif_Msginsert(), Cif_Open(), Cif_Open_V1(), Cif_Open_V2(), Cif_Open_V2_1(), Cif_Open_V3_1(), and comp_stmt_type().