def glibc_version_string():<EOL>
<EOL>process_namespace = ctypes.CDLL(None)<EOL>try:<EOL><INDENT>gnu_get_libc_version = process_namespace.gnu_get_libc_version<EOL><DEDENT>except AttributeError:<EOL><INDENT>return None<EOL><DEDENT>gnu_get_libc_version.restype = ctypes.c_char_p<EOL>version_str = gnu_get_libc_version()<EOL>if not isinstance(version_str, str):<EOL><INDENT>version_str = version_str.decode("<STR_LIT:ascii>")<EOL><DEDENT>return version_str<EOL>
Returns glibc version string, or None if not using glibc.