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>
#include <errno.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_by_munmap (FT_Stream stream)
 ft_close_stream_by_free (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 176 of file ftsystem.c.

#define MAP_FILE   0x00

Definition at line 35 of file ftsystem.c.

Referenced by FT_Stream_Open(), TFTP::PutFile(), and RootdGetFile().

#define MUNMAP_ARG_CAST   char *

Definition at line 41 of file ftsystem.c.

Referenced by ft_close_stream(), and ft_close_stream_by_munmap().

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

Definition at line 180 of file ftsystem.c.


Function Documentation

ft_alloc ( FT_Memory  memory,
long  size 
)

Definition at line 97 of file ftsystem.c.

References FT_UNUSED, and malloc().

ft_close_stream_by_free ( FT_Stream  stream  ) 

Definition at line 217 of file ftsystem.c.

References ft_free(), and NULL.

Referenced by FT_Stream_Open().

ft_close_stream_by_munmap ( FT_Stream  stream  ) 

Definition at line 195 of file ftsystem.c.

References MUNMAP_ARG_CAST, and NULL.

Referenced by FT_Stream_Open().

FT_Done_Memory ( FT_Memory  memory  ) 

Definition at line 410 of file ftsystem.c.

ft_free ( FT_Memory  memory,
void *  block 
)

Definition at line 153 of file ftsystem.c.

References free(), and FT_UNUSED.

FT_New_Memory ( void   ) 

Definition at line 386 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 127 of file ftsystem.c.

References FT_UNUSED, and realloc().

FT_Stream_Open ( FT_Stream  stream,
const char *  filepathname 
)

Definition at line 230 of file ftsystem.c.

References close, F_SETFD, fcntl(), FD_CLOEXEC, SysFile::file, fstat, ft_alloc(), ft_close_stream_by_free(), ft_close_stream_by_munmap(), FT_ERROR, ft_free(), FT_TRACE1, long, MAP_FILE, NULL, open, read, ssize_t, stat, and void.


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