* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
* @(#)stat.c 8.1 (Berkeley) %G%
#include <stand.att/saio.h>
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
;