| 240 | } |
| 241 | |
| 242 | static int |
| 243 | fdisused(struct filedesc *fdp, int fd) |
| 244 | { |
| 245 | |
| 246 | KASSERT(fd >= 0 && fd < fdp->fd_nfiles, |
| 247 | ("file descriptor %d out of range (0, %d)", fd, fdp->fd_nfiles)); |
| 248 | |
| 249 | return ((fdp->fd_map[NDSLOT(fd)] & NDBIT(fd)) != 0); |
| 250 | } |
| 251 | |
| 252 | /* |
| 253 | * Mark a file descriptor as used. |
no outgoing calls
no test coverage detected