VLC 4.0.0-dev
|
This file is a collection of portability fixes. More...
Go to the source code of this file.
Data Structures | |
struct | lldiv_t |
struct | max_align_t |
struct | pollfd |
struct | if_nameindex |
struct | timespec |
Macros | |
#define | VLC_NOTHROW |
#define | TIME_UTC 1 |
#define | aligned_free(ptr) free(ptr) |
#define | LC_ALL_MASK 0 |
#define | LC_NUMERIC_MASK 0 |
#define | LC_MESSAGES_MASK 0 |
#define | LC_GLOBAL_LOCALE ((locale_t)(uintptr_t)1) |
#define | _(str) vlc_gettext (str) |
#define | N_(str) gettext_noop (str) |
#define | gettext_noop(str) (str) |
#define | POLLIN (POLLRDNORM|POLLRDBAND) |
#define | POLLOUT (POLLWRNORM|POLLWRBAND) |
#define | if_nameindex() (errno = ENOBUFS, NULL) |
#define | if_freenameindex(list) (void)0 |
#define | nanf(tagp) NAN |
Typedefs | |
typedef void * | locale_t |
Enumerations | |
enum | { POLLERR =0x1 , POLLHUP =0x2 , POLLNVAL =0x4 , POLLWRNORM =0x10 , POLLWRBAND =0x20 , POLLRDNORM =0x100 , POLLRDBAND =0x200 , POLLPRI =0x400 } |
enum | VISIT { preorder , postorder , endorder , leaf } |
Functions | |
int | asprintf (char **, const char *,...) |
void | flockfile (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) |
void * | memrchr (const void *, int, size_t) |
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 * | strnstr (const char *, 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) |
ssize_t | readv (int, const struct iovec *, int) |
ssize_t | writev (int, const struct iovec *, int) |
struct tm * | gmtime_r (const time_t *, struct tm *) |
struct tm * | localtime_r (const time_t *, struct tm *) |
time_t | timegm (struct tm *) |
int | timespec_get (struct timespec *, int) |
int | gettimeofday (struct timeval *, struct timezone *) |
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) |
void * | aligned_alloc (size_t, size_t) |
static void | freelocale (locale_t loc) |
static locale_t | newlocale (int mask, const char *locale, locale_t base) |
static locale_t | uselocale (locale_t loc) |
void | swab (const void *, void *, ssize_t) |
int | inet_pton (int, const char *, void *) |
const char * | inet_ntop (int, const void *, char *, socklen_t) |
int | poll (struct pollfd *, unsigned, int) |
ssize_t | recvmsg (int, struct msghdr *, int) |
ssize_t | sendmsg (int, const struct msghdr *, int) |
void * | tsearch (const void *key, void **rootp, int(*cmp)(const void *, const void *)) |
void * | tfind (const void *key, void *const *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 * | lfind (const void *key, const void *base, size_t *nmemb, size_t size, int(*cmp)(const void *, const void *)) |
void | tdestroy (void *root, void(*free_node)(void *nodep)) |
unsigned long | getauxval (unsigned long) |
double | erand48 (unsigned short subi[3]) |
long | jrand48 (unsigned short subi[3]) |
long | nrand48 (unsigned short subi[3]) |
void | sincos (double, double *, double *) |
void | sincosf (float, float *, float *) |
char * | realpath (const char *restrict pathname, char *restrict resolved_path) |
int | clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp) |
This file is a collection of portability fixes.
#define _ | ( | str | ) | vlc_gettext (str) |
#define aligned_free | ( | ptr | ) | free(ptr) |
#define gettext_noop | ( | str | ) | (str) |
#define if_freenameindex | ( | list | ) | (void)0 |
#define if_nameindex | ( | ) | (errno = ENOBUFS, NULL) |
#define LC_ALL_MASK 0 |
#define LC_GLOBAL_LOCALE ((locale_t)(uintptr_t)1) |
#define LC_MESSAGES_MASK 0 |
#define LC_NUMERIC_MASK 0 |
#define N_ | ( | str | ) | gettext_noop (str) |
#define nanf | ( | tagp | ) | NAN |
#define POLLIN (POLLRDNORM|POLLRDBAND) |
#define POLLOUT (POLLWRNORM|POLLWRBAND) |
#define TIME_UTC 1 |
#define VLC_NOTHROW |
typedef void* locale_t |
anonymous enum |
enum VISIT |
void * aligned_alloc | ( | size_t | , |
size_t | |||
) |
Referenced by picture_Allocate(), picture_pool_New(), and vlc_frame_Alloc().
int asprintf | ( | char ** | , |
const char * | , | ||
... | |||
) |
Referenced by access_New(), aout_AddMixModeChoice(), AppendRemapFilter(), ArtCacheGetDirPath(), ArtCacheName(), config_AddIntf(), config_GetAppDir(), config_GetAppDir(), config_GetAppDir(), config_GetConfigFile(), config_GetHomeDir(), config_GetSysPath(), config_GetTypeDir(), config_LoadCmdLine(), config_OpenConfigFile(), config_RemoveIntf(), config_SaveConfigFile(), CreateCacheKey(), DecoderSendSubstream(), demux_NewAdvanced(), DisplayVoutTitle(), download_key(), EsGetTitle(), EsInfoCategoryName(), EsOutProgramGetMetaName(), EsOutProgramGetProgramName(), EsOutProgramMeta(), EsOutSetRecord(), filter_chain_AppendInner(), GetCCDescLocked(), GetDirByItemUIDs(), GetFileByItemUID(), GetTmpFile(), httpd_HandlerCallBack(), httpd_HtmlError(), InitSout(), input_FindArtInCache(), input_item_CreateFilename(), input_item_SetEpg(), input_item_SetEpgOffline(), input_item_SetURI(), input_title_GetName(), InputGetExtraFilesPattern(), InputSourceInit(), LoadSlaves(), paths_to_list(), platform_GetUserDir(), print_item(), seekpoint_GetName(), size_str(), sout_stream_url_to_chain(), subtitles_Detect(), update_DownloadReal(), vlc_credential_store(), vlc_getProxyUrl(), vlc_http_auth_FormatAuthorizationHeader(), vlc_http_authority(), vlc_http_cookies_fetch(), vlc_http_msg_add_creds_basic(), vlc_http_msg_vadd_header(), vlc_http_proxy_find(), vlc_http_res_get_redirect(), vlc_http_res_init(), vlc_keycode2str(), vlc_path2uri(), vlc_player_program_DupTitle(), vlc_renderer_item_new(), vlc_uri2path(), vlc_uri_merge_paths(), vlm_ControlMediaInstanceStart(), vlm_New(), vout_OSDEpgEvent(), vout_OSDPrintTime(), and vout_snapshot_SaveImage().
double atof | ( | const char * | ) |
Referenced by config_LoadConfigFile().
long long atoll | ( | const char * | ) |
Referenced by vlc_playlist_item_meta_InitField().
int clock_nanosleep | ( | clockid_t | clock_id, |
int | flags, | ||
const struct timespec * | rqtp, | ||
struct timespec * | rmtp | ||
) |
Referenced by vlc_tick_sleep(), and vlc_tick_wait().
int() dirfd | ( | DIR * | ) |
Referenced by vlc_readdir().
double erand48 | ( | unsigned short | subi[3] | ) |
Referenced by vlc_drand48().
DIR * fdopendir | ( | int | ) |
void flockfile | ( | FILE * | ) |
|
inlinestatic |
int fsync | ( | int | fd | ) |
Referenced by vlc_trace().
void funlockfile | ( | FILE * | ) |
unsigned long getauxval | ( | unsigned long | ) |
int getc_unlocked | ( | FILE * | ) |
int getchar_unlocked | ( | void | ) |
ssize_t getdelim | ( | char ** | , |
size_t * | , | ||
int | , | ||
FILE * | |||
) |
|
inlinestatic |
References name.
Referenced by config_GetAppDir(), config_GetDataDir(), config_GetDataDir(), config_getDataDirReal(), config_GetHomeDir(), config_GetHomeDir(), config_GetHomeDir(), config_GetLibDir(), config_GetLibExecDir(), config_getLibraryDirReal(), config_GetSysPath(), config_GetTypeDir(), config_GetUserDir(), rootwrap_bind(), system_Init(), vlc_getcwd(), and vlc_getProxyUrl().
ssize_t getline | ( | char ** | , |
size_t * | , | ||
FILE * | |||
) |
Referenced by config_GetLibDirRaw(), config_GetTypeDir(), and config_LoadConfigFile().
pid_t getpid | ( | void | ) |
Referenced by config_SaveConfigFile().
int gettimeofday | ( | struct timeval * | , |
struct timezone * | |||
) |
struct tm * gmtime_r | ( | const time_t * | , |
struct tm * | |||
) |
Referenced by vlc_http_msg_add_time(), and vout_snapshot_SaveImage().
const char * inet_ntop | ( | int | , |
const void * | , | ||
char * | , | ||
socklen_t | |||
) |
int inet_pton | ( | int | , |
const char * | , | ||
void * | |||
) |
long jrand48 | ( | unsigned short | subi[3] | ) |
Referenced by vlc_mrand48().
void * lfind | ( | const void * | key, |
const void * | base, | ||
size_t * | nmemb, | ||
size_t | size, | ||
int(*)(const void *, const void *) | cmp | ||
) |
lldiv_t lldiv | ( | long long | , |
long long | |||
) |
Referenced by date_Increment(), vlc_tick_from_frac(), vlc_tick_now(), vlc_tick_to_timespec(), vlc_timespec_adjust(), and write_duration().
struct tm * localtime_r | ( | const time_t * | , |
struct tm * | |||
) |
Referenced by input_item_SetEpg(), vlc_strftime(), vout_OSDPrintTime(), and vout_snapshot_SaveImage().
void * memrchr | ( | const void * | , |
int | , | ||
size_t | |||
) |
Referenced by vlc_uri_remove_dot_segments().
long nrand48 | ( | unsigned short | subi[3] | ) |
Referenced by randomizer_DetermineOne_(), vlc_lrand48(), and vlc_playlist_Shuffle().
int poll | ( | struct pollfd * | , |
unsigned | , | ||
int | |||
) |
Referenced by httpdLoop(), net_Accept(), rtp_dgram_thread(), vlc_dccp_Recv(), vlc_https_recv(), vlc_https_send(), vlc_poll_i11e(), and vlc_poll_i11e_inner().
int posix_memalign | ( | void ** | , |
size_t | , | ||
size_t | |||
) |
int putc_unlocked | ( | int | , |
FILE * | |||
) |
int putchar_unlocked | ( | int | ) |
ssize_t readv | ( | int | , |
const struct iovec * | , | ||
int | |||
) |
Referenced by vlc_readv_i11e().
char * realpath | ( | const char *restrict | pathname, |
char *restrict | resolved_path | ||
) |
ssize_t recvmsg | ( | int | , |
struct msghdr * | , | ||
int | |||
) |
Referenced by recv_fd(), vlc_datagram_Recv(), vlc_recvmsg_i11e(), and vlc_tls_SocketRead().
void rewind | ( | FILE * | ) |
Referenced by config_LoadConfigFile().
ssize_t sendmsg | ( | int | , |
const struct msghdr * | , | ||
int | |||
) |
Referenced by vlc_sendmsg().
int setenv | ( | const char * | , |
const char * | , | ||
int | |||
) |
Referenced by system_Init().
void sincos | ( | double | , |
double * | , | ||
double * | |||
) |
void sincosf | ( | float | , |
float * | , | ||
float * | |||
) |
int strcasecmp | ( | const char * | , |
const char * | |||
) |
Referenced by aout_FiltersNewWithClock(), bsearch_strcmp_cb(), clock_source_mapping_cmp(), CompareStrings(), demux_IsPathExtension(), demux_NewAdvanced(), GetLang_1(), GetLang_2B(), GetLang_2T(), GetLang_name(), httpd_ClientRecv(), httpd_MsgGet(), httpd_StreamCallBack(), httpdLoop(), image_Type2Fourcc(), InputSourceInit(), LanguageArrayIndex(), libvlc_GetMainPlaylist(), OpenURL(), protocol_is_smb(), protocol_set_port(), protocol_store_path(), rdh_get_slave_priority(), rdh_should_match_idx(), stream_HasExtension(), stream_IsMimeType(), subtitles_Detect(), subtitles_Filter(), var_OptionParse(), VisualizationCallback(), vlc_html_color(), vlc_http_msg_add_cookies(), vlc_http_msg_find_header(), vlc_http_msg_get_cookies(), vlc_http_msg_h2_frame(), vlc_http_msg_vadd_header(), vlc_https_connect_proxy(), and vlc_mime_Ext2Mime().
char * strcasestr | ( | const char * | , |
const char * | |||
) |
Referenced by input_item_MetaMatch().
char * strdup | ( | const char * | ) |
Referenced by access_New(), accessNewAttachment(), addons_manager_Gather(), aout_DevicesList(), aout_HotplugNotify(), ArtCacheGetDirPath(), ArtCacheName(), AuthDigest(), AuthGetParamConcat(), AuthGetParamNoQuotesConcat(), ChangeFilters(), config_ChainCreate(), config_ChainDuplicate(), config_GetDataDir(), config_GetDataDir(), config_getDataDirReal(), config_GetGenericDir(), config_GetHomeDir(), config_GetHomeDir(), config_GetHomeDir(), config_GetIntChoices(), config_GetLibDir(), config_GetLibDirRaw(), config_getLibraryDirReal(), config_GetPsz(), config_GetPszChoices(), config_GetSysPath(), config_GetTypeDir(), config_GetUserDir(), config_ListModules(), config_LoadCmdLine(), cookie_default_path(), cookie_parse(), DecoderThread_ProcessSout(), demux_FilterChainNew(), demux_NewAdvanced(), DupString(), es_format_Copy(), EsGetTitle(), EsOutProgramGetProgramName(), EsOutProgramMeta(), EsOutSelectMatchExplicitParams(), EsOutVaPrivControlLocked(), get_java_string(), getAppDependentDir(), GetTmpFile(), GetVarSlaves(), hpack_lookup_name(), hpack_lookup_value(), httpd_ClientRecv(), httpd_MsgAdd(), httpd_StreamNew(), httpd_StreamSetHTTPHeaders(), httpd_UrlNew(), info_category_New(), info_New(), input_EsOutTimeshiftNew(), input_item_AddOption(), input_item_CopyOptions(), input_item_GetInfoLocked(), input_item_GetMeta(), input_item_GetMetaExtra(), input_item_GetName(), input_item_GetTitleFbName(), input_item_GetURI(), input_item_SetName(), input_item_SetURI(), input_item_UpdateTracksInfo(), input_resource_RequestSout(), input_SetEsCatIds(), input_SubtitleFile2Uri(), InputSourceInit(), LanguageGetCode(), LanguageGetName(), LanguageSplit(), makeaddrinfo(), Manage(), mrl_Parse(), OpenURL(), rdh_name_from_filename(), se_InitDirectory(), seekpoint_GetName(), sout_AccessOutNew(), sout_NewInstance(), sout_StreamChainNew(), spu_ChangeFilters(), spu_ChangeSources(), spu_PutSubpicture(), stream_AccessNew(), stream_FilterChainNew(), StreamExtractorAttach(), subtitles_Detect(), system_Configure(), text_segment_New(), text_segment_ruby_New(), text_style_Copy(), text_style_Merge(), TwalkGetNames(), update_Download(), var_Change(), var_Create(), var_OptionParse(), vlc_dialog_id_post_login(), vlc_dictionary_all_keys(), vlc_dictionary_insert_impl_(), vlc_dlerror(), vlc_epg_Duplicate(), vlc_epg_event_Duplicate(), vlc_getProxyUrl(), vlc_getProxyUrl(), vlc_http_msg_h2_headers(), vlc_http_msg_vadd_header(), vlc_http_req_create(), vlc_http_res_get_type(), vlc_http_res_init(), vlc_http_res_set_login(), vlc_idna_to_ascii(), vlc_input_attachment_New(), vlc_input_title_Duplicate(), vlc_loaddir(), vlc_meta_InsertExtra(), vlc_meta_Merge(), vlc_meta_SetWithPriority(), vlc_mkdir_parent(), vlc_module_store(), vlc_opendir(), vlc_param_SetString(), vlc_path2uri(), vlc_player_program_DupTitle(), vlc_player_SelectTracksByStringIds(), vlc_player_SetRecordingEnabled(), vlc_player_track_priv_New(), vlc_player_track_priv_Update(), vlc_playlist_item_meta_CopyString(), vlc_rd_probe_add(), vlc_readdir(), vlc_readdir_helper_additem(), vlc_renderer_item_new(), vlc_sd_probe_Add(), vlc_seekpoint_Duplicate(), vlc_stream_AttachmentNew(), vlc_stream_FilterNew(), vlc_strftime(), vlc_uri2path(), vlc_uri_decode_duplicate(), vlc_uri_resolve(), vlc_UrlParseInner(), vlc_vaLogEarly(), vlm_ControlMediaInstanceGets(), vlm_media_Copy(), vlm_MediaInstanceNew(), vout_ControlChangeFilters(), vout_OSDEpg(), vout_OSDText(), vout_snapshot_SaveImage(), and xstrdup().
size_t strlcpy | ( | char * | , |
const char * | , | ||
size_t | |||
) |
Referenced by AddressCreate().
char * strndup | ( | const char * | , |
size_t | |||
) |
Referenced by access_New(), AuthGetParamConcat(), AuthGetParamNoQuotesConcat(), ChainGetValue(), config_ChainCreate(), config_ChainParseOptions(), cookie_default_path(), cookie_get_attribute_value(), cookie_parse(), mrl_FragmentSplit(), rtp_raw_open(), smb_split_domain(), vlc_http_msg_add_cookies(), vlc_http_msg_headers(), vlc_sdp_media_parse(), vlc_sdp_parse(), and vlc_uri2path().
size_t strnlen | ( | const char * | , |
size_t | |||
) |
char * strnstr | ( | const char * | , |
const char * | , | ||
size_t | |||
) |
char * strsep | ( | char ** | , |
const char * | |||
) |
Referenced by aout_FiltersNewWithClock().
float strtof | ( | const char * | , |
char ** | |||
) |
Referenced by vlc_strtof_c().
char * strtok_r | ( | char * | , |
const char * | , | ||
char ** | |||
) |
long long int strtoll | ( | const char * | , |
char ** | , | ||
int | |||
) |
Referenced by config_ChainParse(), config_LoadCmdLine(), var_OptionParse(), and vlc_strtoi().
int strverscmp | ( | const char * | , |
const char * | |||
) |
Referenced by CompareVersionStrings().
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, |
void *const * | rootp, | ||
int(*)(const void *, const void *) | cmp | ||
) |
Referenced by Lookup(), module_list_cap(), vlc_key_to_action(), and vlc_plugin_get_symbol().
time_t timegm | ( | struct tm * | ) |
Referenced by vlc_http_mktime().
int timespec_get | ( | struct timespec * | , |
int | |||
) |
Referenced by vlc_ntp_time(), vlc_rand_bytes(), and vout_snapshot_SaveImage().
void * tsearch | ( | const void * | key, |
void ** | rootp, | ||
int(*)(const void *, const void *) | cmp | ||
) |
Referenced by add_mapping(), var_Create(), vlc_module_store(), and vlc_plugin_gpa_cb().
void twalk | ( | const void * | root, |
void(*)(const void *nodep, VISIT which, int depth) | action | ||
) |
Referenced by module_LoadPlugins(), and var_GetAllNames().
int unsetenv | ( | const char * | ) |
Referenced by config_LoadConfigFile(), config_SaveConfigFile(), vlc_strtod_c(), vlc_strtof_c(), vlc_vasprintf_c(), vlc_vfprintf_c(), and vlc_vsscanf_c().
int vasprintf | ( | char ** | , |
const char * | , | ||
va_list | |||
) |
ssize_t writev | ( | int | , |
const struct iovec * | , | ||
int | |||
) |
Referenced by vlc_writev().