/* @(#)fdopen.c 4.5 (Berkeley) %G% */
* Unix routine to do an "fopen" on file descriptor
* The mode has to be repeated because you can't query its
nofile
= getdtablesize();
if (fd
< 0 || fd
>= nofile
)
iop
->_base
= iop
->_ptr
= NULL
;
lseek(fd
, (off_t
)0, L_XTND
);