(_nss_nisplus_parse_netent): Significant cleanups. Correct
[glibc/history.git] / elf / tst-array5dep.c
blob570d282af473a9f5198e6e640d1c332371e5909e
1 #include <string.h>
2 #include <unistd.h>
4 static void
5 init_0 (int argc __attribute__ ((unused)), char **argv)
7 char *p = strrchr (argv [0], '/');
9 if (p == NULL)
10 return;
12 p++;
13 size_t len = strlen (p);
14 write (STDOUT_FILENO, "init array in DSO: ", 19);
15 write (STDOUT_FILENO, p, len);
16 write (STDOUT_FILENO, "\n", 1);
19 void (*const init_array []) (int, char **)
20 __attribute__ ((section (".init_array"), aligned (sizeof (void *)))) =
22 &init_0,