nodecl cfsetspeed W
nodecl clearerr_unlocked W
nodecl crypt_r W
-header ctermid unistd.h stdio.h
nodecl daemon T
nodecl dst_offset V
proto encrypt unistd.h void(char*,int) void(char[],int) void encrypt(char *, int); void encrypt(char block[64], int edflag);
nodecl getw T
nodecl getwc_unlocked W
nodecl getwchar_unlocked W
-header htonl netinet/in.h arpa/inet.h
-header htons netinet/in.h arpa/inet.h
header iswalnum wchar.h wctype.h
header iswalpha wchar.h wctype.h
header iswblank wchar.h wctype.h
header iswcntrl wchar.h wctype.h
header iswctype wchar.h wctype.h
header iswdigit wchar.h wctype.h
-header iswdigit wchar.h wctype.h
header iswgraph wchar.h wctype.h
header iswlower wchar.h wctype.h
header iswprint wchar.h wctype.h
header iswspace wchar.h wctype.h
header iswupper wchar.h wctype.h
header iswxdigit wchar.h wctype.h
-header ntohl netinet/in.h arpa/inet.h
-header ntohs netinet/in.h arpa/inet.h
header optarg getopt.h unistd.h
header opterr getopt.h unistd.h
header optind getopt.h unistd.h
header strncasecmp string.h strings.h
header towlower wchar.h wctype.h
header towupper wchar.h wctype.h
-header va_arg bits/stdarg.h stdarg.h
-header va_copy bits/stdarg.h stdarg.h
-header va_end bits/stdarg.h stdarg.h
-header va_start bits/stdarg.h stdarg.h
header wcrtomb wchar.h stdio.h
header wctype wchar.h wctype.h
}' >data/musl.all
awk -F'\t' '
+herr && lastid != $1 {
+ print herr
+ herr = ""
+}
$2 == "obj" || $2 == "obj posix" {
# not declared
if ($1 !~ /^_/)
head[$1] = $4
}
}
-$2 ~ /inc posix/ && $4 != $8 {
+$2 ~ /inc posix/ && $4 == $8 {
+ head[$1] = $4
+}
+$2 ~ /inc posix/ && head[$1] != $8 && $4 !~ /^bits\// {
# different header
n = split($8, a, " ")
for (i = 1; i <= n; i++)
if ($4 == a[i])
break
if (i > n)
- print "header\t" $1 "\t" $4 "\t" $8
+ # delay error msg
+ herr = "header\t" $1 "\t" $4 "\t" $8
}
$2 ~ /inc posix/ && $7 != $10 && $5 == "p" {
# different prototype
print "proto\t" $1 "\t" $4 "\t" $7 "\t" $10 "\t" $6 "\t" $9
}
+{
+ lastid = $1
+}
+END{
+ if(herr)
+ print herr
+}
' data/musl.all >data/musl.problems