(sem_timedwait): Fix a typo.
[glibc/history.git] / elf / gen-trusted-dirs.awk
blob59f10a4856b9759dd8c793043b2a53779db76d98
1 BEGIN {
2 FS = " ";
6 for (i = 1; i <= NF; ++i) {
7 s[cnt++] = $i"/";
11 END {
12 printf ("#define SYSTEM_DIRS \\\n");
14 printf (" \"%s\"", s[0]);
16 for (i = 1; i < cnt; ++i) {
17 printf (" \"\\0\" \"%s\"", s[i]);
20 printf ("\n\n");
22 printf ("#define SYSTEM_DIRS_LEN \\\n");
24 printf (" %d", length (s[0]));
25 m = length (s[0]);
27 for (i = 1; i < cnt; ++i) {
28 printf (", %d", length(s[i]));
29 if (length(s[i]) > m) {
30 m = length(s[i]);
34 printf ("\n\n");
36 printf ("#define SYSTEM_DIRS_MAX_LEN\t%d\n", m);