VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
vlc_fixups.h File Reference

This file is a collection of portability fixes. More...

Include dependency graph for vlc_fixups.h:

Go to the source code of this file.

Data Structures

struct  lldiv_t
struct  pollfd
struct  if_nameindex
struct  entry

Macros

#define VLC_NOTHROW
#define LC_NUMERIC_MASK   0
#define LC_MESSAGES_MASK   0
#define _Static_assert(x, s)   ((void) sizeof (struct { unsigned:-!(x); }))
#define static_assert   _Static_assert
#define ATTR_ALIGN(align)
#define _(str)   vlc_gettext (str)
#define N_(str)   gettext_noop (str)
#define gettext_noop(str)   (str)
#define if_nametoindex(name)   atoi(name)
#define if_nameindex()   (errno = ENOBUFS, NULL)
#define if_freenameindex(list)   (void)0

Typedefs

typedef void * locale_t
typedef struct entry ENTRY

Enumerations

enum  {
  POLLIN = 1, POLLOUT = 2, POLLPRI = 4, POLLERR = 8,
  POLLHUP = 16, POLLNVAL = 32
}
enum  ACTION { FIND, ENTER }
enum  VISIT { preorder, postorder, endorder, leaf }

Functions

int asprintf (char **, const char *,...)
void flockfile (FILE *)
int ftrylockfile (FILE *)
void funlockfile (FILE *)
int getc_unlocked (FILE *)
int getchar_unlocked (void)
int putc_unlocked (int, FILE *)
int putchar_unlocked (int)
ssize_t getdelim (char **, size_t *, int, FILE *)
ssize_t getline (char **, size_t *, FILE *)
void rewind (FILE *)
int vasprintf (char **, const char *, va_list)
int strcasecmp (const char *, const char *)
char * strcasestr (const char *, const char *)
char * strdup (const char *)
int strverscmp (const char *, const char *)
size_t strnlen (const char *, size_t)
char * strndup (const char *, size_t)
size_t strlcpy (char *, const char *, size_t)
char * strsep (char **, const char *)
char * strtok_r (char *, const char *, char **)
double atof (const char *)
long long atoll (const char *)
lldiv_t lldiv (long long, long long)
float strtof (const char *, char **)
long long int strtoll (const char *, char **, int)
struct tm * gmtime_r (const time_t *, struct tm *)
struct tm * localtime_r (const time_t *, struct tm *)
pid_t getpid (void)
int fsync (int fd)
int() dirfd (DIR *)
DIR * fdopendir (int)
static char * getenv (const char *name)
int setenv (const char *, const char *, int)
int unsetenv (const char *)
int posix_memalign (void **, size_t, size_t)
static locale_t uselocale (locale_t loc)
static void freelocale (locale_t loc)
static locale_t newlocale (int mask, const char *locale, locale_t base)
void swab (const void *, void *, ssize_t)
int inet_pton (int, const char *, void *)
const char * inet_ntop (int, const void *, char *, int)
int poll (struct pollfd *, unsigned, int)
void * tsearch (const void *key, void **rootp, int(*cmp)(const void *, const void *))
void * tfind (const void *key, const void **rootp, int(*cmp)(const void *, const void *))
void * tdelete (const void *key, void **rootp, int(*cmp)(const void *, const void *))
void twalk (const void *root, void(*action)(const void *nodep, VISIT which, int depth))
void tdestroy (void *root, void(*free_node)(void *nodep))
double erand48 (unsigned short subi[3])
long jrand48 (unsigned short subi[3])
long nrand48 (unsigned short subi[3])

Detailed Description

This file is a collection of portability fixes.

Macro Definition Documentation

#define _ (   str)    vlc_gettext (str)
#define _Static_assert (   x,
 
)    ((void) sizeof (struct { unsigned:-!(x); }))
#define ATTR_ALIGN (   align)
#define gettext_noop (   str)    (str)
#define if_freenameindex (   list)    (void)0
#define if_nameindex ( )    (errno = ENOBUFS, NULL)
#define if_nametoindex (   name)    atoi(name)

Referenced by net_SetMcastOut(), and var_GetIfIndex().

#define LC_MESSAGES_MASK   0

Referenced by vlc_vaLog().

#define LC_NUMERIC_MASK   0
#define N_ (   str)    gettext_noop (str)
#define static_assert   _Static_assert
#define VLC_NOTHROW

Typedef Documentation

typedef struct entry ENTRY
typedef void* locale_t

Enumeration Type Documentation

anonymous enum
Enumerator:
POLLIN 
POLLOUT 
POLLPRI 
POLLERR 
POLLHUP 
POLLNVAL 
enum ACTION
Enumerator:
FIND 
ENTER 
enum VISIT
Enumerator:
preorder 
postorder 
endorder 
leaf 

Function Documentation

int asprintf ( char **  ,
const char *  ,
  ... 
)
double atof ( const char *  )
long long atoll ( const char *  )

Referenced by Create().

int() dirfd ( DIR *  )

Referenced by vlc_readdir().

double erand48 ( unsigned short  subi[3])

Referenced by vlc_drand48().

DIR* fdopendir ( int  )
void flockfile ( FILE *  )

Referenced by PrintColorMsg(), and PrintMsg().

static void freelocale ( locale_t  loc)
inlinestatic
int fsync ( int  fd)

Referenced by config_SaveConfigFile(), and vlc_trace().

int ftrylockfile ( FILE *  )
void funlockfile ( FILE *  )

Referenced by PrintColorMsg(), and PrintMsg().

int getc_unlocked ( FILE *  )
int getchar_unlocked ( void  )
ssize_t getdelim ( char **  ,
size_t *  ,
int  ,
FILE *   
)
static char* getenv ( const char *  name)
inlinestatic
ssize_t getline ( char **  ,
size_t *  ,
FILE *   
)
pid_t getpid ( void  )
struct tm* gmtime_r ( const time_t *  ,
struct tm *   
)
read
const char* inet_ntop ( int  ,
const void *  ,
char *  ,
int   
)
int inet_pton ( int  ,
const char *  ,
void *   
)
long jrand48 ( unsigned short  subi[3])

Referenced by vlc_mrand48().

lldiv_t lldiv ( long  long,
long  long 
)
struct tm* localtime_r ( const time_t *  ,
struct tm *   
)
read
static locale_t newlocale ( int  mask,
const char *  locale,
locale_t  base 
)
inlinestatic
long nrand48 ( unsigned short  subi[3])

Referenced by vlc_lrand48().

int poll ( struct pollfd ,
unsigned  ,
int   
)
int posix_memalign ( void **  ,
size_t  ,
size_t   
)
int putc_unlocked ( int  ,
FILE *   
)

Referenced by PrintMsg().

int putchar_unlocked ( int  )
void rewind ( FILE *  )

Referenced by config_LoadConfigFile().

int setenv ( const char *  ,
const char *  ,
int   
)

Referenced by system_Init().

int strcasecmp ( const char *  ,
const char *   
)
char* strcasestr ( const char *  ,
const char *   
)

Referenced by input_item_MetaMatch().

char* strdup ( const char *  )

Referenced by __vlc_dictionary_insert(), access_New(), aout_DeviceSet(), ArtCacheGetDirPath(), ArtCacheName(), AuthDigest(), AuthGetParam(), AuthGetParamNoQuotes(), config_ChainCreate(), config_ChainDuplicate(), config_GetDataDir(), config_GetHomeDir(), config_GetIntChoices(), config_GetLibDir(), config_GetLibPath(), config_GetTypeDir(), config_GetUserDir(), config_LoadCmdLine(), config_PutPsz(), Create(), decode_URI_duplicate(), DeinterlaceAdd(), demux_New(), DupString(), es_format_Copy(), EsOutESVarUpdateGeneric(), EsOutMeta(), EsOutProgramEpg(), EsOutProgramMeta(), GetConstPrivatePath(), GetTmpPath(), httpd_ClientRecv(), httpd_FileNew(), httpd_MsgAdd(), httpd_RedirectNew(), httpd_StreamNew(), httpd_UrlNew(), info_category_New(), info_New(), input_ControlVarNavigation(), input_ControlVarTitle(), input_item_AddOption(), input_item_GetInfo(), input_item_GetMeta(), input_item_GetName(), input_item_GetTitleFbName(), input_item_GetURI(), input_item_SetName(), input_item_SetURI(), input_vaControl(), InputGetExtraFilesPattern(), InputSourceInit(), intf_Create(), LanguageGetCode(), LanguageGetName(), LanguageSplit(), libvlc_InternalInit(), LoadSlaves(), make_path(), makeaddrinfo(), Manage(), ml_CopyMedia(), ml_CreateAppendPersonAdv(), mrl_Parse(), OSDTextUpdate(), playlist_ServicesDiscoveryAdd(), services_discovery_GetLocalizedName(), sout_AccessOutNew(), sout_AnnounceRegisterSDP(), sout_NewInstance(), sout_StreamChainNew(), spu_ChangeFilters(), spu_ChangeSources(), sql_Create(), str_format_meta(), str_format_time(), strdup_null(), strdupnull(), stream_AccessNew(), stream_DemuxNew(), stream_FilterChainNew(), stream_FilterNew(), stream_MemoryNew(), SubtitleAdd(), subtitles_Detect(), system_Configure(), test(), text_style_Copy(), ThreadChangeFilters(), var_Change(), var_Command(), var_Create(), var_Inherit(), var_OptionParse(), vlc_dictionary_all_keys(), vlc_epg_AddEvent(), vlc_epg_Init(), vlc_epg_Merge(), vlc_getcwd(), vlc_idna_to_ascii(), vlc_input_attachment_New(), vlc_input_title_Duplicate(), vlc_meta_AddExtra(), vlc_meta_Merge(), vlc_meta_Set(), vlc_object_get_name(), vlc_object_set_name(), vlc_path2uri(), vlc_plugin_setter(), vlc_readdir(), vlc_sd_probe_Add(), vlc_seekpoint_Duplicate(), vlc_UrlParse(), vlm_ControlMediaInstanceGets(), vlm_media_Copy(), vlm_MediaInstanceNew(), vlm_OnMediaUpdate(), vout_control_PushMessage(), vout_control_PushString(), vout_EnableFilter(), vout_OSDEpgText(), vout_OSDText(), vout_SendEventSourceAspect(), vout_SendEventSourceCrop(), and vout_snapshot_SaveImage().

size_t strlcpy ( char *  ,
const char *  ,
size_t   
)

Referenced by AddressCreate(), and strcpy_strip_ext().

char* strndup ( const char *  ,
size_t   
)
size_t strnlen ( const char *  ,
size_t   
)

Referenced by GetConstPrivatePath().

char* strsep ( char **  ,
const char *   
)

Referenced by aout_FiltersNew(), and playlist_Create().

float strtof ( const char *  ,
char **   
)

Referenced by us_strtof().

char* strtok_r ( char *  ,
const char *  ,
char **   
)
long long int strtoll ( const char *  ,
char **  ,
int   
)
int strverscmp ( const char *  ,
const char *   
)
void swab ( const void *  ,
void *  ,
ssize_t   
)
void* tdelete ( const void *  key,
void **  rootp,
int(*)(const void *, const void *)  cmp 
)

Referenced by var_Destroy().

void tdestroy ( void *  root,
void(*)(void *nodep)  free_node 
)
void* tfind ( const void *  key,
const void **  rootp,
int(*)(const void *, const void *)  cmp 
)

Referenced by Lookup(), and vlc_key_to_action().

void* tsearch ( const void *  key,
void **  rootp,
int(*)(const void *, const void *)  cmp 
)

Referenced by var_Create(), and vlc_AddMapping().

void twalk ( const void *  root,
void(*)(const void *nodep, VISIT which, int depth)  action 
)

Referenced by DumpCommand().

int unsetenv ( const char *  )
static locale_t uselocale ( locale_t  loc)
inlinestatic
int vasprintf ( char **  ,
const char *  ,
va_list   
)