Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Wojtek Lerch Newsgroups: comp.std.c Subject: Re: Continuations in C? Date: Sun, 14 Aug 2011 23:38:20 -0400 Lines: 9 Message-ID: <9arik1F7a9U1@mid.individual.net> References: <4e463a29$0$4151$6e1ede2f@read.cnntp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net bkzJS2Y0ccV+GBr7rqksJgoaLLYDPbBzjnT0rhbYWf+brYsxwh Cancel-Lock: sha1:cO6ZQUoNykSuz/r6QsEn2nCOmlc= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.std.c:755 On 14/08/2011 11:57 AM, BGB wrote: > interestingly, is seems what the OP wanted is partly defined here: > http://en.wikipedia.org/wiki/Setcontext Even more interestingly, even though (as Wikipedia mentions) setcontext() is specified in POSIX.1-2001, the 2004 version of POSIX marks it as obsolescent and the 2008 version does not mention it at all. Perhaps before adding it to C, it would be good to find out why POSIX decided to drop it.