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.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22941 invoked from network); 6 Oct 2022 06:46:30 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 6 Oct 2022 06:46:30 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id D7D2229D2C for ; Thu, 6 Oct 2022 02:46:25 -0400 (EDT) (envelope-from bounce.mM89de0e749fb461e7ac168574.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id D8E004206AC3; Thu, 6 Oct 2022 02:46:25 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=mMLDB4Ae header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=content-type:content-transfer-encoding:from :mime-version:subject:date:message-id:references:in-reply-to:to :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1665038785; bh=lwGCoaZ8w3CbqJSH ROx7wxmRXVITE40pcoKogViGtII=; b=NzuTREjbWyPE+2UtU0Ri/S/Rpkp3CWvO fDHoQq3IumuexLeGRce6sRIiSmc2WP4rJndJ+JeH8rY8boGRHFfn+nVB5zHUDqRI 549qFHvOHKEYUX8WZvvVUKH25UOwbMp4GNlJFtW5pAGnoCWaQ/v+YAeH6b1WuHNp XgSl1tAXDNk= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1665038785; b=ErtavskeNCTr9P/Wf0ZMUdsb7nEw00uI9DaWBXTrgbq2Ip/zo8 0dg7PmgjEQPFW2yRFJIS4+ivr59jC0Ypg+MWfo36Fl+3y3ggvrmoLn6RiUpBIw/w CpO+ImUT0296knosIkSSRmI4f1rk4VTE8eFfc3TTemzUH5+VhnXXBx1is= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=mMLDB4Ae header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=mMLDB4Ae header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; iprev=pass smtp.remote-ip=46.235.224.141 (mx1.mythic-beasts.com); spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx1.mythic-beasts.com policy.ptr=mx1.mythic-beasts.com; x-return-mx=pass header.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); x-return-mx=pass smtp.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); 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= content-type:content-transfer-encoding:from:mime-version:subject :date:message-id:references:in-reply-to:to:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1665038785; x=1665125185; bh=q6n0yguN18W63JaPISZgfGp74cirNNtt 1msqXNs44sA=; b=Jw4+Fro/kN6qOSnpj+hkgdbtl0qJvYha66fMKFt9A/uwTxrW 2vDargf+GOKA5TsroEaQ4zvJGtwR1ZtyonKGdLzKxGOgKXXiNtZDholcmnqbHBkz 1XK+bnobLhZ/mhMFXUFzK9Pv7xM3Ov1OGMsZOQdIooumcIgQcGmfXMQ3Qvo= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id CABD14206690 for <9fans@9fans.net>; Thu, 6 Oct 2022 02:46:00 -0400 (EDT) (envelope-from steve@quintile.net) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id CD6FC9ECE58; Thu, 6 Oct 2022 02:46:00 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1665038760; b=eGiqSFbJWmDrBTDK41wslBQt4uk0F7ZJMs9WHCD8eNR0hWeMTa pRzSa4hy7nA4ku3nscCGsvyeyx/7Wv8Uv8a8LO/YGdxw341sbwbjntLqA1lBH5iq P4ybcmndTNpUgRlytFank97CNmxTWDqHvwVlCwHP9OMK9DixHdub9Rz8w8D1sL0X Nb6rM6eeUJtz5FhAnea5GaEL9n6awwq1l6w9BFZNOFHuPn2EfDWTKws5irIag4De 1+MRtlScC1DDxFiIW2kutjouRehAsMgeOfB8Kje44Vw7uhH7vPn7KxnX91H92jOz 5qxfu9fLoqLEe6SEiHZHyrOOb3iQfQCTmbmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=content-type:content-transfer-encoding:from :mime-version:subject:date:message-id:references:in-reply-to:to; s=arcseal; t=1665038760; bh=y+ZtVtQcjbfO+iCcZsCUOXyp050Mz0WFFAP y/IuAecc=; b=ooTKDjwBjxkbsGarw4WBlk1X+hwLEM6e6aMkeQhnpFtGDb0/oNB Y6b02gvHylxb/fDqqxTj0Z35qtsuOwhIpxh5IoqecXBoJco9f4yeBMbL0byBrB3k 3sh5xgB4rZ2gsiTQCDP2F/vku0Ab99GXxKztMiZdplGlLqPJwg9KSKwWZ0CT5NCe X/6Joa7aKDzk64ibf/69X2aWrWxDkbc2z5UDIg2PppVbgIF9WsN7CKRrdDqQIVcN 3p2CeUiyNCr+4eK3TabPM76LU9CKigWeTWsozhe7R1IDzDX7uWd/7sx4gwyLRZuA K9TaQ4zAG8oIc2L+xBpy5kJ+XYieytjMQXw== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=mMLDB4Ae header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; iprev=pass smtp.remote-ip=46.235.224.141 (mx1.mythic-beasts.com); spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx1.mythic-beasts.com policy.ptr=mx1.mythic-beasts.com; x-return-mx=pass header.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); x-return-mx=pass smtp.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); 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: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeigedguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfghf ggufffkfhfjgfvofesrgejmherhhdtvdenucfhrhhomhepufhtvghvvgcuufhimhhonhcu oehsthgvvhgvsehquhhinhhtihhlvgdrnhgvtheqnecuggftrfgrthhtvghrnhepieetvd ekhfdufeffieektdevkeeuteegvdeuheejhfefveevteevheektdefjedunecuffhomhgr ihhnpehtohhpihgtsghogidrtghomhenucfkphepgeeirddvfeehrddvvdegrddugedupd ekuddrudekjedrudelkedrudefvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepihhnvghtpeegiedrvdefhedrvddvgedrudeguddphhgvlhhopehmgidurdhmhihthh hitgdqsggvrghsthhsrdgtohhmpdhmrghilhhfrhhomhepoehsthgvvhgvsehquhhinhht ihhlvgdrnhgvtheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (quintile.net: Sender is authorized to use 'steve@quintile.net' in 'mfrom' identity (mechanism 'include:_spf.mythic-beasts.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="steve@quintile.net"; helo=mx1.mythic-beasts.com; client-ip=46.235.224.141 Received: from mx1.mythic-beasts.com (mx1.mythic-beasts.com [46.235.224.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Thu, 6 Oct 2022 02:45:59 -0400 (EDT) (envelope-from steve@quintile.net) Received: from [81.187.198.132] (port=52163 helo=smtpclient.apple) by mailhub-cam-d.mythic-beasts.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ogKdq-001HWh-BJ for 9fans@9fans.net; Thu, 06 Oct 2022 07:45:58 +0100 Content-Type: multipart/alternative; boundary=Apple-Mail-A051D061-D175-43FC-A3A9-1D872A6B5D96 Content-Transfer-Encoding: 7bit From: Steve Simon Mime-Version: 1.0 (1.0) Subject: Re: [9fans] How can I compile c code written for plan9 in ANIS C compiler Date: Thu, 6 Oct 2022 07:45:55 +0100 Message-Id: <89E6B880-F29A-44EF-AC81-2EA247DA19F9@quintile.net> References: In-Reply-To: To: 9fans <9fans@9fans.net> X-Mailer: iPhone Mail (19G82) X-BlackCat-Spam-Score: 14 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 8f9bbda0-4542-11ed-9d44-fa8def66da09 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNDIyMzc4ZmMyNTc4NzcyMC1NODlkZTBlNzQ5ZmI0NjFlN2FjMTY4?= =?UTF-8?B?NTc0Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M89de0e749fb461e7ac168574:1:u6HxkjM20h4UTdV7kyvovO84qWcWdyie4MWpR5LlwwU --Apple-Mail-A051D061-D175-43FC-A3A9-1D872A6B5D96 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable the native plan9 c environment is similar to ansi c but has some difference= s, mainly to the standard libraries. plan9 also has an ansi/posix environment which is aimed at making it easier= to port foreign code. to use ape, use the pcc command. there is a fairly complete command line enviroment which you can run ape/ps= h. this is a subshell which modifies your search path to pick up some diffe= rent commands. there is a paper in /sys/doc which describes ape more throughly. -Steve > On 6 Oct 2022, at 01:16, _ resun wrote: >=20 > =EF=BB=BF > Hi there! >=20=20 > Is there any way I can compile a C code that is written for plan9 using a= ANSI C compile? Is there any way to replace the plan9 headers with ANSI s= tandard c headers? >=20=20 > Thank you. >=20=20 > _resun >=20=20 > 9fans / 9fans / see discussions + participants + delivery options Permali= nk ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T422378fc25787720-M89de0= e749fb461e7ac168574 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --Apple-Mail-A051D061-D175-43FC-A3A9-1D872A6B5D96 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

the native plan9 c environment = is similar to ansi c but has some differences, mainly to the standard libra= ries.

plan9 also has an = ansi/posix environment which is aimed at making it easier to port foreign c= ode.

to use ape, use the= pcc command.

there is a= fairly complete command line enviroment which you can run ape/psh. this is= a subshell which modifies your search path to pick up some different comma= nds.

there is a paper in= /sys/doc which describes ape more throughly.

<= /div>
-Steve


On 6 Oct 2022, at 01:16, _ resun <s= aif.resun@outlook.com> wrote:



Hi there!

 <= p class=3D"MsoNormal">Is there any way I can compile a C code that is writt= en for plan9 using a ANSI  C compile? Is there any way to replace the = plan9 headers with ANSI standard c headers?

&nbs= p;

Thank you.

 =

_resun

 

= --Apple-Mail-A051D061-D175-43FC-A3A9-1D872A6B5D96--