#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 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.
| 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 | |||
| ) | 
| FT_New_Memory | ( | void | ) | 
Definition at line 386 of file ftsystem.c.
References ft_alloc(), ft_free(), ft_realloc(), and malloc().
| 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.
 1.5.1
 1.5.1