def toPosixArchName(name):
    """
    Get 'standard' POSIX names for machine architecture type.
    It means that for 'amd64' it returns 'x86_64', etc.
    """

    name = name.lower()
    namesMap = {
        'x86_64' : 'x86_64',
        'amd64'  : 'x86_64',
        'i386'   : 'i386',
        'x86'    : 'i386',
    }

    return namesMap.get(name, name)