From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <95f2d7dfe04392a1c50b5e3e42282ebb@9netics.com> To: 9fans@9fans.net Date: Sat, 5 Dec 2009 09:47:34 -0800 From: Skip Tavakkolian <9nut@9netics.com> In-Reply-To: <20091205142234.GC5649@nipl.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] ideas for helpful system io functions Topicbox-Message-UUID: a8a2c1ec-ead5-11e9-9d60-3106f5b1d025 > I would like to pass the extra buffered data to the guy I am execing then let > him read the rest directly from the socket, but I see no existing way to do > that. httpd passes the headers and any left over buffer it has already read to /magic apps through a command line param. there's a function for parsing and placing the "unread" stuff in the input buffer that's tied to the fd. /sys/src/libhttpd/hio.c:233: hunload(Hio *h)