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