Go to the documentation of this file.
37 const char *authorization,
const char *hostname,
38 int port,
const char *
fmt, ...)
47 if (authorization && authorization[0])
49 #if CONFIG_NETWORK && defined(AF_INET6)
54 if (ai->ai_family == AF_INET6) {
71 size_t len = strlen(str);
83 char *sep, *path_query;
85 if (
base && strstr(
base,
"://") && rel[0] ==
'/') {
88 sep = strstr(
buf,
"://");
96 sep = strchr(sep,
'/');
105 if (!
base || strstr(rel,
"://") || rel[0] ==
'/') {
113 path_query = strchr(
buf,
'?');
124 sep = strrchr(
buf,
'/');
132 sep = strrchr(
buf,
'/');
134 if (!strcmp(sep ? &sep[1] :
buf,
"..")) {
int type
Type of the entry.
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
int64_t access_timestamp
Time of last access in microseconds since unix epoch, -1 if unknown.
int64_t modification_timestamp
Time of last modification in microseconds since unix epoch, -1 if unknown.
int ff_url_join(char *str, int size, const char *proto, const char *authorization, const char *hostname, int port, const char *fmt,...)
int64_t size
File size in bytes, -1 if unknown.
int64_t group_id
Group ID of owner, -1 if unknown.
int64_t filemode
Unix file mode, -1 if unknown.
Describes single entry of the directory.
int64_t status_change_timestamp
Time of last status change in microseconds since unix epoch, -1 if unknown.
int av_strstart(const char *str, const char *pfx, const char **ptr)
Return non-zero if pfx is a prefix of str.
int64_t user_id
User ID of owner, -1 if unknown.
AVIODirEntry * ff_alloc_dir_entry(void)
Allocate directory entry with default values.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
size_t av_strlcat(char *dst, const char *src, size_t size)
Append the string src to the string dst, but to a total length of no more than size - 1 bytes,...
void ff_make_absolute_url(char *buf, int size, const char *base, const char *rel)
Convert a relative url into an absolute url, given a base url.
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.