From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14733 invoked from network); 29 Jun 2021 23:27:37 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 29 Jun 2021 23:27:37 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id BB0E22161D for ; Tue, 29 Jun 2021 19:27:34 -0400 (EDT) (envelope-from bounce.mM325536ac295e33bbad90bc0d.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id B3A8749D0CBB; Tue, 29 Jun 2021 19:27:34 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:to:message-id:mime-version:content-type :from:list-help:list-id:list-post:list-subscribe:reply-to :subject:content-transfer-encoding:list-unsubscribe; s=sysmsg-1; t=1625009254; bh=E6H0MRT/7Z0TtIGDDALdmyjJEj9XjwXsQBjbnkJOnjY=; b= Yc73S616IsO0GT/Ftnhkz6RKJOa8EkdfpJK/fagE8T5BjKPbAbG9tbHhkedXhIr5 cCEPWv5SYXxXfM+lDIALz5tyUcqNPAFT1V4E9xZIH9+iGojOs+FqqeTJKWMqv7PC 08HYk6kQp0Jq/xGcny/QWOPiXblwCMkhxCfnqdT9xTE= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1625009254; b=ngg17d8YUqLbbZ4PJwBQ3Mz12oPZAcFSU0204wO22dov+Hhcxb vLL/LjBoIoBWaesG8/mWjo6nEj8ZCZPBS/BcI18I0HtJbs32lJMQT3aumjm5EUSE gcHIvKN8dm1Z9uKOMM1mM0ECevgFnnLW/+ZPZ9huc5fxxBo22Not/AwLw= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:to :message-id:mime-version:content-type:from:list-help:list-id :list-post:list-subscribe:reply-to:subject :content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=1ZuNJY x3/57uzQ9oFjhGyJy8LjyFKrMA17wSAOHUsGI=; b=k2RyuQNfQhGbPDOhtGESiI 7JB/sMWZD98Mvg1JzyAop9m1BlqkL1EF038/kua3y/z5K9WS/rucmXbV0pTOiJMW XxPzpfnxhPo7MMPf5xmE5p3NgI4L9qM3QAk4jEeOS5xxGvfbsegj9rqprcCbcgYE yGpOD3203UY6pJE7LtL1k= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id E2A6F49D08C1 for <9fans@9fans.net>; Tue, 29 Jun 2021 19:27:24 -0400 (EDT) (envelope-from adr@sdf.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 0F8ADAB8388; Tue, 29 Jun 2021 19:27:24 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1625009244; b=UYXk6+1mmK/uklfRGwJ3GvQJUEN26yLQKVZGx9ukk+jS8sonFs XAMwJx9A5TF8i/zGEcmd5/atonjSiF/IxV/OBNu9KJBzcfmLrlGrQGAQMnUS4vLX 1wB9Fo3oGVcdv+O/7B/OZtCrAwOqbQTBzlvw2svyq9j4WZ9W84wQn/YR+HVKQMVY y6yPqUoOc5orAmEwF3rJS8X2cT+SW64sXG1I6V1mf/kBSGeGabGT1peB6rv1Yl6Y 24UFvBLAfK7Nlg2IpUJypmgt0YqRYFOFtfGtiC6EM0t/gHQdc4/cevUZ+syn+77X E2Glwncm6yN5618c4bhIbWSjSZd/1YwztQWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:mime-version :content-type; s=arcseal; t=1625009244; bh=IeOEtngagocHs/7D5UbHR lP+YNiDNg4zBBtSNbSjyhg=; b=KoKlIiNBz3wu3vF7vfZ9G/tGpXyPIs+HV8lbf Qw2rDf6mgO3/+SWFcZZ6IM4jdmYUCgSyHhJoG6iW2koTIsHhOWpa/izBTneQLgm1 YMZDKvsyA9DQ3nNADFQkfJOo9O1B2P/QLHfzKMTeLB+58J6qJ98giNKgV3SjmAii vKpl8kuzQ297fI9gkQro8bLLixrFk7MCMP8OzPbB3l6zF5nryPIps08M+y7eOYyc vDQd96ZBh4xr+VQVdg088mOrH2Zj8iMenIVyAjtCwHPuDQQKeRq2e26GHfnUcEEd 4hXSKGsTWA2+4wf+5Qa/AIiHSKwl9HnhnrMNJ4indkQssyaJw== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@sdf.org smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeitddguddvtdculddtuddrgeduhedrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecunecujfgurhepfffhvffukfggtggusehttdertddttddvnecuhfhrohhmpegrughr sehsughfrdhorhhgnecuggftrfgrthhtvghrnhepleevlefhkeduueehgeehjeegieeiue ekvdetueffgeeiveeiteelheegvdehgffgnecukfhppedvtdehrdduieeirdelgedrvdeg pddvtdehrdduieeirdelgedrudeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehinhgvthepvddthedrudeiiedrleegrddvgedphhgvlhhopehmgidrshgufhdrohhr ghdpmhgrihhlfhhrohhmpeeorggurhesshgufhdrohhrgheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@sdf.org' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="adr@sdf.org"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Tue, 29 Jun 2021 19:27:24 -0400 (EDT) (envelope-from adr@sdf.org) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 15TNRNUb008727 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Tue, 29 Jun 2021 23:27:23 GMT Received: (from adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 15TNRMsD019878 for 9fans@9fans.net; Tue, 29 Jun 2021 23:27:22 GMT Date: Tue, 29 Jun 2021 23:27:22 +0000 To: 9fans@9fans.net Message-ID: <20210629232722.zzz4guyifmox733u@sdf.org> Mail-Followup-To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 9228a408-d931-11eb-b892-b81680333712 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYTNhNmVmNGQyMjM3MzhhOS1NMzI1NTM2YWMyOTVlMzNiYmFkOTBi?= =?UTF-8?B?YzBkPg==?= From: "adr via 9fans" <9fans@9fans.net> List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Re: ape function args not checked|mixed ansi/old function declaration Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M325536ac295e33bbad90bc0d:1:7xduDJN4VAeRxdWKjoelv0PtwN5U3l1OpXRsNInhGKs Ok, the first error was that I used uintptr as in /sys/include/libc.h, not uintptr_t as in /sys/include/ape/inttypes.h, that's the reason of the ansi/old mix definition error. I saw that setrealloctag.c is implemented in 9front's /sys/src/ape/lib/9/ the same way as setmalloctag.c, an empty definition. I added it to my ape/lib/9/, the SUSV2 dance is taken from ape/lib/mp for consistency: mkfile: [...] setrealloctag.$O\ [...] libc.h: [...] #ifndef _SUSV2_SOURCE #define _SUSV2_SOURCE #include #undef _SUSV2_SOURCE #else #include #endif [...] extern void setrealloctag(void*, uintptr_t); [...] setrealloctag.c: #ifndef _SUSV2_SOURCE #define _SUSV2_SOURCE #include #undef _SUSV2_SOURCE #else #include #endif void setrealloctag(void*, uintptr_t) { } Maybe just use #include "libc.h" here? It compiles, and now after making similar changes my ape/port/sec compiles too. If someone is asking what is all of this about, is about importing 9front libsec to 9legacy. As I said before, the code is written on top of the contributions I've seen in the 9legacy patches in a very conservative way, after adding back aesCTR the impact is minimal. This was the last piece... I'll put in some place the patches I used from 9legacy and the steps to get a working base src from the 4th distribution, then my changes. I used almost all the patches listed as included in the 9legacy image so the common base is wider, even when some of them are of not use to me. The only patches I didn't use were one that didn't exist, the multiline tag acme patch (glitches) and two or three which couldn't be applied. Regards, adr. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Ta3a6ef4d223738a9-M32553= 6ac295e33bbad90bc0d Delivery options: https://9fans.topicbox.com/groups/9fans/subscription