* Copyright (c) 1993 The Regents of the University of California.
* %sccs.include.redist.c%
* @(#)stat.c 7.1 (Berkeley) %G%
register struct open_file
*f
= &files
[fd
];
if ((unsigned)fd
>= SOPEN_MAX
|| f
->f_flags
== 0) {
/* operation not defined on raw devices */
if (f
->f_flags
& F_RAW
) {
errno
= (f
->f_ops
->stat
)(f
, sb
);