From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) From: arisawa In-Reply-To: <77591e1e424eda53000894003b4dbd9d@felloff.net> Date: Sun, 14 Sep 2014 14:33:32 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: References: <77591e1e424eda53000894003b4dbd9d@felloff.net> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] segattach in telnetd Topicbox-Message-UUID: 168c23a8-ead9-11e9-9d60-3106f5b1d025 ooh that is my halt. egattach(0,"shared",0,1024); works fine! my test test1(void) { char *ap; ap =3D segattach(0,"shared",0,1024); print("%p\n",ap); // deffe000 } term% cat /proc/917256/segment Stack defff000 dffff000 1 Text R 1000 6000 1 Data 6000 7000 1 Bss 7000 7000 1 Shared deffe000 defff000 1 term% that nice. by the way, is this behavior special to 9front? Kenji Arisawa 2014/09/14 13:51=E3=80=81cinap_lenrek@felloff.net =E3=81=AE=E3=83=A1=E3=83= =BC=E3=83=AB=EF=BC=9A > it works, you just mistyped "shared" in the first call. >=20 > -- > cinap >=20