[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: fd number to io object?
- From: M Joonas Pihlaja <jpihlaja@...>
- Date: Sun, 18 Oct 2009 00:55:21 +0300 (EEST)
On Sat, 17 Oct 2009, duck wrote:
> Forgive my ignorance (can't find an answer by searching), but can I map a
> specific file descriptor onto an io object?
Here's a small library that lets you do that:
http://sage.discontinuity.info/cgi-bin/gitweb/gitweb.cgi?p=thin.git;a=blob_plain;f=lfdopen.c
Cheers,
Joonas