Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
ffio.h File Reference
#include <clibdefs.h>
#include <sys/types.h>
#include <cray/fortio.h>
#include <cray/libuni.h>
#include <sys/time.h>
#include <cray/clibinc_config.h>
Include dependency graph for ffio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ffsw
struct  ffc_info_s
struct  ffc_baddata_s
struct  ffc_gettp_s
struct  ffc_chktp_s
struct  ffc_chkev_s
struct  ffc_stat_s
struct  ff_ialloc_struct
struct  ffp_skipf_s
struct  ffp_settp_s
struct  ffp_skiptpmk_s
struct  ffp_abs
struct  ffp_tapepos
struct  fflistreq

Defines

#define PARTIAL   0
#define FULL   1
#define FFBSY   0
#define FFCNT   1
#define FFEOR   2
#define FFEOF   3
#define FFEOD   4
#define FFBOD   5
#define FFERR   6
#define FC_GETINFO   1
#define FC_STAT   2
#define FC_SETRECL   3
#define FC_RECALL   4
#define FC_ACPTBAD   5
#define FC_SKIPBAD   6
#define FC_GETTP   7
#define FC_AUTOBAD   8
#define FC_CHECKTP   9
#define FC_ENDSP   10
#define FC_STARTSP   11
#define FC_CLOSEV   12
#define FC_SETSP   13
#define FC_ASPOLL   14 /* give recall a shot at cleanup, no wait */
#define FC_SCRATCH   15 /* identify a file as a scratch file */
#define FC_TSYNC   16 /* sync a tape file */
#define FC_DUMPSTATS   17 /* dump intermediate layer statistics */
#define FC_TPC_SDBSZ   18 /* change block size on ER90 */
#define FC_IALLOC   19 /* bottom layer call ialloc */
#define FC_GETLK   20 /* get file lock */
#define FC_SETLK   21 /* set file lock */
#define FC_SETLKW   22 /* set file lock wait */
#define FC_FSTATFS   23 /* bottom layer call fstatfs */
#define FC_DIOINFO   24 /* get direct info (IRIX only) */
#define FC_CHECKEOV   25 /* check end-of-volume status (IRIX only) */
#define FC_TSDATA   26 /* get tape status information (IRIX only) */
#define FFC_STRM   0x00000001 /* can handle stream I/O */
#define FFC_REC   0x00000002 /* can handle records */
#define FFC_WEOF   0x00000004 /* can represent EOF */
#define FFC_WEOD   0x00000008 /* can represent EOD (all can do) */
#define FFC_BKSP   0x00000010 /* can handle backspace */
#define FFC_BKFIL   0x00000020 /* can handle backfile */
#define FFC_SEEKA   0x00000040 /* can seek absolute */
#define FFC_SEEKR   0x00000080 /* can seek relative */
#define FFC_SEEKE   0x00000100 /* can seek to end */
#define FFC_POSREC   0x00000200 /* can position by record number */
#define FFC_POSFIL   0x00000400 /* can position by EOF mark */
#define FFC_RWND   0x00000800 /* can rewind by seek(x,0,0) */
#define FFC_FIXD   0x00001000 /* can do fixed len recs */
#define FFC_VAR   0x00002000 /* can do variable len recs */
#define FFC_BINARY   0x00004000 /* can do binary records */
#define FFC_CODED   0x00008000 /* can do formatted records */
#define FFC_RDM   0x00010000 /* can do random I/O (no trunc) */
#define FFC_SEQ   0x00020000 /* can do sequential I/O */
#define FFC_ASYNC   0x00040000 /* can do asynchronous I/O */
#define FFC_WRTRUNC   0x00080000 /* write implies truncation */
#define FFC_NOTRN   0x00100000 /* Does no transformation on data */
#define FFC_BCKDOOR   0x00200000 /* Can handle O_SSD flag on open call */
#define FFC_SKIPBAD   0x00400000 /* Can skip bad data */
#define FFC_NOCLOSE   0x00800000 /* Don't try to close layer on abort */
#define FFC_CANLISTIO   0x01000000 /* The layer has a listio entry */
#define FFC_CANSYLISTIO   0x02000000 /* The layer has a listio entry that */
#define FP_GETPOS   1 /* get position of file */
#define FP_SETPOS   2 /* set position of file */
#define FP_BSEEK   3 /* seek to bit position */
#define FP_BKSP   4 /* back up one record (BACKSPACE) */
#define FP_BKFIL   5 /* back up one file (BACKFILE) */
#define FP_GETREC   6 /* Get current record number */
#define FP_SETREC   7 /* Set position to specified record number */
#define FP_SKIPF   8 /* Skip file (SKIPF) */
#define FP_SETTP   9 /* set position of tape file (SETTP) */
#define FP_POS0   10 /* "position to current position" */
#define FP_RSEEK   11 /* relative seek */
#define FP_SKIPTPMK   12 /* skip tape mark */
#define FP_GABS   13 /* get absolute position */
#define FP_SABS   14 /* set absolute position */
#define FP_GETTAPEPOS   15 /* get tape position (IRIX only) */
#define FP_SETTAPEPOS   16 /* set tape position (IRIX only) */
#define FP_TPOS_ABS   0 /* absolute */
#define FP_TPOS_FORW   1 /* forward */
#define FP_TPOS_BACK   2 /* backwards */
#define AUTO_SKIP   1 /* skip 1 block of bad data */
#define AUTO_ACPT   2 /* accept bad data */
#define AUTO_SKIPALL   3 /* skip all bad data */
#define SCR_SINGLELINK   1 /* file is regular and not a linked file */
#define SCR_UNLINKED   2 /* an unlink() successfully deleted the file */
#define SCR_NOFLUSH   4 /* ffclose() buffer flushing suppressed */
#define FFSTAT(io_sw)   ((io_sw).sw_stat)

Functions

__BEGIN_DECLS int ffbksp (int _Fd,...)
int ffclose (int _Fd,...)
int fffcntl (int _Fd, int _Cmd,...)
int ffflush (int _Fd,...)
int fflistio (int _Cmd, struct fflistreq *_List, int _Nent,...)
int ffopens (const char *_Name, int _Oflag, int _Mode, long _Cbits,...)
int ffpos (int _Fd, int _Cmd, long *_Arg, int _Len, struct ffsw *_Stat)
char * ffstrerror (int _Errnum)
int ffread (int _Fd, void *_Buf, size_t _Nb,...)
int ffreada (int _Fd, char *_Buf, int _Nb, struct ffsw *_Stat,...)
int ffreadc (int _Fd, char *_Buf, int _Nb,...)
int ffseek (int _Fd, off_t _Pos, int _Whence,...)
int ffsetsp (int _Fd,...)
int ffweod (int _Fd,...)
int ffweof (int _Fd,...)
int ffwrite (int _Fd, const void *_Buf, size_t _Nb,...)
int ffwritea (int _Fd, char *_Buf, int _Nb, struct ffsw *_Stat,...)
int ffwritec (int _Fd, char *_Buf, int _Nb,...)
__END_DECLS __BEGIN_DECLS int ffbkspf (int _Fd, struct ffsw *_Stat)
int ffopen (const char *_Name, int _Oflag,...)
int ffopenf (const char *_Name, int _Oflag, mode_t _Mode, long _Cbits, int _Cblks, struct ffsw *_Pstat)
int ffiolock (int _fd, struct ffsw *_Stat)
int ffiounlock (int _fd, struct ffsw *_Stat)
int ffclosef (int _Fd, struct ffsw *_Stat)
int ffweoff (int _Fd, struct ffsw *_Stat)
int ffweodf (int _Fd, struct ffsw *_Stat)
off_t ffseekf (int _Fd, off_t _Pos, int _Whence, struct ffsw *_Stat)
ssize_t ffreadf (int _Fd, void *_Buf, size_t _Nb, struct ffsw *_stat, int _Fulp, int *_Ubc)
ssize_t ffwritef (int _Fd, const void *_Buf, size_t _Nb, struct ffsw *_stat, int _Fulp, int *_Ubc)

Define Documentation

#define AUTO_ACPT   2 /* accept bad data */

Definition at line 174 of file ffio.h.

Referenced by _f_opn().

#define AUTO_SKIP   1 /* skip 1 block of bad data */

Definition at line 173 of file ffio.h.

Referenced by _f_opn().

#define AUTO_SKIPALL   3 /* skip all bad data */

Definition at line 175 of file ffio.h.

#define FC_ACPTBAD   5

Definition at line 84 of file ffio.h.

#define FC_ASPOLL   14 /* give recall a shot at cleanup, no wait */

Definition at line 93 of file ffio.h.

#define FC_AUTOBAD   8

Definition at line 87 of file ffio.h.

Referenced by _f_opn().

#define FC_CHECKEOV   25 /* check end-of-volume status (IRIX only) */

Definition at line 104 of file ffio.h.

#define FC_CHECKTP   9

Definition at line 88 of file ffio.h.

#define FC_CLOSEV   12

Definition at line 91 of file ffio.h.

#define FC_DIOINFO   24 /* get direct info (IRIX only) */

Definition at line 103 of file ffio.h.

#define FC_DUMPSTATS   17 /* dump intermediate layer statistics */

Definition at line 96 of file ffio.h.

#define FC_ENDSP   10

Definition at line 89 of file ffio.h.

#define FC_FSTATFS   23 /* bottom layer call fstatfs */

Definition at line 102 of file ffio.h.

#define FC_GETINFO   1

Definition at line 80 of file ffio.h.

Referenced by _f_opn().

#define FC_GETLK   20 /* get file lock */

Definition at line 99 of file ffio.h.

#define FC_GETTP   7

Definition at line 86 of file ffio.h.

#define FC_IALLOC   19 /* bottom layer call ialloc */

Definition at line 98 of file ffio.h.

#define FC_RECALL   4

Definition at line 83 of file ffio.h.

#define FC_SCRATCH   15 /* identify a file as a scratch file */

Definition at line 94 of file ffio.h.

Referenced by _unit_scratch().

#define FC_SETLK   21 /* set file lock */

Definition at line 100 of file ffio.h.

#define FC_SETLKW   22 /* set file lock wait */

Definition at line 101 of file ffio.h.

#define FC_SETRECL   3

Definition at line 82 of file ffio.h.

#define FC_SETSP   13

Definition at line 92 of file ffio.h.

#define FC_SKIPBAD   6

Definition at line 85 of file ffio.h.

#define FC_STARTSP   11

Definition at line 90 of file ffio.h.

#define FC_STAT   2

Definition at line 81 of file ffio.h.

Referenced by _f_opn().

#define FC_TPC_SDBSZ   18 /* change block size on ER90 */

Definition at line 97 of file ffio.h.

#define FC_TSDATA   26 /* get tape status information (IRIX only) */

Definition at line 105 of file ffio.h.

#define FC_TSYNC   16 /* sync a tape file */

Definition at line 95 of file ffio.h.

#define FFBOD   5

Definition at line 70 of file ffio.h.

Referenced by _f_opn().

#define FFBSY   0

Definition at line 65 of file ffio.h.

#define FFC_ASYNC   0x00040000 /* can do asynchronous I/O */

Definition at line 131 of file ffio.h.

Referenced by _rb(), and _wb().

#define FFC_BCKDOOR   0x00200000 /* Can handle O_SSD flag on open call */

Definition at line 136 of file ffio.h.

#define FFC_BINARY   0x00004000 /* can do binary records */

Definition at line 126 of file ffio.h.

Referenced by _f_opn().

#define FFC_BKFIL   0x00000020 /* can handle backfile */

Definition at line 116 of file ffio.h.

#define FFC_BKSP   0x00000010 /* can handle backspace */

Definition at line 115 of file ffio.h.

#define FFC_CANLISTIO   0x01000000 /* The layer has a listio entry */

Definition at line 139 of file ffio.h.

#define FFC_CANSYLISTIO   0x02000000 /* The layer has a listio entry that */

Definition at line 140 of file ffio.h.

#define FFC_CODED   0x00008000 /* can do formatted records */

Definition at line 127 of file ffio.h.

Referenced by _f_opn().

#define FFC_FIXD   0x00001000 /* can do fixed len recs */

Definition at line 124 of file ffio.h.

#define FFC_NOCLOSE   0x00800000 /* Don't try to close layer on abort */

Definition at line 138 of file ffio.h.

Referenced by _unit_close().

#define FFC_NOTRN   0x00100000 /* Does no transformation on data */

Definition at line 134 of file ffio.h.

#define FFC_POSFIL   0x00000400 /* can position by EOF mark */

Definition at line 121 of file ffio.h.

#define FFC_POSREC   0x00000200 /* can position by record number */

Definition at line 120 of file ffio.h.

#define FFC_RDM   0x00010000 /* can do random I/O (no trunc) */

Definition at line 129 of file ffio.h.

#define FFC_REC   0x00000002 /* can handle records */

Definition at line 111 of file ffio.h.

Referenced by _f_opn(), and _UNIT_().

#define FFC_RWND   0x00000800 /* can rewind by seek(x,0,0) */

Definition at line 122 of file ffio.h.

#define FFC_SEEKA   0x00000040 /* can seek absolute */

Definition at line 117 of file ffio.h.

Referenced by __setpos64(), _GETPOS_(), and _setpos().

#define FFC_SEEKE   0x00000100 /* can seek to end */

Definition at line 119 of file ffio.h.

Referenced by __setpos64(), and _setpos().

#define FFC_SEEKR   0x00000080 /* can seek relative */

Definition at line 118 of file ffio.h.

#define FFC_SEQ   0x00020000 /* can do sequential I/O */

Definition at line 130 of file ffio.h.

#define FFC_SKIPBAD   0x00400000 /* Can skip bad data */

Definition at line 137 of file ffio.h.

#define FFC_STRM   0x00000001 /* can handle stream I/O */

Definition at line 110 of file ffio.h.

Referenced by _f_opn().

#define FFC_VAR   0x00002000 /* can do variable len recs */

Definition at line 125 of file ffio.h.

#define FFC_WEOD   0x00000008 /* can represent EOD (all can do) */

Definition at line 113 of file ffio.h.

#define FFC_WEOF   0x00000004 /* can represent EOF */

Definition at line 112 of file ffio.h.

Referenced by __setpos64(), _f_opn(), and _setpos().

#define FFC_WRTRUNC   0x00080000 /* write implies truncation */

Definition at line 132 of file ffio.h.

Referenced by _f_opn().

#define FFCNT   1

Definition at line 66 of file ffio.h.

Referenced by _frch(), _frwd(), _rb(), and _UNIT_().

#define FFEOD   4

Definition at line 69 of file ffio.h.

Referenced by _FRU(), and _RUF().

#define FFEOF   3

Definition at line 68 of file ffio.h.

Referenced by _FRU(), and _RUF().

#define FFEOR   2

Definition at line 67 of file ffio.h.

Referenced by _frch().

#define FFERR   6

Definition at line 71 of file ffio.h.

Referenced by _FRU(), and _RUF().

#define FFSTAT (   io_sw)    ((io_sw).sw_stat)

Definition at line 187 of file ffio.h.

Referenced by _f_opn(), _frch(), _frwd(), _rb(), _UNIT_(), and _wb().

#define FP_BKFIL   5 /* back up one file (BACKFILE) */

Definition at line 150 of file ffio.h.

#define FP_BKSP   4 /* back up one record (BACKSPACE) */

Definition at line 149 of file ffio.h.

#define FP_BSEEK   3 /* seek to bit position */

Definition at line 148 of file ffio.h.

Referenced by _GETPOS_(), and _setpos().

#define FP_GABS   13 /* get absolute position */

Definition at line 158 of file ffio.h.

#define FP_GETPOS   1 /* get position of file */

Definition at line 146 of file ffio.h.

Referenced by _GETPOS_().

#define FP_GETREC   6 /* Get current record number */

Definition at line 151 of file ffio.h.

#define FP_GETTAPEPOS   15 /* get tape position (IRIX only) */

Definition at line 160 of file ffio.h.

#define FP_POS0   10 /* "position to current position" */

Definition at line 155 of file ffio.h.

#define FP_RSEEK   11 /* relative seek */

Definition at line 156 of file ffio.h.

#define FP_SABS   14 /* set absolute position */

Definition at line 159 of file ffio.h.

#define FP_SETPOS   2 /* set position of file */

Definition at line 147 of file ffio.h.

Referenced by __setpos64(), and _setpos().

#define FP_SETREC   7 /* Set position to specified record number */

Definition at line 152 of file ffio.h.

#define FP_SETTAPEPOS   16 /* set tape position (IRIX only) */

Definition at line 161 of file ffio.h.

#define FP_SETTP   9 /* set position of tape file (SETTP) */

Definition at line 154 of file ffio.h.

#define FP_SKIPF   8 /* Skip file (SKIPF) */

Definition at line 153 of file ffio.h.

Referenced by SKIPF().

#define FP_SKIPTPMK   12 /* skip tape mark */

Definition at line 157 of file ffio.h.

#define FP_TPOS_ABS   0 /* absolute */

Definition at line 166 of file ffio.h.

#define FP_TPOS_BACK   2 /* backwards */

Definition at line 168 of file ffio.h.

#define FP_TPOS_FORW   1 /* forward */

Definition at line 167 of file ffio.h.

#define SCR_NOFLUSH   4 /* ffclose() buffer flushing suppressed */

Definition at line 182 of file ffio.h.

#define SCR_SINGLELINK   1 /* file is regular and not a linked file */

Definition at line 180 of file ffio.h.

Referenced by _unit_scratch().

#define SCR_UNLINKED   2 /* an unlink() successfully deleted the file */

Definition at line 181 of file ffio.h.

Referenced by _unit_scratch().


Function Documentation

__BEGIN_DECLS int ffbksp ( int  _Fd,
  ... 
)
__END_DECLS __BEGIN_DECLS int ffbkspf ( int  _Fd,
struct ffsw _Stat 
)
int ffclose ( int  _Fd,
  ... 
)
int ffclosef ( int  _Fd,
struct ffsw _Stat 
)
int fffcntl ( int  _Fd,
int  _Cmd,
  ... 
)
int ffflush ( int  _Fd,
  ... 
)
int ffiolock ( int  _fd,
struct ffsw _Stat 
)
int ffiounlock ( int  _fd,
struct ffsw _Stat 
)
int fflistio ( int  _Cmd,
struct fflistreq _List,
int  _Nent,
  ... 
)
int ffopen ( const char *  _Name,
int  _Oflag,
  ... 
)
int ffopenf ( const char *  _Name,
int  _Oflag,
mode_t  _Mode,
long  _Cbits,
int  _Cblks,
struct ffsw _Pstat 
)
int ffopens ( const char *  _Name,
int  _Oflag,
int  _Mode,
long  _Cbits,
  ... 
)
int ffpos ( int  _Fd,
int  _Cmd,
long *  _Arg,
int  _Len,
struct ffsw _Stat 
)
int ffread ( int  _Fd,
void *  _Buf,
size_t  _Nb,
  ... 
)
int ffreada ( int  _Fd,
char *  _Buf,
int  _Nb,
struct ffsw _Stat,
  ... 
)
int ffreadc ( int  _Fd,
char *  _Buf,
int  _Nb,
  ... 
)
ssize_t ffreadf ( int  _Fd,
void *  _Buf,
size_t  _Nb,
struct ffsw _stat,
int  _Fulp,
int *  _Ubc 
)
int ffseek ( int  _Fd,
off_t  _Pos,
int  _Whence,
  ... 
)
off_t ffseekf ( int  _Fd,
off_t  _Pos,
int  _Whence,
struct ffsw _Stat 
)
int ffsetsp ( int  _Fd,
  ... 
)
char* ffstrerror ( int  _Errnum)
int ffweod ( int  _Fd,
  ... 
)
int ffweodf ( int  _Fd,
struct ffsw _Stat 
)
int ffweof ( int  _Fd,
  ... 
)
int ffweoff ( int  _Fd,
struct ffsw _Stat 
)
int ffwrite ( int  _Fd,
const void *  _Buf,
size_t  _Nb,
  ... 
)
int ffwritea ( int  _Fd,
char *  _Buf,
int  _Nb,
struct ffsw _Stat,
  ... 
)
int ffwritec ( int  _Fd,
char *  _Buf,
int  _Nb,
  ... 
)
ssize_t ffwritef ( int  _Fd,
const void *  _Buf,
size_t  _Nb,
struct ffsw _stat,
int  _Fulp,
int *  _Ubc 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines