Up to [cvs.NetBSD.org] / src / lib / libc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: keiichi-mipv6-base
Revision 1.195 / (download) - annotate - [select for diffs], Thu Mar 13 15:40:00 2008 UTC (12 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: matt-armv6-nbase,
keiichi-mipv6-base
Changes since 1.194: +2 -1
lines
Diff to previous 1.194 (colored)
Since _file is a short, check that the fd fits in it, otherwise bail with EMFILE. We treat _file as an unsigned short to double our range, with a special case for -1 (closed). Make a note of what we should do about stdio if we ever bump libc. We could change _file in the future compatibly to an int by putting it in the extension space but for now we don't bother.