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 8.1 \(1993\)) From: yoann padioleau In-Reply-To: Date: Thu, 30 Apr 2015 20:21:05 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <32E4BD35-FCDC-4859-9034-82747001C411@gmail.com> References: <4A54E518-87FB-4F82-84AA-BDCBD4DB0956@gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] setitimer equivalent, and sigvtalarm equivalent Topicbox-Message-UUID: 4eb01852-ead9-11e9-9d60-3106f5b1d025 Hi, I=E2=80=99m not sure I understand your proposal. But looking more at the code I need to port, an interpreter, I think the main issue is that the interpreter relies on sigvtalarm as a way to preempt the interpreted program while allowing the user program to use only sigalarm. So more generally the problem is how can I have two alarms in plan9? I see only one alarm signal in ape, SIGALRM. There is no SIGVTALRM. > On Apr 29, 2015, at 9:47 AM, erik quanstrom = wrote: >=20 > On Tue Apr 28 21:30:24 PDT 2015, aryx.padator@gmail.com wrote: >> Hi, >>=20 >> I=E2=80=99m trying to port some code to plan9 using APE >> but I can=E2=80=99t find the setitimer function in any include/ape/ = files. >> What is the equivalent to setitimer under plan9? >=20 > if you're ok on using nsec() as your time source, select(3) as posix = would > have it, will do. >=20 > - erik >=20