Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
wrapper.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <dirent.h>
#include <dlfcn.h>

Functions

voiddllmalloc (size_t)
 
voiddllcalloc (size_t, size_t)
 
voiddllrealloc (void *, size_t)
 
void dllfree (void *)
 
int dll_open (const char *szFileName, int iMode)
 
int dll_write (int fd, const void *buffer, unsigned int uiSize)
 
int dll_read (int fd, void *buffer, unsigned int uiSize)
 
off_t dll_lseek (int fd, __off_t lPos, int iWhence)
 
__off64_t dll_lseeki64 (int fd, __off64_t lPos, int iWhence)
 
int dll_close (int fd)
 
FILE * dll_fopen (const char *filename, const char *mode)
 
FILE * dll_freopen (const char *path, const char *mode, FILE *stream)
 
FILE * dll_fdopen (int i, const char *file)
 
int dll_fclose (FILE *stream)
 
int dll_ferror (FILE *stream)
 
int dll_feof (FILE *stream)
 
int dll_fileno (FILE *stream)
 
void dll_clearerr (FILE *stream)
 
int dll_fread (void *buffer, size_t size, size_t count, FILE *stream)
 
size_t dll_fwrite (const void *buffer, size_t size, size_t count, FILE *stream)
 
int dll_fflush (FILE *stream)
 
int dll_fputc (int character, FILE *stream)
 
int dll_fputs (const char *szLine, FILE *stream)
 
int dll_putc (int c, FILE *stream)
 
int dll_fseek (FILE *stream, long offset, int origin)
 
int dll_fseek64 (FILE *stream, off64_t offset, int origin)
 
long dll_ftell (FILE *stream)
 
off64_t dll_ftell64 (FILE *stream)
 
void dll_rewind (FILE *stream)
 
int dll_fgetpos (FILE *stream, fpos_t *pos)
 
int dll_fgetpos64 (FILE *stream, fpos64_t *pos)
 
int dll_fsetpos (FILE *stream, const fpos_t *pos)
 
int dll_fsetpos64 (FILE *stream, const fpos64_t *pos)
 
DIRdll_opendir (const char *name)
 
struct direntdll_readdir (DIR *dirp)
 
int dll_closedir (DIR *dirp)
 
void dll_rewinddir (DIR *dirp)
 
int dll_fprintf (FILE *stream, const char *format,...)
 
int dllprintf (const char *format,...)
 
int dll_vfprintf (FILE *stream, const char *format, va_list va)
 
int dll_fgetc (FILE *stream)
 
char * dll_fgets (char *pszString, int num, FILE *stream)
 
int dll_getc (FILE *stream)
 
int dll_ungetc (int c, FILE *stream)
 
int dll_ioctl (int d, unsigned long int request, va_list va)
 
int dll_stat (const char *path, struct _stat *buffer)
 
int dll_stat64 (const char *path, struct stat64 *buffer)
 
void dll_flockfile (FILE *file)
 
int dll_ftrylockfile (FILE *file)
 
void dll_funlockfile (FILE *file)
 
int dll_fstat64 (int fd, struct stat64 *buf)
 
int dll_fstat (int fd, struct _stat *buf)
 
FILE * dll_popen (const char *command, const char *mode)
 
voiddll_dlopen (const char *filename, int flag)
 
int dll_setvbuf (FILE *stream, char *buf, int type, size_t size)
 
struct mntent * dll_getmntent (FILE *fp)
 
struct mntent * dll_getmntent_r (FILE *fp, struct mntent *result, char *buffer, int bufsize)
 
void__wrap_dlopen (const char *filename, int flag)
 
FILE * __wrap_popen (const char *command, const char *mode)
 
void__wrap_calloc (size_t num, size_t size)
 
void__wrap_malloc (size_t size)
 
void__wrap_realloc (void *memblock, size_t size)
 
void __wrap_free (void *pPtr)
 
int __wrap_open (const char *file, int oflag,...)
 
int __wrap_open64 (const char *file, int oflag,...)
 
int __wrap_close (int fd)
 
ssize_t __wrap_write (int fd, const void *buf, size_t count)
 
ssize_t __wrap_read (int fd, void *buf, size_t count)
 
__off_t __wrap_lseek (int filedes, __off_t offset, int whence)
 
__off64_t __wrap_lseek64 (int filedes, __off64_t offset, int whence)
 
int __wrap_fclose (FILE *fp)
 
int __wrap_ferror (FILE *stream)
 
void __wrap_clearerr (FILE *stream)
 
int __wrap_feof (FILE *stream)
 
int __wrap_fileno (FILE *stream)
 
FILE * __wrap_fopen (const char *path, const char *mode)
 
FILE * __wrap_fopen64 (const char *path, const char *mode)
 
FILE * __wrap_fdopen (int filedes, const char *mode)
 
FILE * __wrap_freopen (const char *path, const char *mode, FILE *stream)
 
size_t __wrap_fread (void *ptr, size_t size, size_t nmemb, FILE *stream)
 
size_t __wrap_fwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream)
 
int __wrap_fflush (FILE *stream)
 
int __wrap_fputc (int c, FILE *stream)
 
int __wrap_fputs (const char *s, FILE *stream)
 
int __wrap__IO_putc (int c, FILE *stream)
 
int __wrap_fseek (FILE *stream, long offset, int whence)
 
int __wrap_fseeko64 (FILE *stream, off64_t offset, int whence)
 
long __wrap_ftell (FILE *stream)
 
off64_t __wrap_ftello64 (FILE *stream)
 
void __wrap_rewind (FILE *stream)
 
int __wrap_fgetpos (FILE *stream, fpos_t *pos)
 
int __wrap_fgetpos64 (FILE *stream, fpos64_t *pos)
 
int __wrap_fsetpos (FILE *stream, fpos_t *pos)
 
int __wrap_fsetpos64 (FILE *stream, fpos64_t *pos)
 
DIR__wrap_opendir (const char *name)
 
struct dirent__wrap_readdir (DIR *dirp)
 
struct dirent__wrap_readdir64 (DIR *dirp)
 
int __wrap_closedir (DIR *dirp)
 
void __wrap_rewinddir (DIR *dirp)
 
int __wrap_fprintf (FILE *stream, const char *format,...)
 
int __wrap_vfprintf (FILE *stream, const char *format, va_list ap)
 
int __wrap_printf (const char *format,...)
 
int __wrap_fgetc (FILE *stream)
 
char * __wrap_fgets (char *s, int size, FILE *stream)
 
int __wrap__IO_getc (FILE *stream)
 
int __wrap__IO_getc_unlocked (FILE *stream)
 
int __wrap_getc_unlocked (FILE *stream)
 
int __wrap_ungetc (int c, FILE *stream)
 
int __wrap_getc (FILE *stream)
 
int __wrap_ioctl (int d, unsigned long int request,...)
 
int __wrap__stat (const char *path, struct _stat *buffer)
 
int __wrap_stat (const char *path, struct _stat *buffer)
 
int __wrap_stat64 (const char *path, struct stat64 *buffer)
 
int __wrap___xstat (int __ver, const char *__filename, struct stat *__stat_buf)
 
int __wrap___xstat64 (int __ver, const char *__filename, struct stat64 *__stat_buf)
 
int __wrap___lxstat64 (int __ver, const char *__filename, struct stat64 *__stat_buf)
 
void __wrap_flockfile (FILE *file)
 
int __wrap_ftrylockfile (FILE *file)
 
void __wrap_funlockfile (FILE *file)
 
int __wrap___fxstat64 (int ver, int fd, struct stat64 *buf)
 
int __wrap___fxstat (int ver, int fd, struct stat *buf)
 
int __wrap_fstat (int fd, struct _stat *buf)
 
int __wrap_fstat64 (int fd, struct stat64 *buf)
 
int __wrap_setvbuf (FILE *stream, char *buf, int type, size_t size)
 
struct mntent * __wrap_getmntent (FILE *fp)
 
struct mntent * __wrap_getmntent_r (FILE *fp, struct mntent *result, char *buffer, int bufsize)
 

Function Documentation

◆ __wrap___fxstat()

int __wrap___fxstat ( int ver,
int fd,
struct stat * buf )

◆ __wrap___fxstat64()

int __wrap___fxstat64 ( int ver,
int fd,
struct stat64 * buf )

◆ __wrap___lxstat64()

int __wrap___lxstat64 ( int __ver,
const char * __filename,
struct stat64 * __stat_buf )

◆ __wrap___xstat()

int __wrap___xstat ( int __ver,
const char * __filename,
struct stat * __stat_buf )

◆ __wrap___xstat64()

int __wrap___xstat64 ( int __ver,
const char * __filename,
struct stat64 * __stat_buf )

◆ __wrap__IO_getc()

int __wrap__IO_getc ( FILE * stream)

◆ __wrap__IO_getc_unlocked()

int __wrap__IO_getc_unlocked ( FILE * stream)

◆ __wrap__IO_putc()

int __wrap__IO_putc ( int c,
FILE * stream )

◆ __wrap__stat()

int __wrap__stat ( const char * path,
struct _stat * buffer )

◆ __wrap_calloc()

void * __wrap_calloc ( size_t num,
size_t size )

◆ __wrap_clearerr()

void __wrap_clearerr ( FILE * stream)

◆ __wrap_close()

int __wrap_close ( int fd)

◆ __wrap_closedir()

int __wrap_closedir ( DIR * dirp)

◆ __wrap_dlopen()

void * __wrap_dlopen ( const char * filename,
int flag )

◆ __wrap_fclose()

int __wrap_fclose ( FILE * fp)

◆ __wrap_fdopen()

FILE * __wrap_fdopen ( int filedes,
const char * mode )

◆ __wrap_feof()

int __wrap_feof ( FILE * stream)

◆ __wrap_ferror()

int __wrap_ferror ( FILE * stream)

◆ __wrap_fflush()

int __wrap_fflush ( FILE * stream)

◆ __wrap_fgetc()

int __wrap_fgetc ( FILE * stream)

◆ __wrap_fgetpos()

int __wrap_fgetpos ( FILE * stream,
fpos_t * pos )

◆ __wrap_fgetpos64()

int __wrap_fgetpos64 ( FILE * stream,
fpos64_t * pos )

◆ __wrap_fgets()

char * __wrap_fgets ( char * s,
int size,
FILE * stream )

◆ __wrap_fileno()

int __wrap_fileno ( FILE * stream)

◆ __wrap_flockfile()

void __wrap_flockfile ( FILE * file)

◆ __wrap_fopen()

FILE * __wrap_fopen ( const char * path,
const char * mode )

◆ __wrap_fopen64()

FILE * __wrap_fopen64 ( const char * path,
const char * mode )

◆ __wrap_fprintf()

int __wrap_fprintf ( FILE * stream,
const char * format,
... )

◆ __wrap_fputc()

int __wrap_fputc ( int c,
FILE * stream )

◆ __wrap_fputs()

int __wrap_fputs ( const char * s,
FILE * stream )

◆ __wrap_fread()

size_t __wrap_fread ( void * ptr,
size_t size,
size_t nmemb,
FILE * stream )

◆ __wrap_free()

void __wrap_free ( void * pPtr)

◆ __wrap_freopen()

FILE * __wrap_freopen ( const char * path,
const char * mode,
FILE * stream )

◆ __wrap_fseek()

int __wrap_fseek ( FILE * stream,
long offset,
int whence )

◆ __wrap_fseeko64()

int __wrap_fseeko64 ( FILE * stream,
off64_t offset,
int whence )

◆ __wrap_fsetpos()

int __wrap_fsetpos ( FILE * stream,
fpos_t * pos )

◆ __wrap_fsetpos64()

int __wrap_fsetpos64 ( FILE * stream,
fpos64_t * pos )

◆ __wrap_fstat()

int __wrap_fstat ( int fd,
struct _stat * buf )

◆ __wrap_fstat64()

int __wrap_fstat64 ( int fd,
struct stat64 * buf )

◆ __wrap_ftell()

long __wrap_ftell ( FILE * stream)

◆ __wrap_ftello64()

off64_t __wrap_ftello64 ( FILE * stream)

◆ __wrap_ftrylockfile()

int __wrap_ftrylockfile ( FILE * file)

◆ __wrap_funlockfile()

void __wrap_funlockfile ( FILE * file)

◆ __wrap_fwrite()

size_t __wrap_fwrite ( const void * ptr,
size_t size,
size_t nmemb,
FILE * stream )

◆ __wrap_getc()

int __wrap_getc ( FILE * stream)

◆ __wrap_getc_unlocked()

int __wrap_getc_unlocked ( FILE * stream)

◆ __wrap_getmntent()

struct mntent * __wrap_getmntent ( FILE * fp)

◆ __wrap_getmntent_r()

struct mntent * __wrap_getmntent_r ( FILE * fp,
struct mntent * result,
char * buffer,
int bufsize )

◆ __wrap_ioctl()

int __wrap_ioctl ( int d,
unsigned long int request,
... )

◆ __wrap_lseek()

__off_t __wrap_lseek ( int filedes,
__off_t offset,
int whence )

◆ __wrap_lseek64()

__off64_t __wrap_lseek64 ( int filedes,
__off64_t offset,
int whence )

◆ __wrap_malloc()

void * __wrap_malloc ( size_t size)

◆ __wrap_open()

int __wrap_open ( const char * file,
int oflag,
... )

◆ __wrap_open64()

int __wrap_open64 ( const char * file,
int oflag,
... )

◆ __wrap_opendir()

DIR * __wrap_opendir ( const char * name)

◆ __wrap_popen()

FILE * __wrap_popen ( const char * command,
const char * mode )

◆ __wrap_printf()

int __wrap_printf ( const char * format,
... )

◆ __wrap_read()

ssize_t __wrap_read ( int fd,
void * buf,
size_t count )

◆ __wrap_readdir()

struct dirent * __wrap_readdir ( DIR * dirp)

◆ __wrap_readdir64()

struct dirent * __wrap_readdir64 ( DIR * dirp)

◆ __wrap_realloc()

void * __wrap_realloc ( void * memblock,
size_t size )

◆ __wrap_rewind()

void __wrap_rewind ( FILE * stream)

◆ __wrap_rewinddir()

void __wrap_rewinddir ( DIR * dirp)

◆ __wrap_setvbuf()

int __wrap_setvbuf ( FILE * stream,
char * buf,
int type,
size_t size )

◆ __wrap_stat()

int __wrap_stat ( const char * path,
struct _stat * buffer )

◆ __wrap_stat64()

int __wrap_stat64 ( const char * path,
struct stat64 * buffer )

◆ __wrap_ungetc()

int __wrap_ungetc ( int c,
FILE * stream )

◆ __wrap_vfprintf()

int __wrap_vfprintf ( FILE * stream,
const char * format,
va_list ap )

◆ __wrap_write()

ssize_t __wrap_write ( int fd,
const void * buf,
size_t count )

◆ dll_clearerr()

void dll_clearerr ( FILE * stream)

◆ dll_close()

int dll_close ( int fd)

◆ dll_closedir()

int dll_closedir ( DIR * dirp)

◆ dll_dlopen()

void * dll_dlopen ( const char * filename,
int flag )

◆ dll_fclose()

int dll_fclose ( FILE * stream)

◆ dll_fdopen()

FILE * dll_fdopen ( int i,
const char * file )

◆ dll_feof()

int dll_feof ( FILE * stream)

◆ dll_ferror()

int dll_ferror ( FILE * stream)

◆ dll_fflush()

int dll_fflush ( FILE * stream)

◆ dll_fgetc()

int dll_fgetc ( FILE * stream)

◆ dll_fgetpos()

int dll_fgetpos ( FILE * stream,
fpos_t * pos )

◆ dll_fgetpos64()

int dll_fgetpos64 ( FILE * stream,
fpos64_t * pos )

◆ dll_fgets()

char * dll_fgets ( char * pszString,
int num,
FILE * stream )

◆ dll_fileno()

int dll_fileno ( FILE * stream)

◆ dll_flockfile()

void dll_flockfile ( FILE * file)

◆ dll_fopen()

FILE * dll_fopen ( const char * filename,
const char * mode )

◆ dll_fprintf()

int dll_fprintf ( FILE * stream,
const char * format,
... )

◆ dll_fputc()

int dll_fputc ( int character,
FILE * stream )

◆ dll_fputs()

int dll_fputs ( const char * szLine,
FILE * stream )

◆ dll_fread()

int dll_fread ( void * buffer,
size_t size,
size_t count,
FILE * stream )

◆ dll_freopen()

FILE * dll_freopen ( const char * path,
const char * mode,
FILE * stream )

◆ dll_fseek()

int dll_fseek ( FILE * stream,
long offset,
int origin )

◆ dll_fseek64()

int dll_fseek64 ( FILE * stream,
off64_t offset,
int origin )

◆ dll_fsetpos()

int dll_fsetpos ( FILE * stream,
const fpos_t * pos )

◆ dll_fsetpos64()

int dll_fsetpos64 ( FILE * stream,
const fpos64_t * pos )

◆ dll_fstat()

int dll_fstat ( int fd,
struct _stat * buf )

◆ dll_fstat64()

int dll_fstat64 ( int fd,
struct stat64 * buf )

◆ dll_ftell()

long dll_ftell ( FILE * stream)

◆ dll_ftell64()

off64_t dll_ftell64 ( FILE * stream)

◆ dll_ftrylockfile()

int dll_ftrylockfile ( FILE * file)

◆ dll_funlockfile()

void dll_funlockfile ( FILE * file)

◆ dll_fwrite()

size_t dll_fwrite ( const void * buffer,
size_t size,
size_t count,
FILE * stream )

◆ dll_getc()

int dll_getc ( FILE * stream)

◆ dll_getmntent()

struct mntent * dll_getmntent ( FILE * fp)

◆ dll_getmntent_r()

struct mntent * dll_getmntent_r ( FILE * fp,
struct mntent * result,
char * buffer,
int bufsize )

◆ dll_ioctl()

int dll_ioctl ( int d,
unsigned long int request,
va_list va )

◆ dll_lseek()

off_t dll_lseek ( int fd,
__off_t lPos,
int iWhence )

◆ dll_lseeki64()

__off64_t dll_lseeki64 ( int fd,
__off64_t lPos,
int iWhence )

◆ dll_open()

int dll_open ( const char * szFileName,
int iMode )

◆ dll_opendir()

DIR * dll_opendir ( const char * name)

◆ dll_popen()

FILE * dll_popen ( const char * command,
const char * mode )

◆ dll_putc()

int dll_putc ( int c,
FILE * stream )

◆ dll_read()

int dll_read ( int fd,
void * buffer,
unsigned int uiSize )

◆ dll_readdir()

struct dirent * dll_readdir ( DIR * dirp)

◆ dll_rewind()

void dll_rewind ( FILE * stream)

◆ dll_rewinddir()

void dll_rewinddir ( DIR * dirp)

◆ dll_setvbuf()

int dll_setvbuf ( FILE * stream,
char * buf,
int type,
size_t size )

◆ dll_stat()

int dll_stat ( const char * path,
struct _stat * buffer )

◆ dll_stat64()

int dll_stat64 ( const char * path,
struct stat64 * buffer )

◆ dll_ungetc()

int dll_ungetc ( int c,
FILE * stream )

◆ dll_vfprintf()

int dll_vfprintf ( FILE * stream,
const char * format,
va_list va )

◆ dll_write()

int dll_write ( int fd,
const void * buffer,
unsigned int uiSize )

◆ dllcalloc()

void * dllcalloc ( size_t num,
size_t size )

◆ dllfree()

void dllfree ( void * pPtr)

◆ dllmalloc()

void * dllmalloc ( size_t size)

◆ dllprintf()

int dllprintf ( const char * format,
... )

◆ dllrealloc()

void * dllrealloc ( void * memblock,
size_t size )