Return to fdesc_vnops.c CVS log | Up to [cvs.NetBSD.org] / src / sys / miscfs / fdesc |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.90, 2006/03/01 12:38:21 | version 1.91, 2006/04/04 14:18:35 | ||
---|---|---|---|
|
|
||
default: | default: | ||
KASSERT(fdp != NULL); | KASSERT(fdp != NULL); | ||
j = (int)i - 2; | j = (int)i - 2; | ||
if (fdp->fd_ofiles[j] == NULL || | if (fdp == NULL || fdp->fd_ofiles[j] == NULL || | ||
FILE_IS_USABLE(fdp->fd_ofiles[j]) == 0) | FILE_IS_USABLE(fdp->fd_ofiles[j]) == 0) | ||
continue; | continue; | ||
d.d_fileno = j + FD_STDIN; | d.d_fileno = j + FD_STDIN; |