Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
unittrunc.c File Reference
#include <errno.h>
#include <liberrno.h>
#include <foreign.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "fio.h"
Include dependency graph for unittrunc.c:

Go to the source code of this file.

Defines

#define LIBFSEEK   fseek
#define LIBFTELL   ftell
#define LIBFTRUNC   ftruncate

Typedefs

typedef long _ftelltype

Functions

int _unit_trunc (unit *cup)

Define Documentation

#define LIBFSEEK   fseek

Definition at line 54 of file unittrunc.c.

Referenced by _unit_trunc().

#define LIBFTELL   ftell

Definition at line 55 of file unittrunc.c.

Referenced by _unit_trunc().

#define LIBFTRUNC   ftruncate

Definition at line 56 of file unittrunc.c.

Referenced by _unit_trunc().


Typedef Documentation

typedef long _ftelltype

Definition at line 53 of file unittrunc.c.


Function Documentation

int _unit_trunc ( unit cup)

Definition at line 69 of file unittrunc.c.

References errno, FP::fdc, FEINTFST, fileno(), FS_FDC, FS_TEXT, L, LIBFSEEK, LIBFTELL, LIBFTRUNC, STD, FP::std, ffsw::sw_error, trunc(), unit_s::uffsw, unit_s::ufp, unit_s::ufs, unit_s::useek, and unit_s::useq.

Referenced by __setpos64(), _f_open(), _REWF(), _setpos(), _unit_bksp(), and _unit_close().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines