Upgrade to gcc-4.9.2
[akaros.git] / tools / compilers / gcc-glibc / glibc-2.14.1-ros / sysdeps / akaros / dl-sysdep.c
1 #include <ros/procinfo.h>
2
3 #define DL_FIND_ARG_COMPONENTS(cookie, argc, argv, envp, auxp)  \
4   do {                                                                        \
5     void **_tmp;                                                              \
6     (argc) = 0;                                                               \
7     while (__procinfo.argp[(argc)])                                           \
8       (argc)++;                                                               \
9     (argv) = (char **) __procinfo.argp;                                       \
10     (envp) = (argv) + (argc) + 1;                                             \
11     for (_tmp = (void **) (envp); *_tmp; ++_tmp)                              \
12       continue;                                                               \
13     (auxp) = (void *) ++_tmp;                                                 \
14   } while (0)
15
16 #include <elf/dl-sysdep.c>