w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

mfileio.h File Reference
#include <stdio.h>
#include "numbers.h"
Include dependency graph for mfileio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MFOPEN(name, mode)   fopen((name),(mode))
 
#define MFCLOSE(file)   fclose(file)
 
#define xseek_absolute(file, pos, name)   xfseeko (file, (off_t)(pos), SEEK_SET, name)
 
#define xseek_relative(file, pos, name)   xfseeko (file, (off_t)(pos), SEEK_CUR, name)
 
#define xseek_end(file, name)   xfseeko (file, (off_t)0, SEEK_END, name)
 
#define xtell_position(file, name)   xftello (file, name)
 
#define WORK_BUFFER_SIZE   1024
 

Functions

void seek_absolute (FILE *file, int32_t pos)
 
void seek_relative (FILE *file, int32_t pos)
 
void seek_end (FILE *file)
 
int32_t tell_position (FILE *file)
 
int32_t file_size (FILE *file)
 
off_t xfile_size (FILE *file, const char *name)
 
char * mfgets (char *buffer, int length, FILE *file)
 
int mfreadln (char *buffer, int length, FILE *file)
 

Variables

char work_buffer []
 

Macro Definition Documentation

◆ MFCLOSE

#define MFCLOSE (   file)    fclose(file)

Definition at line 44 of file mfileio.h.

◆ MFOPEN

#define MFOPEN (   name,
  mode 
)    fopen((name),(mode))

Definition at line 42 of file mfileio.h.

◆ WORK_BUFFER_SIZE

#define WORK_BUFFER_SIZE   1024

Definition at line 68 of file mfileio.h.

◆ xseek_absolute

#define xseek_absolute (   file,
  pos,
  name 
)    xfseeko (file, (off_t)(pos), SEEK_SET, name)

Definition at line 56 of file mfileio.h.

◆ xseek_end

#define xseek_end (   file,
  name 
)    xfseeko (file, (off_t)0, SEEK_END, name)

Definition at line 58 of file mfileio.h.

◆ xseek_relative

#define xseek_relative (   file,
  pos,
  name 
)    xfseeko (file, (off_t)(pos), SEEK_CUR, name)

Definition at line 57 of file mfileio.h.

◆ xtell_position

#define xtell_position (   file,
  name 
)    xftello (file, name)

Definition at line 59 of file mfileio.h.

Function Documentation

◆ file_size()

int32_t file_size ( FILE file)

Definition at line 112 of file mfileio.c.

◆ mfgets()

char* mfgets ( char *  buffer,
int  length,
FILE file 
)

Definition at line 132 of file mfileio.c.

◆ mfreadln()

int mfreadln ( char *  buffer,
int  length,
FILE file 
)

Definition at line 151 of file mfileio.c.

◆ seek_absolute()

void seek_absolute ( FILE file,
int32_t  pos 
)

Definition at line 78 of file mfileio.c.

◆ seek_end()

void seek_end ( FILE file)

Definition at line 93 of file mfileio.c.

◆ seek_relative()

void seek_relative ( FILE file,
int32_t  pos 
)

Definition at line 85 of file mfileio.c.

◆ tell_position()

int32_t tell_position ( FILE file)

Definition at line 100 of file mfileio.c.

◆ xfile_size()

off_t xfile_size ( FILE file,
const char *  name 
)

Definition at line 122 of file mfileio.c.

Variable Documentation

◆ work_buffer

char work_buffer[]
extern

Definition at line 171 of file mfileio.c.