File descriptors are generally type "int" on Unix machines, which is almost always 32bit, but not guaranteed. The good thing about file descriptors is they are incrementing per-process (again on Unix - I don't know what Windows does), so the chances of you exceeding that number are pretty low.
On Tue, Apr 22, 2014 at 4:13 AM, Joran Dirk Greef <[email protected]> wrote: > I am working on an buffer structure to reference file descriptors. These > references need to be as small as possible, no more than 32bit. > > Does Node give any guarantees on the range of file descriptors? > > I wouldn't think so, but would a file descriptor every be larger than > 32bit? > > Also, in the case of files, is there a way to go from file descriptor back > to original path? > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
