/
githubmirror
/
glibc
Обзор
Документация
Войти
/
githubmirror
/
glibc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
dlfcn/failtestmod.c
25 строк
444 B
Joseph Myers
Fix dlfcn/failtestmod.c warning.
27 ноя 2014, 19:00
27 ноя 2014, 19:00
9114625
Код
Авторство
О чём код?
#include <dlfcn.h> #include <stdio.h> extern void constr (void) __attribute__ ((__constructor__)); void __attribute__ ((__constructor__)) constr (void) { void *handle; /* Open the library. */ handle = dlopen (NULL, RTLD_NOW); if (handle == NULL) { puts ("Cannot get handle to own object"); return; } /* Get a symbol. */ dlsym (handle, "main"); puts ("called dlsym() to get main"); dlclose (handle); }