]> git.ipfire.org Git - thirdparty/glibc.git/blame - elf/unload6mod3.c
Update copyright dates not handled by scripts/update-copyrights.
[thirdparty/glibc.git] / elf / unload6mod3.c
CommitLineData
bfc832cc
UD
1#include <dlfcn.h>
2#include <stdio.h>
3#include <unistd.h>
4
5static void *h;
6
7static void __attribute__((constructor))
8mod3init (void)
9{
10 h = dlopen ("unload6mod1.so", RTLD_LAZY);
11 if (h == NULL)
12 {
13 puts ("dlopen unload6mod1.so failed");
14 fflush (stdout);
15 _exit (1);
16 }
17}
18
19static void __attribute__((destructor))
20mod3fini (void)
21{
22 dlclose (h);
23}