From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cmo-0001.xspmail.jp ([202.238.198.62]) by ewsd; Wed Jul 1 01:37:31 EDT 2020 Received: from cmr-0002.xspmail.jp ([202.238.198.119]) by cmo with ESMTP id qVL2jrN3UL3UqqVR2j7WMu; Wed, 01 Jul 2020 14:37:28 +0900 Received: from titan.jitaku.localdomain ([182.164.22.198]) by cmr with ESMTPA id qVR1jhDRIZdRNqVR2jmhH5; Wed, 01 Jul 2020 14:37:28 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hera.eonet.ne.jp; s=x01; t=1593581848; i=kokamoto@hera.eonet.ne.jp; bh=aSeDFvurTHAIXEkpqqcDGHMzHXOjtVKcXE6/TdiwnTg=; h=To:Subject:Date:From; b=zRODXk1i1Sm08cFMo3I1N64IhE3SsyQBf2b+EyOL7IIO+Sdfqu778+D22MX92QDAD Z/9rPS/OtUYbf6BO4EDCaILKwSWCeplDj6pN0KPJSb03iuu/5GkhBU6fnEqcNM0jRJ ADbYqy6ctKB3TJXsaSAWSFA8MKGbaUShdR7MmlqqIl16hDJUcfktbK6DVpON3CdAgI tiPgd4KbMWK0GmO77Z4J/8foFqj/CjTKg7HFovNwlN83Lj8vakmHOnKfyI1b0H7g0c s1GXke5WFJp3WDhf/F/r86NKLaeLwBjHCElXp8VNyTN35Lqr1zSqRFZ03tSCybxe6T P0tRaH4+0omCQ== Message-ID: <01256F7E49252A911BC4AD2B3D7D6F0C@hera.eonet.ne.jp> To: 9front@9front.org Subject: x509.c for ape in libsec.a Date: Wed, 1 Jul 2020 14:37:26 +0900 From: kokamoto@hera.eonet.ne.jp MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: YAML over ACPI plugin replication I'm playing with python2.7.6 on 9front. The ape/libsec.a file for this port makes x509-ape.c instead of x509.c on the fly by the line: x509-ape.c: ../../../../libsec/port/x509.c cat ../../../../libsec/port/x509.c | \ sed 's/Tm \*tm = gmtime\(t\)/struct tm *tm0 = gmtime\(\&t\)/;s/tm->/tm0->tm_/g' | \ sed 's/static //g' > x509-ape.c Essential part is 's/static //g' to use is_seq etc ib cpython/Plan9/_ssl9.c. Is this OK? for 9front system? Kenji PS: I hve permission to port python2.7.6 to 9front from jas. Porting 2.7.6 is not so bright because it has no implementation of _ctypes() module. So, this just a play...