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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17198 invoked from network); 6 Oct 2022 10:21:38 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 6 Oct 2022 10:21:38 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id CD8F020112 for ; Thu, 6 Oct 2022 06:21:35 -0400 (EDT) (envelope-from bounce.mM69ab07438d3e53337fba4ee2.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id CB3D2420E655; Thu, 6 Oct 2022 06:21:35 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=MLkoEuS/ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=charles.forsyth@gmail.com smtp.helo=mail-ej1-f43.google.com; 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=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1665051695; bh=IeIfhIxe01HdJLsi Fwig8xAzYVu7ySQTNG8pCBx7iIE=; b=DEwXHXnMgoUuN7CxQIrb1svMYe+GYoyZ TC85HU/oOEJPfUZIeB+1HJgGqMSCrhO5mFO/N2JO6DUDQ+N8XOoXZdD77VHJP9XF geKJynCL36aGnB8m7RpbTnBA0TP570L8vGHFxt/01XQ0cvOLkP4caNHIhIb1gNT+ dendYdD/8LM= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1665051695; b=merXDqcC28FrNoEaTKoXHjbWX+OK7KNqamoPPpa+l1GXUX9WLu wykU0I0d6QfZmeF1TU2ya0PrmSSVRoZk6wdmHST+1nt/3GcXNjPTFB27L2FpO8YX 8Nn0nyS1BtRbEgrZk6NVfqzWmvUGNsIO+SqGp+cknkXvOUM16f+/YcLNc= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=MLkoEuS/ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=charles.forsyth@gmail.com smtp.helo=mail-ej1-f43.google.com; 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=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=MLkoEuS/ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.218.43 (mail-ej1-f43.google.com); spf=pass smtp.mailfrom=charles.forsyth@gmail.com smtp.helo=mail-ej1-f43.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=k6llqcRq; x-me-sender=none; x-ptr=pass smtp.helo=mail-ej1-f43.google.com policy.ptr=mail-ej1-f43.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=49 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1665051695; x=1665138095; bh=6tVXmem1BUcUYtLD2//05mV49r1E9zEu TuJdJ9Vdr1I=; b=X4O04G76ha/myaGCl3fz+O/FbB1ZPFM1a5epNEW6znJ1SX9V VR+wT8F4dtBEGaWmitQTrH5SqxqmJx4W69dkJB0oLrAzKA+J7NC53h+OxnXA1aCs ILukDrFtmAW1giMyvFC/3sU9OCSd47QweQb39HIeKiRHhxmVygOTdq+NbHE= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id D33953FD40 for <9fans@9fans.net>; Thu, 6 Oct 2022 06:21:23 -0400 (EDT) (envelope-from charles.forsyth@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id F6F67DDD258; Thu, 6 Oct 2022 06:21:23 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1665051683; b=deVuuiDsusld/H2iBZH+ZXLkr82ykO7/xEWQFAJ2SWoFp5F9tE GnwPesPAFZau5+9y3Ai3IQnJz3WqzY+SgrB8kAl7Qi8EZxlMnsXTOnTp6u1//tBv wAIquHaJE3bw4env3W578e5NaYsCcDLu+Qlgl52AuXcgRJrwxutDuQR4QXEdGRJU 6n3UeR6cTmQNl6Vj75R00fXwGMvkqh3z5sadGm0zyrLpVt1o7SjftXAZXI0nvdWz OL9W5IaRtpgA8ciVk3Sc15DpnB4nM6GA2ouWNI+Lg9DBK8Sx2Py6HvogIxp/xtkU QZQEZTVnY869+8IGuG1f+uFUVoLHYQA5c5Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1665051683; bh=3R4YdF6oNAOueIFm3fubo5mlwmkO4LJTELWPDv20fcI=; b=gs3U5YHsfXNZ 0D9uY3FqN1XEEh1+2h3okrfHMen+gTNwg05jb5lFnvnaIjd1ldhFi5/vd8gsPpWx hEXLdKelCnuKj4tuFh0XZutignxfDiVlY4anloOeugSVMfHyEe4X7R6lTH3l53Zy En5FjSz1DUEYuyMad+R7tR7RWRDTW8iF9IVwYTjecPm0n/CNrJD8HJboW4k+BsYN IOqgQLVNikeXsvUrQ/nOys40afQPF/LnBldSFtkNaf53F+HUCTYlW5RkstnlTxCG 3t8Q4PytnuW/VihPD8iOfijZXzJwSiJkvMtIHEa08dmVRDMUsIllWYTQdDtz4JxE K8F8vTzjIQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=MLkoEuS/ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.218.43 (mail-ej1-f43.google.com); spf=pass smtp.mailfrom=charles.forsyth@gmail.com smtp.helo=mail-ej1-f43.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=k6llqcRq; x-me-sender=none; x-ptr=pass smtp.helo=mail-ej1-f43.google.com policy.ptr=mail-ej1-f43.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=49 state=0 X-ME-VSSU: VW5zdWI9bWFpbHRvOnNhaWYucmVzdW5Ab3V0bG9vay5jb20 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeihedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffoh hmrghinhculdegledmnecujfgurhepgghfjgfhfffkuffvtgesrgdtreertddtjeenucfh rhhomhepvehhrghrlhgvshcuhfhorhhshihthhcuoegthhgrrhhlvghsrdhfohhrshihth hhsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpedtteetgeefveejheetfefh vdefueffveeileehffdvffehledvjeeuieejtdejjeenucffohhmrghinhepghhithhhuh gsrdhiohdpthhophhitggsohigrdgtohhmnecukfhppedvtdelrdekhedrvddukedrgeef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddtledrkeehrd dvudekrdegfedphhgvlhhopehmrghilhdqvghjuddqfhegfedrghhoohhglhgvrdgtohhm pdhmrghilhhfrhhomhepoegthhgrrhhlvghsrdhfohhrshihthhhsehgmhgrihhlrdgtoh hmqe X-ME-VSScore: 49 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'charles.forsyth@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="charles.forsyth@gmail.com"; helo=mail-ej1-f43.google.com; client-ip=209.85.218.43 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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>; Thu, 6 Oct 2022 06:21:23 -0400 (EDT) (envelope-from charles.forsyth@gmail.com) Received: by mail-ej1-f43.google.com with SMTP id k2so3547254ejr.2 for <9fans@9fans.net>; Thu, 06 Oct 2022 03:21:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3R4YdF6oNAOueIFm3fubo5mlwmkO4LJTELWPDv20fcI=; b=k6llqcRqR7+GyTV9DEyD07nh7ohCbaIvXNNe8w6dKa9hIg58HVzaJi4h2LIcZN8T7I 4U9OUIUCmvM0eoSH2nYEdrKp+n70LMzdV7uMMbPlhMEsEnBaToN0AQjRJJfKfOLuD34E G3uzzj5sjFdWzZA75Jreba8LW/dIJaPEr2eIfK8etON+hzguKcGe2f9JVtdAtfsUGL9E 7BV7gxD+TC2c1ixFk7ug9DX9yZqvE381YFu/ePKUPyby9D2qpb7P95uAZvtCl6kenp0p U7Czk4WKXUZN4mdXrV74r+5jGh7x1/VwYXYV9EqunVLVaGknt1oX6YOtsHQg/K55E4ZT PLEA== X-Gm-Message-State: ACrzQf2KrMSKLMxqJw3/OlJLXyEbiLAFXxwv9fI8Up2hN6ggvsSSIdKr vuHrSrJu6s5VBW7gksIFDvaHPADr52UVSNPCuomk0AvoSS0= X-Google-Smtp-Source: AMsMyM6sElQyzYOBE4+m12DhpBhDeKvSJ2SbZnEMBs2GD+FNIWmpmGHyTr2QGZIgJaJpXTGVf3NMvz0ECjGYtwKgXc4= X-Received: by 2002:a17:907:162a:b0:783:d11a:a553 with SMTP id hb42-20020a170907162a00b00783d11aa553mr3341825ejc.482.1665051681657; Thu, 06 Oct 2022 03:21:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Charles Forsyth Date: Thu, 6 Oct 2022 11:21:10 +0100 Message-ID: Subject: Re: [9fans] How can I compile c code written for plan9 in ANIS C compiler To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00000000000004979405ea5b0e22 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: a39bec76-4560-11ed-8b35-e15371533436 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNDIyMzc4ZmMyNTc4NzcyMC1NNjlhYjA3NDM4ZDNlNTMzMzdmYmE0?= =?UTF-8?B?ZWUyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M69ab07438d3e53337fba4ee2:1:p2EUinuRmYkUTeYR_BnVsaDzIN16c6u3YXnH3RHHvX4 --00000000000004979405ea5b0e22 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If you look at plan9port (eg, https://9fans.github.io/plan9port/), you'll see how that's done for a good chunk of the application code of Plan 9 (using host C compilers). It also includes versions of the Plan 9 libraries that will also compile on other systems. Indeed, if you install plan9port you should be able to use its mk, 9c and 9l and mkfile structure to compile your Plan 9 code directly (since that's how the Plan 9 libraries are compiled in plan9port). The main restriction is that various Plan 9 C extensions aren't available, so those need to be removed first. On Thu, 6 Oct 2022 at 01:17, _ resun wrote: > Hi there! > > > > 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 > standard c headers? > > > > Thank you. > > > > _resun > > > > *9fans * / 9fans / see discussions > + participants > + delivery options > Permalink > > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T422378fc25787720-M69ab0= 7438d3e53337fba4ee2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --00000000000004979405ea5b0e22 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If you look at plan9port (eg, https://9fans.github.io/plan9port/)= , you'll see how that's done for a good chunk of the application co= de of Plan 9 (using host C compilers).
It also includes versions of the= Plan 9 libraries that will also compile on other systems.
Indeed= , if you install plan9port you should be able to use its mk, 9c and 9l and = mkfile structure to compile your Plan 9 code directly (since that's how= the Plan 9 libraries are compiled in plan9port).
The main restri= ction is that various Plan 9 C extensions aren't available, so those ne= ed to be removed first.


On Thu, 6 Oct 2022 a= t 01:17, _ resun <saif.resun@outlook.com> wrote:

Hi there!

 

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 standard c headers?

 Thank you.

 <= p class=3D"MsoNormal">_resun

&= nbsp;

= --00000000000004979405ea5b0e22--