VLC  3.0.15
vlc_fixups.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_fixups.h: portability fixups included from config.h
3  *****************************************************************************
4  * Copyright © 1998-2008 the VideoLAN project
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19  *****************************************************************************/
20 
21 /**
22  * \file
23  * This file is a collection of portability fixes
24  */
25 
26 #ifndef LIBVLC_FIXUPS_H
27 # define LIBVLC_FIXUPS_H 1
28 
29 /* needed to detect uClibc */
30 #ifdef HAVE_FEATURES_H
31 #include <features.h>
32 #endif
33 
34 /* C++11 says there's no need to define __STDC_*_MACROS when including
35  * inttypes.h and stdint.h. */
36 #if defined (__cplusplus) && (defined(__MINGW32__) || defined(__UCLIBC__) || defined(__native_client__))
37 # ifndef __STDC_FORMAT_MACROS
38 # define __STDC_FORMAT_MACROS 1
39 # endif
40 # ifndef __STDC_CONSTANT_MACROS
41 # define __STDC_CONSTANT_MACROS 1
42 # endif
43 # ifndef __STDC_LIMIT_MACROS
44 # define __STDC_LIMIT_MACROS 1
45 # endif
46 #endif
47 
48 #ifndef __cplusplus
49 # ifdef HAVE_THREADS_H
50 # include <threads.h>
51 # elif !defined(thread_local)
52 # ifdef HAVE_THREAD_LOCAL
53 # define thread_local _Thread_local
54 # elif defined(_MSC_VER)
55 # define thread_local __declspec(thread)
56 # endif
57 # endif
58 #endif
59 
60 #if !defined (HAVE_GMTIME_R) || !defined (HAVE_LOCALTIME_R) \
61  || !defined (HAVE_TIMEGM)
62 # include <time.h> /* time_t */
63 #endif
64 
65 #ifndef HAVE_GETTIMEOFDAY
66 #ifdef _WIN32
67 #include <winsock2.h>
68 #else
69 #include <sys/time.h>
70 #endif
71 #endif
72 
73 #ifndef HAVE_LLDIV
74 typedef struct
75 {
76  long long quot; /* Quotient. */
77  long long rem; /* Remainder. */
78 } lldiv_t;
79 #endif
80 
81 #if !defined(HAVE_GETENV) || \
82  !defined(HAVE_USELOCALE)
83 # include <stddef.h> /* NULL */
84 #endif
85 
86 #if !defined (HAVE_REWIND) || \
87  !defined (HAVE_GETDELIM)
88 # include <stdio.h> /* FILE */
89 #endif
90 
91 #if !defined (HAVE_ALIGNED_ALLOC) || \
92  !defined (HAVE_MEMRCHR) || \
93  !defined (HAVE_STRLCPY) || \
94  !defined (HAVE_STRNDUP) || \
95  !defined (HAVE_STRNLEN) || \
96  !defined (HAVE_STRNSTR)
97 # include <stddef.h> /* size_t */
98 #endif
99 
100 #ifndef HAVE_VASPRINTF
101 # include <stdarg.h> /* va_list */
102 #endif
103 
104 #if !defined (HAVE_GETDELIM) || \
105  !defined (HAVE_GETPID) || \
106  !defined (HAVE_SWAB)
107 # include <sys/types.h> /* ssize_t, pid_t */
108 #endif
109 
110 #if !defined (HAVE_DIRFD) || \
111  !defined (HAVE_FDOPENDIR)
112 # include <dirent.h>
113 #endif
114 
115 #ifdef __cplusplus
116 # define VLC_NOTHROW throw ()
117 extern "C" {
118 #else
119 # define VLC_NOTHROW
120 #endif
121 
122 /* signal.h */
123 #if !defined(HAVE_SIGWAIT) && defined(__native_client__)
124 /* NaCl does not define sigwait in signal.h. We need to include it here to
125  * define sigwait, because sigset_t is allowed to be either an integral or a
126  * struct. */
127 #include <signal.h>
128 int sigwait(const sigset_t *set, int *sig);
129 #endif
130 
131 /* stddef.h */
132 #if !defined (__cplusplus) && !defined (HAVE_MAX_ALIGN_T)
133 typedef struct {
134  long long ll;
135  long double ld;
136 } max_align_t;
137 #endif
138 
139 /* stdio.h */
140 #ifndef HAVE_ASPRINTF
141 int asprintf (char **, const char *, ...);
142 #endif
143 
144 #ifndef HAVE_FLOCKFILE
145 void flockfile (FILE *);
146 void funlockfile (FILE *);
147 int getc_unlocked (FILE *);
148 int getchar_unlocked (void);
149 int putc_unlocked (int, FILE *);
150 int putchar_unlocked (int);
151 #endif
152 
153 #ifndef HAVE_GETDELIM
154 ssize_t getdelim (char **, size_t *, int, FILE *);
155 ssize_t getline (char **, size_t *, FILE *);
156 #endif
157 
158 #ifndef HAVE_REWIND
159 void rewind (FILE *);
160 #endif
161 
162 #ifndef HAVE_VASPRINTF
163 int vasprintf (char **, const char *, va_list);
164 #endif
165 
166 /* string.h */
167 #ifndef HAVE_FFSLL
168 int ffsll(long long);
169 #endif
170 
171 #ifndef HAVE_MEMRCHR
172 void *memrchr(const void *, int, size_t);
173 #endif
174 
175 #ifndef HAVE_STRCASECMP
176 int strcasecmp (const char *, const char *);
177 #endif
178 
179 #ifndef HAVE_STRCASESTR
180 char *strcasestr (const char *, const char *);
181 #endif
182 
183 #ifndef HAVE_STRDUP
184 char *strdup (const char *);
185 #endif
186 
187 #ifndef HAVE_STRVERSCMP
188 int strverscmp (const char *, const char *);
189 #endif
190 
191 #ifndef HAVE_STRNLEN
192 size_t strnlen (const char *, size_t);
193 #endif
194 
195 #ifndef HAVE_STRNSTR
196 char * strnstr (const char *, const char *, size_t);
197 #endif
198 
199 #ifndef HAVE_STRNDUP
200 char *strndup (const char *, size_t);
201 #endif
202 
203 #ifndef HAVE_STRLCPY
204 size_t strlcpy (char *, const char *, size_t);
205 #endif
206 
207 #ifndef HAVE_STRSEP
208 char *strsep (char **, const char *);
209 #endif
210 
211 #ifndef HAVE_STRTOK_R
212 char *strtok_r(char *, const char *, char **);
213 #endif
214 
215 /* stdlib.h */
216 #ifndef HAVE_ATOF
217 #ifndef __ANDROID__
218 double atof (const char *);
219 #endif
220 #endif
221 
222 #ifndef HAVE_ATOLL
223 long long atoll (const char *);
224 #endif
225 
226 #ifndef HAVE_LLDIV
227 lldiv_t lldiv (long long, long long);
228 #endif
229 
230 #ifndef HAVE_STRTOF
231 #ifndef __ANDROID__
232 float strtof (const char *, char **);
233 #endif
234 #endif
235 
236 #ifndef HAVE_STRTOLL
237 long long int strtoll (const char *, char **, int);
238 #endif
239 
240 /* time.h */
241 #ifndef HAVE_GMTIME_R
242 struct tm *gmtime_r (const time_t *, struct tm *);
243 #endif
244 
245 #ifndef HAVE_LOCALTIME_R
246 struct tm *localtime_r (const time_t *, struct tm *);
247 #endif
248 
249 #ifndef HAVE_TIMEGM
250 time_t timegm(struct tm *);
251 #endif
252 
253 #ifndef HAVE_TIMESPEC_GET
254 #define TIME_UTC 1
255 struct timespec;
256 int timespec_get(struct timespec *, int);
257 #endif
258 
259 /* sys/time.h */
260 #ifndef HAVE_GETTIMEOFDAY
261 struct timezone;
262 int gettimeofday(struct timeval *, struct timezone *);
263 #endif
264 
265 /* unistd.h */
266 #ifndef HAVE_GETPID
267 pid_t getpid (void) VLC_NOTHROW;
268 #endif
269 
270 #ifndef HAVE_FSYNC
271 int fsync (int fd);
272 #endif
273 
274 #ifndef HAVE_PATHCONF
275 long pathconf (const char *path, int name);
276 #endif
277 
278 /* dirent.h */
279 #ifndef HAVE_DIRFD
280 int (dirfd) (DIR *);
281 #endif
282 
283 #ifndef HAVE_FDOPENDIR
284 DIR *fdopendir (int);
285 #endif
286 
287 #ifdef __cplusplus
288 } /* extern "C" */
289 #endif
290 
291 /* stdlib.h */
292 #ifndef HAVE_GETENV
293 static inline char *getenv (const char *name)
294 {
295  (void)name;
296  return NULL;
297 }
298 #endif
299 
300 #ifdef __cplusplus
301 extern "C" {
302 #endif
303 
304 #ifndef HAVE_SETENV
305 int setenv (const char *, const char *, int);
306 int unsetenv (const char *);
307 #endif
308 
309 #ifndef HAVE_ALIGNED_ALLOC
310 void *aligned_alloc(size_t, size_t);
311 #endif
312 
313 #ifdef __cplusplus
314 } /* extern "C" */
315 #endif
316 
317 #if defined (_WIN32) && defined(__MINGW32__)
318 #define aligned_free(ptr) __mingw_aligned_free(ptr)
319 #elif defined (_WIN32) && defined(_MSC_VER)
320 #define aligned_free(ptr) _aligned_free(ptr)
321 #else
322 #define aligned_free(ptr) free(ptr)
323 #endif
324 
325 #if defined(__native_client__) && defined(__cplusplus)
326 # define HAVE_USELOCALE
327 #endif
328 
329 #if !defined(HAVE_NEWLOCALE) && defined(HAVE_CXX_LOCALE_T) && defined(__cplusplus)
330 # include <locale>
331 # define HAVE_NEWLOCALE
332 #endif
333 
334 /* locale.h */
335 #ifndef HAVE_USELOCALE
336 # ifndef HAVE_NEWLOCALE
337 # define LC_ALL_MASK 0
338 # define LC_NUMERIC_MASK 0
339 # define LC_MESSAGES_MASK 0
340 # define LC_GLOBAL_LOCALE ((locale_t)(uintptr_t)1)
341 typedef void *locale_t;
342 
343 static inline void freelocale(locale_t loc)
344 {
345  (void)loc;
346 }
347 static inline locale_t newlocale(int mask, const char * locale, locale_t base)
348 {
349  (void)mask; (void)locale; (void)base;
350  return NULL;
351 }
352 # else
353 # include <locale.h>
354 # endif
355 
356 static inline locale_t uselocale(locale_t loc)
357 {
358  (void)loc;
359  return NULL;
360 }
361 #endif
362 
363 #if !defined (HAVE_STATIC_ASSERT) && !defined(__cpp_static_assert)
364 # define STATIC_ASSERT_CONCAT_(a, b) a##b
365 # define STATIC_ASSERT_CONCAT(a, b) STATIC_ASSERT_CONCAT_(a, b)
366 # define _Static_assert(x, s) extern char STATIC_ASSERT_CONCAT(static_assert_, __LINE__)[sizeof(struct { unsigned:-!(x); })]
367 # define static_assert _Static_assert
368 #endif
369 
370 /* libintl support */
371 #define _(str) vlc_gettext (str)
372 #define N_(str) gettext_noop (str)
373 #define gettext_noop(str) (str)
374 
375 #ifdef __cplusplus
376 extern "C" {
377 #endif
378 
379 #ifndef HAVE_SWAB
380 void swab (const void *, void *, ssize_t);
381 #endif
382 
383 /* Socket stuff */
384 #ifndef HAVE_INET_PTON
385 # ifndef _WIN32
386 # include <sys/socket.h>
387 #else
388 typedef int socklen_t;
389 # endif
390 int inet_pton(int, const char *, void *);
391 const char *inet_ntop(int, const void *, char *, socklen_t);
392 #endif
393 
394 /* NaCl has a broken netinet/tcp.h, so TCP_NODELAY is not set */
395 #if defined(__native_client__) && !defined( HAVE_NETINET_TCP_H )
396 # define TCP_NODELAY 1
397 #endif
398 
399 #ifndef HAVE_STRUCT_POLLFD
400 enum
401 {
402  POLLERR=0x1,
403  POLLHUP=0x2,
404  POLLNVAL=0x4,
407  POLLRDNORM=0x100,
408  POLLRDBAND=0x200,
409  POLLPRI=0x400,
410 };
411 #define POLLIN (POLLRDNORM|POLLRDBAND)
412 #define POLLOUT (POLLWRNORM|POLLWRBAND)
413 
414 struct pollfd
415 {
416  int fd;
417  short events;
418  short revents;
419 };
420 #endif
421 #ifndef HAVE_POLL
422 struct pollfd;
423 int poll (struct pollfd *, unsigned, int);
424 #endif
425 
426 #ifndef HAVE_IF_NAMEINDEX
427 #include <errno.h>
428 # ifndef HAVE_STRUCT_IF_NAMEINDEX
430 {
431  unsigned if_index;
432  char *if_name;
433 };
434 # endif
435 # ifndef HAVE_IF_NAMETOINDEX
436 # define if_nametoindex(name) atoi(name)
437 # endif
438 # define if_nameindex() (errno = ENOBUFS, NULL)
439 # define if_freenameindex(list) (void)0
440 #endif
441 
442 #ifndef HAVE_STRUCT_TIMESPEC
443 struct timespec {
444  time_t tv_sec; /* Seconds */
445  long tv_nsec; /* Nanoseconds */
446 };
447 #endif
448 
449 #ifdef _WIN32
450 struct iovec
451 {
452  void *iov_base;
453  size_t iov_len;
454 };
455 #define IOV_MAX 255
456 struct msghdr
457 {
458  void *msg_name;
459  size_t msg_namelen;
460  struct iovec *msg_iov;
461  size_t msg_iovlen;
462  void *msg_control;
463  size_t msg_controllen;
464  int msg_flags;
465 };
466 #endif
467 
468 #ifdef _NEWLIB_VERSION
469 #define IOV_MAX 255
470 #endif
471 
472 #ifndef HAVE_RECVMSG
473 struct msghdr;
474 ssize_t recvmsg(int, struct msghdr *, int);
475 #endif
476 
477 #ifndef HAVE_SENDMSG
478 struct msghdr;
479 ssize_t sendmsg(int, const struct msghdr *, int);
480 #endif
481 
482 /* search.h */
483 #ifndef HAVE_SEARCH_H
484 typedef struct entry {
485  char *key;
486  void *data;
487 } ENTRY;
488 
489 typedef enum {
491 } ACTION;
492 
493 typedef enum {
498 } VISIT;
499 
500 void *tsearch( const void *key, void **rootp, int(*cmp)(const void *, const void *) );
501 void *tfind( const void *key, const void **rootp, int(*cmp)(const void *, const void *) );
502 void *tdelete( const void *key, void **rootp, int(*cmp)(const void *, const void *) );
503 void twalk( const void *root, void(*action)(const void *nodep, VISIT which, int depth) );
504 void *lfind( const void *key, const void *base, size_t *nmemb,
505  size_t size, int(*cmp)(const void *, const void *) );
506 #endif /* HAVE_SEARCH_H */
507 #ifndef HAVE_TDESTROY
508 void tdestroy( void *root, void (*free_node)(void *nodep) );
509 #endif
510 
511 /* Random numbers */
512 #ifndef HAVE_NRAND48
513 double erand48 (unsigned short subi[3]);
514 long jrand48 (unsigned short subi[3]);
515 long nrand48 (unsigned short subi[3]);
516 #endif
517 
518 #ifdef __OS2__
519 # undef HAVE_FORK /* Implementation of fork() is imperfect on OS/2 */
520 
521 # define SHUT_RD 0
522 # define SHUT_WR 1
523 # define SHUT_RDWR 2
524 
525 /* GAI error codes */
526 # ifndef EAI_BADFLAGS
527 # define EAI_BADFLAGS -1
528 # endif
529 # ifndef EAI_NONAME
530 # define EAI_NONAME -2
531 # endif
532 # ifndef EAI_AGAIN
533 # define EAI_AGAIN -3
534 # endif
535 # ifndef EAI_FAIL
536 # define EAI_FAIL -4
537 # endif
538 # ifndef EAI_NODATA
539 # define EAI_NODATA -5
540 # endif
541 # ifndef EAI_FAMILY
542 # define EAI_FAMILY -6
543 # endif
544 # ifndef EAI_SOCKTYPE
545 # define EAI_SOCKTYPE -7
546 # endif
547 # ifndef EAI_SERVICE
548 # define EAI_SERVICE -8
549 # endif
550 # ifndef EAI_ADDRFAMILY
551 # define EAI_ADDRFAMILY -9
552 # endif
553 # ifndef EAI_MEMORY
554 # define EAI_MEMORY -10
555 # endif
556 # ifndef EAI_OVERFLOW
557 # define EAI_OVERFLOW -11
558 # endif
559 # ifndef EAI_SYSTEM
560 # define EAI_SYSTEM -12
561 # endif
562 
563 # ifndef NI_NUMERICHOST
564 # define NI_NUMERICHOST 0x01
565 # define NI_NUMERICSERV 0x02
566 # define NI_NOFQDN 0x04
567 # define NI_NAMEREQD 0x08
568 # define NI_DGRAM 0x10
569 # endif
570 
571 # ifndef NI_MAXHOST
572 # define NI_MAXHOST 1025
573 # define NI_MAXSERV 32
574 # endif
575 
576 # define AI_PASSIVE 1
577 # define AI_CANONNAME 2
578 # define AI_NUMERICHOST 4
579 
580 struct addrinfo
581 {
582  int ai_flags;
583  int ai_family;
584  int ai_socktype;
585  int ai_protocol;
586  size_t ai_addrlen;
587  struct sockaddr *ai_addr;
588  char *ai_canonname;
589  struct addrinfo *ai_next;
590 };
591 
592 const char *gai_strerror (int);
593 
594 int getaddrinfo (const char *node, const char *service,
595  const struct addrinfo *hints, struct addrinfo **res);
596 void freeaddrinfo (struct addrinfo *res);
597 int getnameinfo (const struct sockaddr *sa, socklen_t salen,
598  char *host, int hostlen, char *serv, int servlen,
599  int flags);
600 
601 /* OS/2 does not support IPv6, yet. But declare these only for compilation */
602 # include <stdint.h>
603 
604 struct in6_addr
605 {
606  uint8_t s6_addr[16];
607 };
608 
609 struct sockaddr_in6
610 {
611  uint8_t sin6_len;
612  uint8_t sin6_family;
613  uint16_t sin6_port;
614  uint32_t sin6_flowinfo;
615  struct in6_addr sin6_addr;
616  uint32_t sin6_scope_id;
617 };
618 
619 # define IN6_IS_ADDR_MULTICAST(a) (((__const uint8_t *) (a))[0] == 0xff)
620 
621 static const struct in6_addr in6addr_any =
622  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
623 
624 # include <errno.h>
625 # ifndef EPROTO
626 # define EPROTO (ELAST + 1)
627 # endif
628 
629 # ifndef HAVE_IF_NAMETOINDEX
630 # define if_nametoindex(name) atoi(name)
631 # endif
632 #endif
633 
634 /* math.h */
635 
636 #ifndef HAVE_NANF
637 #define nanf(tagp) NAN
638 #endif
639 
640 #ifndef HAVE_SINCOS
641 void sincos(double, double *, double *);
642 void sincosf(float, float *, float *);
643 #endif
644 
645 #ifndef HAVE_REALPATH
646 char *realpath(const char * restrict pathname, char * restrict resolved_path);
647 #endif
648 
649 #ifdef _WIN32
650 FILE *vlc_win32_tmpfile(void);
651 #endif
652 
653 /* mingw-w64 has a broken IN6_IS_ADDR_MULTICAST macro */
654 #if defined(_WIN32) && defined(__MINGW64_VERSION_MAJOR)
655 # define IN6_IS_ADDR_MULTICAST IN6_IS_ADDR_MULTICAST
656 #endif
657 
658 #ifdef __APPLE__
659 # define fdatasync fsync
660 #endif
661 
662 #ifdef __cplusplus
663 } /* extern "C" */
664 #endif
665 
666 #endif /* !LIBVLC_FIXUPS_H */
getchar_unlocked
int getchar_unlocked(void)
FIND
Definition: vlc_fixups.h:490
atof
double atof(const char *)
realpath
char * realpath(const char *restrict pathname, char *restrict resolved_path)
leaf
Definition: vlc_fixups.h:497
putc_unlocked
int putc_unlocked(int, FILE *)
getdelim
ssize_t getdelim(char **, size_t *, int, FILE *)
strcasecmp
int strcasecmp(const char *, const char *)
POLLWRNORM
Definition: vlc_fixups.h:405
vlc_common.h
sincosf
void sincosf(float, float *, float *)
lldiv_t::rem
long long rem
Definition: vlc_fixups.h:77
tdelete
void * tdelete(const void *key, void **rootp, int(*cmp)(const void *, const void *))
strnlen
size_t strnlen(const char *, size_t)
funlockfile
void funlockfile(FILE *)
pollfd::fd
int fd
Definition: vlc_fixups.h:416
uselocale
static locale_t uselocale(locale_t loc)
Definition: vlc_fixups.h:356
gmtime_r
struct tm * gmtime_r(const time_t *, struct tm *)
inet_pton
int inet_pton(int, const char *, void *)
aligned_alloc
void * aligned_alloc(size_t, size_t)
nrand48
long nrand48(unsigned short subi[3])
locale_t
void * locale_t
Definition: vlc_fixups.h:341
strtof
float strtof(const char *, char **)
pollfd
Definition: vlc_fixups.h:414
max_align_t::ld
long double ld
Definition: vlc_fixups.h:135
if_nameindex::if_index
unsigned if_index
Definition: vlc_fixups.h:431
flockfile
void flockfile(FILE *)
POLLWRBAND
Definition: vlc_fixups.h:406
subi
unsigned short subi[3]
Definition: rand.c:50
ffsll
int ffsll(long long)
pathconf
long pathconf(const char *path, int name)
poll
int poll(struct pollfd *, unsigned, int)
postorder
Definition: vlc_fixups.h:495
unsetenv
int unsetenv(const char *)
sincos
void sincos(double, double *, double *)
lldiv_t
Definition: vlc_fixups.h:74
strverscmp
int strverscmp(const char *, const char *)
getenv
static char * getenv(const char *name)
Definition: vlc_fixups.h:293
freelocale
static void freelocale(locale_t loc)
Definition: vlc_fixups.h:343
entry::key
char * key
Definition: vlc_fixups.h:485
asprintf
int asprintf(char **, const char *,...)
entry::data
void * data
Definition: vlc_fixups.h:486
pollfd::revents
short revents
Definition: vlc_fixups.h:418
fdopendir
DIR * fdopendir(int)
strndup
char * strndup(const char *, size_t)
jrand48
long jrand48(unsigned short subi[3])
timespec::tv_nsec
long tv_nsec
Definition: vlc_fixups.h:445
lldiv
lldiv_t lldiv(long long, long long)
preorder
Definition: vlc_fixups.h:494
dirfd
int() dirfd(DIR *)
strnstr
char * strnstr(const char *, const char *, size_t)
swab
void swab(const void *, void *, ssize_t)
getaddrinfo
int getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
Definition: getaddrinfo.c:184
lldiv_t::quot
long long quot
Definition: vlc_fixups.h:76
timespec::tv_sec
time_t tv_sec
Definition: vlc_fixups.h:444
strcasestr
char * strcasestr(const char *, const char *)
POLLPRI
Definition: vlc_fixups.h:409
POLLRDBAND
Definition: vlc_fixups.h:408
timespec_get
int timespec_get(struct timespec *, int)
newlocale
static locale_t newlocale(int mask, const char *locale, locale_t base)
Definition: vlc_fixups.h:347
memrchr
void * memrchr(const void *, int, size_t)
if_nameindex
Definition: vlc_fixups.h:429
getpid
pid_t getpid(void)
pollfd::events
short events
Definition: vlc_fixups.h:417
recvmsg
ssize_t recvmsg(int, struct msghdr *, int)
vlc_win32_tmpfile
FILE * vlc_win32_tmpfile(void)
Definition: filesystem.c:359
strtok_r
char * strtok_r(char *, const char *, char **)
VLC_NOTHROW
#define VLC_NOTHROW
Definition: vlc_fixups.h:119
POLLRDNORM
Definition: vlc_fixups.h:407
max_align_t
Definition: vlc_fixups.h:133
strlcpy
size_t strlcpy(char *, const char *, size_t)
VISIT
VISIT
Definition: vlc_fixups.h:493
lfind
void * lfind(const void *key, const void *base, size_t *nmemb, size_t size, int(*cmp)(const void *, const void *))
endorder
Definition: vlc_fixups.h:496
sendmsg
ssize_t sendmsg(int, const struct msghdr *, int)
ACTION
ACTION
Definition: vlc_fixups.h:489
tdestroy
void tdestroy(void *root, void(*free_node)(void *nodep))
tfind
void * tfind(const void *key, const void **rootp, int(*cmp)(const void *, const void *))
strdup
char * strdup(const char *)
POLLNVAL
Definition: vlc_fixups.h:404
ENTRY
struct entry ENTRY
getnameinfo
int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, int hostlen, char *serv, int servlen, int flags)
Definition: getaddrinfo.c:46
ENTER
Definition: vlc_fixups.h:490
name
const char name[16]
Definition: httpd.c:1249
entry
Definition: fourcc_gen.c:50
POLLHUP
Definition: vlc_fixups.h:403
gettimeofday
int gettimeofday(struct timeval *, struct timezone *)
strtoll
long long int strtoll(const char *, char **, int)
rewind
void rewind(FILE *)
getc_unlocked
int getc_unlocked(FILE *)
localtime_r
struct tm * localtime_r(const time_t *, struct tm *)
timegm
time_t timegm(struct tm *)
POLLERR
Definition: vlc_fixups.h:402
tsearch
void * tsearch(const void *key, void **rootp, int(*cmp)(const void *, const void *))
timespec
Definition: vlc_fixups.h:443
strsep
char * strsep(char **, const char *)
twalk
void twalk(const void *root, void(*action)(const void *nodep, VISIT which, int depth))
atoll
long long atoll(const char *)
inet_ntop
const char * inet_ntop(int, const void *, char *, socklen_t)
vasprintf
int vasprintf(char **, const char *, va_list)
erand48
double erand48(unsigned short subi[3])
setenv
int setenv(const char *, const char *, int)
fsync
int fsync(int fd)
putchar_unlocked
int putchar_unlocked(int)
max_align_t::ll
long long ll
Definition: vlc_fixups.h:134
if_nameindex::if_name
char * if_name
Definition: vlc_fixups.h:432
getline
ssize_t getline(char **, size_t *, FILE *)