* Copyright (c) 1991 The Regents of the University of California.
* %sccs.include.redist.c%
* @(#)stat.c 7.2 (Berkeley) %G%
if (fd
< 0 || fd
>= SOPEN_MAX
||
((io
= &iob
[fd
])->i_flgs
& F_ALLOC
) == 0) {
/* only important stuff */
sb
->st_mode
= io
->i_ino
.di_mode
;
sb
->st_uid
= io
->i_ino
.di_uid
;
sb
->st_gid
= io
->i_ino
.di_gid
;
sb
->st_size
= io
->i_ino
.di_size
;