1 2 3 4 5 6 7 8 9
#define _GNU_SOURCE #include <dlfcn.h> #include <fcntl.h> int open(const char *pathname, int flags); int open(const char *pathname, int flags) { }