aboutsummaryrefslogtreecommitdiff
path: root/libc/tools/check-symbols-glibc.py
diff options
context:
space:
mode:
Diffstat (limited to 'libc/tools/check-symbols-glibc.py')
-rwxr-xr-xlibc/tools/check-symbols-glibc.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/libc/tools/check-symbols-glibc.py b/libc/tools/check-symbols-glibc.py
index 613aa88ee..4de018101 100755
--- a/libc/tools/check-symbols-glibc.py
+++ b/libc/tools/check-symbols-glibc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python2
#
# Copyright (C) 2015 The Android Open Source Project
#
@@ -182,9 +182,9 @@ known = set([
'_ctype_',
'__libc_init',
])
-# POSIX has some stuff that's unusable in the modern world (a64l) or not
-# actually implemented in glibc unless you count always failing with ENOSYS
-# as being implemented (fattach). Other stuff (fmtmsg) isn't used in any
+# POSIX has some stuff that's too stupid for words (a64l) or not actually
+# implemented in glibc unless you count always failing with ENOSYS as
+# being implemented (fattach). Other stuff (fmtmsg) isn't used in any
# codebase I have access to, internal or external.
in_posix_and_glibc_but_dead_or_useless = set([
'a64l', # obsolete
@@ -231,33 +231,33 @@ posix = posix - in_posix_and_glibc_but_dead_or_useless
glibc = glibc - in_posix_and_glibc_but_dead_or_useless
if not only_unwanted:
- #print('glibc:')
+ #print 'glibc:'
#for symbol in sorted(glibc):
- # print(symbol)
- #print()
+ # print symbol
+ #print
- #print('bionic:')
+ #print 'bionic:'
#for symbol in sorted(bionic):
- # print(symbol)
- #print()
+ # print symbol
+ #print
- print('in glibc (but not posix) but not bionic:')
+ print 'in glibc (but not posix) but not bionic:'
for symbol in sorted((glibc - posix).difference(bionic)):
- print(symbol)
- print()
+ print symbol
+ print
- print('in posix (and implemented in glibc) but not bionic:')
+ print 'in posix (and implemented in glibc) but not bionic:'
for symbol in sorted((posix.intersection(glibc)).difference(bionic)):
- print(symbol)
- print()
+ print symbol
+ print
- print('in bionic but not glibc:')
+ print 'in bionic but not glibc:'
allowed_stuff = (bsd_stuff | FORTIFY_stuff | linux_stuff | macro_stuff |
std_stuff | weird_stuff | libresolv_stuff | known)
for symbol in sorted((bionic - allowed_stuff).difference(glibc)):
if symbol in ndk_ignored:
symbol += '*'
- print(symbol)
+ print symbol
sys.exit(0)