moddummy2.c 314 B

12345678910111213
  1. /* Provide a dummy DSO for tst-rec-dlopen to use. */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. int
  5. dummy2 (void)
  6. {
  7. printf ("Called dummy2()\n");
  8. /* If the outer dlopen is not dummy1 (because of some error)
  9. then tst-rec-dlopen will see a value of -1 as the returned
  10. result and fail. */
  11. return -1;
  12. }