tag | line | file | source code |
files | 104 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 177 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 216 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 58 | arch/i386/kernel/sys_i386.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 60 | arch/m68k/kernel/sys_m68k.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 45 | arch/mips/kernel/syscall.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 37 | arch/sparc/kernel/sunos_ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd [fd])) |
files | 49 | arch/sparc/kernel/sys_sparc.c | struct file *file = current->files->fd[fd]; |
files | 195 | arch/sparc/kernel/sys_sparc.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])){ |
files | 87 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 395 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 464 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 652 | arch/sparc/kernel/sys_sunos.c | file = current->files->fd [fd]; |
files | 953 | arch/sparc/kernel/sys_sunos.c | if (!current->files->fd[i] || !current->files->fd[i]->f_inode) |
files | 962 | arch/sparc/kernel/sys_sunos.c | if (!current->files->fd[i] || !current->files->fd[i]->f_inode) continue; |
files | 965 | arch/sparc/kernel/sys_sunos.c | && check(SEL_IN, wait, current->files->fd[i])) { |
files | 976 | arch/sparc/kernel/sys_sunos.c | check(SEL_OUT, wait, current->files->fd[i])) { |
files | 982 | arch/sparc/kernel/sys_sunos.c | if (check(SEL_EX, wait, current->files->fd[i])) { |
files | 248 | drivers/block/loop.c | if (arg >= NR_OPEN || !(file = current->files->fd[arg])) |
files | 1647 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
files | 49 | drivers/sound/soundcard.c | static struct fileinfo files[SND_NDEVS]; |
files | 75 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 77 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
files | 87 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 89 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
files | 135 | drivers/sound/soundcard.c | memcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file)); |
files | 146 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 148 | drivers/sound/soundcard.c | sound_release_sw (dev, &files[dev]); |
files | 162 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 187 | drivers/sound/soundcard.c | err = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg); |
files | 199 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 208 | drivers/sound/soundcard.c | return sequencer_select (dev, &files[dev], sel_type, wait); |
files | 214 | drivers/sound/soundcard.c | return MIDIbuf_select (dev, &files[dev], sel_type, wait); |
files | 222 | drivers/sound/soundcard.c | return audio_select (dev, &files[dev], sel_type, wait); |
files | 242 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 338 | fs/binfmt_aout.c | file = current->files->fd[fd]; |
files | 419 | fs/binfmt_aout.c | file = current->files->fd[fd]; |
files | 213 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
files | 404 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
files | 718 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
files | 265 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 279 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 122 | fs/exec.c | fpp = current->files->fd; |
files | 166 | fs/exec.c | file = current->files->fd[fd]; |
files | 436 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
files | 438 | fs/exec.c | FD_ZERO(¤t->files->close_on_exec); |
files | 496 | fs/exec.c | || (current->files->count > 1)) { |
files | 20 | fs/fcntl.c | if (fd >= NR_OPEN || !current->files->fd[fd]) |
files | 25 | fs/fcntl.c | if (current->files->fd[arg]) |
files | 31 | fs/fcntl.c | FD_CLR(arg, ¤t->files->close_on_exec); |
files | 32 | fs/fcntl.c | (current->files->fd[arg] = current->files->fd[fd])->f_count++; |
files | 38 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->files->fd[oldfd]) |
files | 60 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
files | 66 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
files | 69 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
files | 71 | fs/fcntl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 63 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
files | 67 | fs/ioctl.c | FD_SET(fd, ¤t->files->close_on_exec); |
files | 71 | fs/ioctl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 168 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
files | 190 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
files | 239 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
files | 185 | fs/ncpfs/inode.c | || ((ncp_filp = current->files->fd[data->ncp_fd]) == NULL) |
files | 194 | fs/ncpfs/inode.c | || ((wdog_filp = current->files->fd[data->wdog_fd]) == NULL) |
files | 203 | fs/ncpfs/inode.c | || ((msg_filp = current->files->fd[data->message_fd]) == NULL) |
files | 124 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
files | 513 | fs/nfs/nfsroot.c | file = current->files->fd[*fd]; |
files | 1439 | fs/nfs/nfsroot.c | nfs_file = current->files->fd[nfs_data.fd]; |
files | 52 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 127 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 287 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 328 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 378 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 539 | fs/open.c | if (!current->files->fd[fd]) { |
files | 540 | fs/open.c | current->files->fd[fd] = f; |
files | 541 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
files | 615 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 616 | fs/open.c | if (!(filp = current->files->fd[fd])) |
files | 618 | fs/open.c | current->files->fd[fd] = NULL; |
files | 433 | fs/pipe.c | if (!current->files->fd[i]) { |
files | 434 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
files | 443 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
files | 109 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
files | 155 | fs/proc/fd.c | if (!p->files) |
files | 157 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
files | 239 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
files | 244 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
files | 246 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
files | 121 | fs/proc/link.c | if (!p->files) |
files | 124 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
files | 125 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
files | 23 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
files | 63 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
files | 109 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 133 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 277 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
files | 290 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
files | 62 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 126 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 105 | fs/select.c | if (!current->files->fd[i]) |
files | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
files | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
files | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
files | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
files | 194 | fs/smbfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
files | 198 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
files | 215 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
files | 244 | include/linux/sched.h | struct files_struct *files; |
files | 398 | include/linux/sched.h | return current->files->fd[fd]; |
files | 392 | kernel/exit.c | struct files_struct * files = tsk->files; |
files | 394 | kernel/exit.c | if (files) { |
files | 395 | kernel/exit.c | tsk->files = NULL; |
files | 396 | kernel/exit.c | if (!--files->count) { |
files | 399 | kernel/exit.c | struct file * filp = files->fd[i]; |
files | 402 | kernel/exit.c | files->fd[i] = NULL; |
files | 405 | kernel/exit.c | kfree(files); |
files | 164 | kernel/fork.c | current->files->count++; |
files | 167 | kernel/fork.c | tsk->files = kmalloc(sizeof(*tsk->files), GFP_KERNEL); |
files | 168 | kernel/fork.c | if (!tsk->files) |
files | 170 | kernel/fork.c | tsk->files->count = 1; |
files | 171 | kernel/fork.c | memcpy(&tsk->files->close_on_exec, ¤t->files->close_on_exec, |
files | 172 | kernel/fork.c | sizeof(tsk->files->close_on_exec)); |
files | 174 | kernel/fork.c | struct file * f = current->files->fd[i]; |
files | 177 | kernel/fork.c | tsk->files->fd[i] = f; |
files | 186 | net/socket.c | if (!current->files->fd[fd]) |
files | 194 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 195 | net/socket.c | current->files->fd[fd] = file; |
files | 229 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 599 | net/socket.c | sock->file=current->files->fd[fd]; |
files | 680 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 708 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 742 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 781 | net/socket.c | sock->file=current->files->fd[fd]; |
files | 805 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
files | 855 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 880 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 906 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 942 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 980 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1020 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1061 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1079 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1099 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1121 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1171 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 727 | net/unix/af_unix.c | if(current->files->fd[fd]==NULL) |
files | 734 | net/unix/af_unix.c | fp[i]=current->files->fd[fdp[i]]; |
files | 769 | net/unix/af_unix.c | if(current->files->fd[i]) |
files | 815 | net/unix/af_unix.c | ufp=¤t->files->fd[0]; |
files | 829 | net/unix/af_unix.c | FD_CLR(ufn,¤t->files->close_on_exec); |