|
VLC
2.1.0-git
|
This file is a collection of portability fixes. More...

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]) |
This file is a collection of portability fixes.
| #define _ | ( | str | ) | vlc_gettext (str) |
Referenced by aout_FiltersPipelineCreate(), aout_New(), aout_OutputNew(), config_ListModules(), decoder_New(), DecoderUnsupportedCodec(), EnumClockSource(), EsOutESVarUpdateGeneric(), EsOutProgramGetMetaName(), EsOutProgramUpdateScrambled(), EsOutSend(), EsOutUpdateInfo(), Help(), input_ControlVarInit(), input_ControlVarNavigation(), input_ControlVarTitle(), input_DecoderSetCcState(), input_vaControl(), InputSourceInit(), intf_Create(), libvlc_InternalAddIntf(), libvlc_InternalInit(), playlist_Create(), playlist_MLLoad(), playlist_NodeCreate(), print_help_on_full_help(), Usage(), Version(), vlm_ControlMediaInstanceStart(), vlm_OnMediaUpdate(), vout_InitInterlacingSupport(), and vout_IntfInit().
| #define _Static_assert | ( | x, | |
| s | |||
| ) | ((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) |
Referenced by net_SetMcastOut(), and var_GetIfIndex().
| #define LC_MESSAGES_MASK 0 |
Referenced by vlc_vaLog().
| #define LC_NUMERIC_MASK 0 |
Referenced by config_LoadConfigFile(), config_SaveConfigFile(), us_strtod(), us_strtof(), and us_vasprintf().
| #define N_ | ( | str | ) | gettext_noop (str) |
Referenced by config_SaveConfigFile(), decoder_New(), vlc_keycode2str(), and vlc_meta_TypeToLocalizedString().
| #define static_assert _Static_assert |
Referenced by block_Alloc(), mdate_interrupt(), mdate_multimedia(), mdate_tick(), mdate_wall(), vlc_global_mutex(), and vlc_stat().
| #define VLC_NOTHROW |
| typedef void* locale_t |
| enum ACTION |
| enum VISIT |
| int asprintf | ( | char ** | , |
| const char * | , | ||
| ... | |||
| ) |
Referenced by AddIntfCallback(), ArtCacheGetDirPath(), ArtCacheName(), config_AddIntf(), config_GetAppDir(), config_GetConfigFile(), config_GetDataDir(), config_GetLibDir(), config_GetTypeDir(), config_GetUserDir(), config_LoadCmdLine(), config_OpenConfigFile(), config_RemoveIntf(), config_SaveConfigFile(), DeinterlaceAdd(), DisplayVoutTitle(), EsOutESVarUpdateGeneric(), EsOutProgramGetMetaName(), EsOutProgramMeta(), EsOutSend(), EsOutSetRecord(), get_path(), getAppDependentDir(), GetDirByItemUIDs(), GetFileByItemUID(), GetTmpFile(), http_auth_FormatAuthorizationHeader(), httpd_HtmlError(), input_ControlVarNavigation(), input_ControlVarTitle(), input_CreateFilename(), input_item_SetEpg(), input_item_SetEpgOffline(), input_item_SetURI(), input_vaControl(), InputGetExtraFilesPattern(), libvlc_InternalInit(), LoadSubtitles(), make_path(), paths_to_list(), playlist_FindArtInCache(), playlist_MLLoad(), sdp_Start(), sout_stream_url_to_chain(), test_current_directory_path(), var_Command(), vlc_bindtextdomain(), vlc_keycode2str(), vlc_path2uri(), vlm_ControlMediaInstanceStart(), vlm_New(), vlm_OnMediaUpdate(), vout_EnableFilter(), vout_SendEventSourceAspect(), vout_SendEventSourceCrop(), and vout_snapshot_SaveImage().
| double atof | ( | const char * | ) |
Referenced by config_LoadConfigFile(), and vlc_audio_replay_gain_MergeFromMeta().
| 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().
|
inlinestatic |
Referenced by config_LoadConfigFile(), config_SaveConfigFile(), us_strtod(), us_strtof(), us_vasprintf(), and vlc_vaLog().
| 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 * | |||
| ) |
|
inlinestatic |
| ssize_t getline | ( | char ** | , |
| size_t * | , | ||
| FILE * | |||
| ) |
Referenced by config_GetLibDir(), config_GetTypeDir(), and config_LoadConfigFile().
| pid_t getpid | ( | void | ) |
Referenced by config_SaveConfigFile(), and libvlc_InternalInit().
|
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 | ||
| ) |
Referenced by date_Increment(), EsOutUpdateInfo(), format_duration(), mdate(), mdate_perf(), and mtime_to_ts().
|
read |
Referenced by input_item_SetEpg(), str_format_time(), vout_BuildOSDEpg(), and vout_snapshot_SaveImage().
Referenced by config_LoadConfigFile(), config_SaveConfigFile(), us_strtod(), us_strtof(), us_vasprintf(), and vlc_vaLog().
| long nrand48 | ( | unsigned short | subi[3] | ) |
Referenced by vlc_lrand48().
| int poll | ( | struct pollfd * | , |
| unsigned | , | ||
| int | |||
| ) |
Referenced by httpd_HostThread(), net_Accept(), net_Connect(), net_Read(), net_Write(), and vlc_tls_ClientSessionCreate().
| 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 * | |||
| ) |
Referenced by demux_IsPathExtension(), demux_New(), httpd_ClientRecv(), httpd_HostThread(), httpd_MsgGet(), httpd_StreamCallBack(), image_Type2Fourcc(), LanguageArrayIndex(), LanguageGetCode(), meta_sort(), meta_strcasecmp_title(), module_match_name(), proto_SORT_URI(), subtitles_Detect(), subtitles_Filter(), vlc_mime_Ext2Mime(), and vlc_module_load().
| 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 | |||
| ) |
Referenced by AuthGetParam(), AuthGetParamNoQuotes(), ChainGetValue(), config_ChainCreate(), config_ChainParseOptions(), and make_path().
| 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 ** | |||
| ) |
Referenced by EsOutSelect(), InitPrograms(), and vlc_InitAction().
| long long int strtoll | ( | const char * | , |
| char ** | , | ||
| int | |||
| ) |
Referenced by config_LoadCmdLine(), strtoi(), and var_OptionParse().
| 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 | ||
| ) |
Referenced by var_DestroyAll(), and vlc_DeinitActions().
| 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 * | ) |
Referenced by config_LoadConfigFile(), config_SaveConfigFile(), us_strtod(), us_strtof(), us_vasprintf(), and vlc_vaLog().
| int vasprintf | ( | char ** | , |
| const char * | , | ||
| va_list | |||
| ) |
1.8.1.2