[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Proposal: Virtualization of Filesystem Operations for Lua 5.2.
- From: Tony Finch <dot@...>
- Date: Thu, 3 Nov 2011 17:57:33 +0000
Sean Conner <firstname.lastname@example.org> wrote:
> The biggest limitation---you can't treat an arbitrary region of
> memory as a FILE *.
On BSD (including Mac OS) there is funopen() which is roughly equivalent
to glibc's fopencookie(). Both allow you to plug in your own IO functions
behind stdio's buffering.
f.anthony.n.finch <email@example.com> http://dotat.at/
Trafalgar: Southwesterly veering northwesterly 6 to gale 8, perhaps severe
gale 9 later in south. Very rough in southeast, otherwise high or very high.
Rain or squally, thundery showers. Moderate or poor.