Up to [cvs.NetBSD.org] / src / include
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: hpcarm-cleanup-nbase
Revision 1.71 / (download) - annotate - [select for diffs], Thu Mar 13 15:40:00 2008 UTC (16 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
matt-armv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.70: +3 -2
lines
Diff to previous 1.70 (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.