ftsystem.c File Reference

#include <ft2build.h>
#include <ftconfig.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Defines

#define MAP_FILE   0x00
#define MUNMAP_ARG_CAST   char *
#define FT_COMPONENT   trace_io
#define STREAM_FILE(stream)   ( (FILE*)stream->descriptor.pointer )

Functions

 ft_alloc (FT_Memory memory, long size)
 ft_realloc (FT_Memory memory, long cur_size, long new_size, void *block)
 ft_free (FT_Memory memory, void *block)
 ft_close_stream (FT_Stream stream)
 FT_Stream_Open (FT_Stream stream, const char *filepathname)
 FT_New_Memory (void)
 FT_Done_Memory (FT_Memory memory)


Define Documentation

#define FT_COMPONENT   trace_io

Definition at line 175 of file ftsystem.c.

#define MAP_FILE   0x00

Definition at line 35 of file ftsystem.c.

#define MUNMAP_ARG_CAST   char *

Definition at line 41 of file ftsystem.c.

#define STREAM_FILE ( stream   )     ( (FILE*)stream->descriptor.pointer )

Definition at line 179 of file ftsystem.c.


Function Documentation

ft_alloc ( FT_Memory  memory,
long  size 
)

Definition at line 96 of file ftsystem.c.

References FT_UNUSED, and malloc().

ft_close_stream ( FT_Stream  stream  ) 

Definition at line 194 of file ftsystem.c.

References MUNMAP_ARG_CAST, and NULL.

Referenced by FT_Stream_Open().

FT_Done_Memory ( FT_Memory  memory  ) 

Definition at line 312 of file ftsystem.c.

ft_free ( FT_Memory  memory,
void *  block 
)

Definition at line 152 of file ftsystem.c.

References free(), and FT_UNUSED.

FT_New_Memory ( void   ) 

Definition at line 288 of file ftsystem.c.

References ft_alloc(), ft_free(), ft_realloc(), and malloc().

ft_realloc ( FT_Memory  memory,
long  cur_size,
long  new_size,
void *  block 
)

Definition at line 126 of file ftsystem.c.

References FT_UNUSED, and realloc().

FT_Stream_Open ( FT_Stream  stream,
const char *  filepathname 
)

Definition at line 207 of file ftsystem.c.

References close, fstat, ft_close_stream(), FT_ERROR, FT_TRACE1, MAP_FILE, NULL, open, and stat.


Generated on Tue Jul 5 15:58:18 2011 for ROOT_528-00b_version by  doxygen 1.5.1