13 f
= (pid_t (*)(void)) dlsym (RTLD_NEXT
, "getpid");
15 error (EXIT_FAILURE
, 0, "dlsym (RTLD_NEXT, \"getpid\"): %s", dlerror ());
16 return (pid2
= f()) + 26;
26 f
= (pid_t (*)(void)) dlsym (RTLD_DEFAULT
, "getpid");
28 error (EXIT_FAILURE
, 0, "dlsym (RTLD_DEFAULT, \"getpid\"): %s", dlerror ());
31 error (EXIT_FAILURE
, 0, "main getpid() not called");