ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
33 lines
425 B
C
33 lines
425 B
C
#include <dlfcn.h>
|
|
#include <stdio.h>
|
|
|
|
extern int foo1 (void);
|
|
|
|
int main()
|
|
{
|
|
void *dl;
|
|
void *sym;
|
|
int (*func) (void);
|
|
|
|
if (foo1 () != 0)
|
|
return 1;
|
|
|
|
dl = dlopen("pr21964-2b.so", RTLD_LAZY);
|
|
if (!dl)
|
|
return 2;
|
|
|
|
sym = dlsym(dl, "__start___verbose");
|
|
if (!sym)
|
|
return 3;
|
|
|
|
func = dlsym(dl, "foo2");
|
|
if (!func)
|
|
return 4;
|
|
if (func () == 0)
|
|
printf ("PASS\n");
|
|
|
|
dlclose(dl);
|
|
|
|
return 0;
|
|
}
|