mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
6a72ae2124
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64 syscall.
19 lines
285 B
C
19 lines
285 B
C
#include <dlfcn.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int
|
|
call_me (void)
|
|
{
|
|
int (*fp) (void);
|
|
|
|
fp = dlsym (RTLD_DEFAULT, "foo");
|
|
if (fp == NULL)
|
|
{
|
|
printf ("cannot get address of foo in global scope: %s\n", dlerror ());
|
|
exit (1);
|
|
}
|
|
|
|
return fp () - 42;
|
|
}
|