8 static const char msg1[] = "main started\n";
9 static const char msg2[] = "main after dlopen\n";
10 static const char msg3[] = "main terminated\n";
14 write(STDOUT_FILENO, msg1, sizeof(msg1) - 1);
15 handle = dlopen("h_initfini3_dso.so", RTLD_NOW | RTLD_LOCAL);
18 write(STDOUT_FILENO, msg2, sizeof(msg2) - 1);
20 write(STDOUT_FILENO, msg3, sizeof(msg3) - 1);