tag | line | file | source code |
fd | 42 | arch/alpha/boot/tools/build.c | int fd, i; |
fd | 91 | arch/alpha/boot/tools/build.c | fd = open(infile, O_RDONLY); |
fd | 92 | arch/alpha/boot/tools/build.c | if (fd < 0) { |
fd | 96 | arch/alpha/boot/tools/build.c | if (read(fd, &fhdr, sizeof(struct filehdr)) != sizeof(struct filehdr)) |
fd | 102 | arch/alpha/boot/tools/build.c | if (read(fd, &ahdr, sizeof(struct aouthdr)) != sizeof(struct aouthdr)) |
fd | 105 | arch/alpha/boot/tools/build.c | if (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr)) |
fd | 131 | arch/alpha/boot/tools/build.c | if (lseek(fd, offset, SEEK_SET) != offset) |
fd | 138 | arch/alpha/boot/tools/build.c | if (read(fd, buffer, num) != num) |
fd | 88 | arch/alpha/boot/tools/mkbb.c | int dev, fd; |
fd | 106 | arch/alpha/boot/tools/mkbb.c | fd = open(argv[2], O_RDONLY); |
fd | 107 | arch/alpha/boot/tools/mkbb.c | if(fd < 0) { |
fd | 114 | arch/alpha/boot/tools/mkbb.c | nread = read(fd, &bootloader_image, sizeof(bootblock)); |
fd | 146 | arch/alpha/boot/tools/mkbb.c | close(fd); |
fd | 97 | arch/alpha/kernel/osf_sys.c | asmlinkage int osf_getdirentries(unsigned int fd, struct osf_dirent * dirent, |
fd | 104 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 169 | arch/alpha/kernel/osf_sys.c | unsigned long prot, unsigned long flags, unsigned long fd, |
fd | 177 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 205 | arch/alpha/kernel/osf_sys.c | asmlinkage int osf_fstatfs(unsigned long fd, struct statfs * buffer, unsigned long bufsiz) |
fd | 216 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 464 | arch/alpha/kernel/osf_sys.c | int fd[2]; |
fd | 467 | arch/alpha/kernel/osf_sys.c | error = do_pipe(fd); |
fd | 470 | arch/alpha/kernel/osf_sys.c | (®s)->r20 = fd[1]; |
fd | 471 | arch/alpha/kernel/osf_sys.c | return fd[0]; |
fd | 544 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 557 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 569 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 26 | arch/i386/kernel/sys_i386.c | int fd[2]; |
fd | 32 | arch/i386/kernel/sys_i386.c | error = do_pipe(fd); |
fd | 35 | arch/i386/kernel/sys_i386.c | put_fs_long(fd[0],0+fildes); |
fd | 36 | arch/i386/kernel/sys_i386.c | put_fs_long(fd[1],1+fildes); |
fd | 57 | arch/i386/kernel/sys_i386.c | unsigned long fd = get_user(buffer+4); |
fd | 58 | arch/i386/kernel/sys_i386.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 1735 | arch/m68k/console/fbcon.c | #define REFCOUNT(fd) (((int *)(fd))[-1]) |
fd | 27 | arch/m68k/kernel/sys_m68k.c | int fd[2]; |
fd | 33 | arch/m68k/kernel/sys_m68k.c | error = do_pipe(fd); |
fd | 36 | arch/m68k/kernel/sys_m68k.c | put_user(fd[0],0+fildes); |
fd | 37 | arch/m68k/kernel/sys_m68k.c | put_user(fd[1],1+fildes); |
fd | 59 | arch/m68k/kernel/sys_m68k.c | unsigned long fd = get_user(buffer+4); |
fd | 60 | arch/m68k/kernel/sys_m68k.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 28 | arch/mips/kernel/syscall.c | int fd[2]; |
fd | 31 | arch/mips/kernel/syscall.c | error = do_pipe(fd); |
fd | 34 | arch/mips/kernel/syscall.c | regs->reg2 = fd[0]; |
fd | 35 | arch/mips/kernel/syscall.c | regs->reg3 = fd[1]; |
fd | 40 | arch/mips/kernel/syscall.c | int flags, int fd, off_t offset) |
fd | 45 | arch/mips/kernel/syscall.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 19 | arch/ppc/boot/cortstrip.c | int fd, fdo; |
fd | 30 | arch/ppc/boot/cortstrip.c | fd = open(argv[1], O_RDONLY); |
fd | 31 | arch/ppc/boot/cortstrip.c | if ( fd == -1 ) |
fd | 51 | arch/ppc/boot/cortstrip.c | i = lseek(fd, skip, SEEK_SET); |
fd | 58 | arch/ppc/boot/cortstrip.c | while ( (n = read(fd, data, SIZE)) > 0 ) |
fd | 67 | arch/ppc/boot/cortstrip.c | close(fd); |
fd | 14 | arch/ppc/kernel/cortstrip.c | int fd, fdo; |
fd | 25 | arch/ppc/kernel/cortstrip.c | fd = open(argv[1], O_RDONLY); |
fd | 26 | arch/ppc/kernel/cortstrip.c | if ( fd == -1 ) |
fd | 42 | arch/ppc/kernel/cortstrip.c | i = lseek(fd, skip, SEEK_SET); |
fd | 49 | arch/ppc/kernel/cortstrip.c | while ( (n = read(fd, data, SIZE)) > 0 ) |
fd | 58 | arch/ppc/kernel/cortstrip.c | close(fd); |
fd | 15 | arch/ppc/kernel/mkboot.c | int fd, fdo; |
fd | 26 | arch/ppc/kernel/mkboot.c | fd = open(argv[1], O_RDONLY); |
fd | 27 | arch/ppc/kernel/mkboot.c | if ( fd == -1 ) |
fd | 47 | arch/ppc/kernel/mkboot.c | i = lseek(fd, skip, SEEK_SET); |
fd | 54 | arch/ppc/kernel/mkboot.c | while ( (n = read(fd, data, SIZE)) > 0 ) |
fd | 63 | arch/ppc/kernel/mkboot.c | close(fd); |
fd | 32 | arch/sparc/kernel/sunos_ioctl.c | asmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg) |
fd | 37 | arch/sparc/kernel/sunos_ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd [fd])) |
fd | 50 | arch/sparc/kernel/sunos_ioctl.c | foo = sys_ioctl(fd, cmd, (int) &ntty); |
fd | 63 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCADDRT, arg); |
fd | 65 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCDELRT, arg); |
fd | 67 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFADDR, arg); |
fd | 69 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFADDR, arg); |
fd | 71 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFDSTADDR, arg); |
fd | 73 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFDSTADDR, arg); |
fd | 75 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFFLAGS, arg); |
fd | 77 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFFLAGS, arg); |
fd | 79 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMEM, arg); |
fd | 81 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMEM, arg); |
fd | 83 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFCONF, arg); |
fd | 85 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMTU, arg); |
fd | 87 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMTU, arg); |
fd | 90 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFBRDADDR, arg); |
fd | 92 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFBRDADDR, arg); |
fd | 94 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFNETMASK, arg); |
fd | 96 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFNETMASK, arg); |
fd | 98 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMETRIC, arg); |
fd | 100 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMETRIC, arg); |
fd | 103 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSARP, arg); |
fd | 105 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGARP, arg); |
fd | 107 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGARP, arg); |
fd | 119 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCADDMULTI, arg); |
fd | 121 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCDELMULTI, arg); |
fd | 151 | arch/sparc/kernel/sunos_ioctl.c | foo = sys_ioctl(fd, cmd, arg); |
fd | 170 | arch/sparc/kernel/sunos_ioctl.c | foo = sys_ioctl(fd, cmd, arg); |
fd | 187 | arch/sparc/kernel/sunos_ioctl.c | foo = sys_ioctl(fd, cmd, arg); |
fd | 34 | arch/sparc/kernel/sys_sparc.c | int fd[2]; |
fd | 37 | arch/sparc/kernel/sys_sparc.c | error = do_pipe(fd); |
fd | 41 | arch/sparc/kernel/sys_sparc.c | regs->u_regs[UREG_I1] = fd[1]; |
fd | 42 | arch/sparc/kernel/sys_sparc.c | return fd[0]; |
fd | 47 | arch/sparc/kernel/sys_sparc.c | asmlinkage int quick_sys_write(unsigned int fd, char *buf, unsigned int count) |
fd | 49 | arch/sparc/kernel/sys_sparc.c | struct file *file = current->files->fd[fd]; |
fd | 188 | arch/sparc/kernel/sys_sparc.c | unsigned long prot, unsigned long flags, unsigned long fd, |
fd | 195 | arch/sparc/kernel/sys_sparc.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])){ |
fd | 76 | arch/sparc/kernel/sys_sunos.c | unsigned long fd, unsigned long off) |
fd | 87 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 388 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdents(unsigned int fd, void * dirent, int cnt) |
fd | 395 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 457 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdirentries(unsigned int fd, void * dirent, int cnt, unsigned int *basep) |
fd | 464 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 550 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_fpathconf(int fd, int name) |
fd | 632 | arch/sparc/kernel/sys_sunos.c | extern asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen); |
fd | 634 | arch/sparc/kernel/sys_sunos.c | extern asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen); |
fd | 642 | arch/sparc/kernel/sys_sunos.c | sunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr) |
fd | 652 | arch/sparc/kernel/sys_sunos.c | file = current->files->fd [fd]; |
fd | 724 | arch/sparc/kernel/sys_sunos.c | linux_nfs_mount.fd = server_fd; |
fd | 912 | arch/sparc/kernel/sys_sunos.c | int fd; |
fd | 951 | arch/sparc/kernel/sys_sunos.c | i = fdpnt->fd; |
fd | 953 | arch/sparc/kernel/sys_sunos.c | if (!current->files->fd[i] || !current->files->fd[i]->f_inode) |
fd | 959 | arch/sparc/kernel/sys_sunos.c | i = fdpnt->fd; |
fd | 962 | arch/sparc/kernel/sys_sunos.c | if (!current->files->fd[i] || !current->files->fd[i]->f_inode) continue; |
fd | 965 | arch/sparc/kernel/sys_sunos.c | && check(SEL_IN, wait, current->files->fd[i])) { |
fd | 976 | arch/sparc/kernel/sys_sunos.c | check(SEL_OUT, wait, current->files->fd[i])) { |
fd | 982 | arch/sparc/kernel/sys_sunos.c | if (check(SEL_EX, wait, current->files->fd[i])) { |
fd | 248 | drivers/block/loop.c | if (arg >= NR_OPEN || !(file = current->files->fd[arg])) |
fd | 1647 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
fd | 1075 | drivers/net/wavelan.c | fd_t fd; |
fd | 1094 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1095 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
fd | 1096 | drivers/net/wavelan.c | fd.fd_link_offset = rx_next; |
fd | 1097 | drivers/net/wavelan.c | fd.fd_rbd_offset = rx + sizeof(fd); |
fd | 1098 | drivers/net/wavelan.c | obram_write(ioaddr, rx, (unsigned char *)&fd, sizeof(fd)); |
fd | 1102 | drivers/net/wavelan.c | rbd.rbd_bufl = rx + sizeof(fd) + sizeof(rbd); |
fd | 1105 | drivers/net/wavelan.c | obram_write(ioaddr, rx + sizeof(fd), (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1493 | drivers/net/wavelan.c | fd_t fd; |
fd | 1499 | drivers/net/wavelan.c | obram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd)); |
fd | 1501 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_C) != FD_STATUS_C) |
fd | 1508 | drivers/net/wavelan.c | (fd.fd_status & (FD_STATUS_B | FD_STATUS_OK)) |
fd | 1520 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_OK) != FD_STATUS_OK) |
fd | 1524 | drivers/net/wavelan.c | if ((fd.fd_status & (FD_STATUS_S6 | FD_STATUS_S7 | FD_STATUS_S8 | FD_STATUS_S9 | FD_STATUS_S10 | FD_STATUS_S11)) != 0) |
fd | 1528 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S6) != 0) |
fd | 1531 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S7) != 0) |
fd | 1537 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S8) != 0) |
fd | 1543 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S9) != 0) |
fd | 1549 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S10) != 0) |
fd | 1555 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S11) != 0) |
fd | 1562 | drivers/net/wavelan.c | if (fd.fd_rbd_offset == I82586NULL) |
fd | 1566 | drivers/net/wavelan.c | obram_read(ioaddr, fd.fd_rbd_offset, (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1612 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
fd | 1617 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
fd | 1619 | drivers/net/wavelan.c | printk("%s: fd_length=%d\n", dev->name, fd.fd_length); |
fd | 1685 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1686 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status)); |
fd | 1688 | drivers/net/wavelan.c | fd.fd_command = FD_COMMAND_EL; |
fd | 1689 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1691 | drivers/net/wavelan.c | fd.fd_command = 0; |
fd | 1692 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1695 | drivers/net/wavelan.c | lp->rx_head = fd.fd_link_offset; |
fd | 588 | drivers/scsi/aic7xxx_asm.c | int fd[2]; |
fd | 650 | drivers/scsi/aic7xxx_asm.c | if (pipe(fd) < 0) { |
fd | 660 | drivers/scsi/aic7xxx_asm.c | close(fd[1]); /* Close write end */ |
fd | 661 | drivers/scsi/aic7xxx_asm.c | if (fd[0] != STDIN_FILENO) { |
fd | 662 | drivers/scsi/aic7xxx_asm.c | if (dup2(fd[0], STDIN_FILENO) != STDIN_FILENO) { |
fd | 666 | drivers/scsi/aic7xxx_asm.c | close(fd[0]); |
fd | 708 | drivers/scsi/aic7xxx_asm.c | close(fd[0]); /* Close Read end */ |
fd | 709 | drivers/scsi/aic7xxx_asm.c | if (fd[1] != STDOUT_FILENO) { |
fd | 710 | drivers/scsi/aic7xxx_asm.c | if (dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO) { |
fd | 714 | drivers/scsi/aic7xxx_asm.c | close(fd[1]); |
fd | 1569 | drivers/sound/configure.c | int fd; |
fd | 1574 | drivers/sound/configure.c | if ((fd = open (path, 0)) > 0) |
fd | 1582 | drivers/sound/configure.c | count = read (fd, &c, 1); |
fd | 1593 | drivers/sound/configure.c | close (fd); |
fd | 31 | fs/binfmt_aout.c | static int load_aout_library(int fd); |
fd | 261 | fs/binfmt_aout.c | int fd; |
fd | 334 | fs/binfmt_aout.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 336 | fs/binfmt_aout.c | if (fd < 0) |
fd | 337 | fs/binfmt_aout.c | return fd; |
fd | 338 | fs/binfmt_aout.c | file = current->files->fd[fd]; |
fd | 340 | fs/binfmt_aout.c | sys_close(fd); |
fd | 355 | fs/binfmt_aout.c | sys_close(fd); |
fd | 364 | fs/binfmt_aout.c | sys_close(fd); |
fd | 409 | fs/binfmt_aout.c | do_load_aout_library(int fd) |
fd | 419 | fs/binfmt_aout.c | file = current->files->fd[fd]; |
fd | 477 | fs/binfmt_aout.c | load_aout_library(int fd) |
fd | 482 | fs/binfmt_aout.c | retval = do_load_aout_library(fd); |
fd | 41 | fs/binfmt_elf.c | static int load_elf_library(int fd); |
fd | 213 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 404 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 705 | fs/binfmt_elf.c | do_load_elf_library(int fd){ |
fd | 718 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 800 | fs/binfmt_elf.c | static int load_elf_library(int fd) |
fd | 805 | fs/binfmt_elf.c | retval = do_load_elf_library(fd); |
fd | 260 | fs/buffer.c | asmlinkage int sys_fsync(unsigned int fd) |
fd | 265 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 274 | fs/buffer.c | asmlinkage int sys_fdatasync(unsigned int fd) |
fd | 279 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 113 | fs/exec.c | int error, fd; |
fd | 121 | fs/exec.c | fd = 0; |
fd | 122 | fs/exec.c | fpp = current->files->fd; |
fd | 126 | fs/exec.c | if (++fd >= NR_OPEN) { |
fd | 148 | fs/exec.c | return fd; |
fd | 159 | fs/exec.c | int fd, retval; |
fd | 163 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 164 | fs/exec.c | if (fd < 0) |
fd | 165 | fs/exec.c | return fd; |
fd | 166 | fs/exec.c | file = current->files->fd[fd]; |
fd | 173 | fs/exec.c | retval = fn(fd); |
fd | 178 | fs/exec.c | sys_close(fd); |
fd | 18 | fs/fcntl.c | static inline int dupfd(unsigned int fd, unsigned int arg) |
fd | 20 | fs/fcntl.c | if (fd >= NR_OPEN || !current->files->fd[fd]) |
fd | 25 | fs/fcntl.c | if (current->files->fd[arg]) |
fd | 32 | fs/fcntl.c | (current->files->fd[arg] = current->files->fd[fd])->f_count++; |
fd | 38 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->files->fd[oldfd]) |
fd | 54 | fs/fcntl.c | asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 60 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 64 | fs/fcntl.c | return dupfd(fd,arg); |
fd | 66 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
fd | 69 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
fd | 71 | fs/fcntl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 97 | fs/fcntl.c | return fcntl_getlk(fd, (struct flock *) arg); |
fd | 99 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
fd | 101 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
fd | 58 | fs/ioctl.c | asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 63 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 67 | fs/ioctl.c | FD_SET(fd, ¤t->files->close_on_exec); |
fd | 71 | fs/ioctl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 163 | fs/locks.c | asmlinkage int sys_flock(unsigned int fd, unsigned int cmd) |
fd | 168 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 183 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
fd | 190 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 227 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
fd | 239 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 185 | fs/ncpfs/inode.c | || ((ncp_filp = current->files->fd[data->ncp_fd]) == NULL) |
fd | 194 | fs/ncpfs/inode.c | || ((wdog_filp = current->files->fd[data->wdog_fd]) == NULL) |
fd | 203 | fs/ncpfs/inode.c | || ((msg_filp = current->files->fd[data->message_fd]) == NULL) |
fd | 107 | fs/nfs/inode.c | unsigned int fd; |
fd | 119 | fs/nfs/inode.c | fd = data->fd; |
fd | 124 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
fd | 506 | fs/nfs/nfsroot.c | static int root_open_udp_sock(int *fd, struct socket **sock) |
fd | 511 | fs/nfs/nfsroot.c | *fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); |
fd | 512 | fs/nfs/nfsroot.c | if (*fd >= 0) { |
fd | 513 | fs/nfs/nfsroot.c | file = current->files->fd[*fd]; |
fd | 1435 | fs/nfs/nfsroot.c | if ((nfs_data.fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { |
fd | 1439 | fs/nfs/nfsroot.c | nfs_file = current->files->fd[nfs_data.fd]; |
fd | 1462 | fs/nfs/nfsroot.c | sys_close(nfs_data.fd); |
fd | 43 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
fd | 52 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 121 | fs/open.c | asmlinkage int sys_ftruncate(unsigned int fd, unsigned long length) |
fd | 127 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 281 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 287 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 322 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 328 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 371 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 378 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 500 | fs/open.c | int flag,error,fd; |
fd | 538 | fs/open.c | for(fd = 0; fd < NR_OPEN && fd < current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) { |
fd | 539 | fs/open.c | if (!current->files->fd[fd]) { |
fd | 540 | fs/open.c | current->files->fd[fd] = f; |
fd | 541 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 542 | fs/open.c | return fd; |
fd | 609 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 613 | fs/open.c | if (fd >= NR_OPEN) |
fd | 615 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 616 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 618 | fs/open.c | current->files->fd[fd] = NULL; |
fd | 411 | fs/pipe.c | int do_pipe(int *fd) |
fd | 433 | fs/pipe.c | if (!current->files->fd[i]) { |
fd | 434 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
fd | 443 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
fd | 58 | fs/proc/fd.c | unsigned int ino, pid, fd, c; |
fd | 88 | fs/proc/fd.c | fd = 0; |
fd | 93 | fs/proc/fd.c | fd = 0xfffff; |
fd | 96 | fs/proc/fd.c | fd *= 10; |
fd | 97 | fs/proc/fd.c | fd += c; |
fd | 98 | fs/proc/fd.c | if (fd & 0xffff0000) { |
fd | 99 | fs/proc/fd.c | fd = 0xfffff; |
fd | 109 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 112 | fs/proc/fd.c | ino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd; |
fd | 127 | fs/proc/fd.c | unsigned int fd, pid, ino; |
fd | 138 | fs/proc/fd.c | for (fd = filp->f_pos; fd < 2; fd++, filp->f_pos++) { |
fd | 140 | fs/proc/fd.c | if (fd) |
fd | 142 | fs/proc/fd.c | if (filldir(dirent, "..", fd+1, fd, ino) < 0) |
fd | 154 | fs/proc/fd.c | for (fd -= 2 ; fd < NR_OPEN; fd++, filp->f_pos++) { |
fd | 157 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 161 | fs/proc/fd.c | i = fd; |
fd | 168 | fs/proc/fd.c | ino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd; |
fd | 169 | fs/proc/fd.c | if (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0) |
fd | 239 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 244 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 246 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
fd | 124 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
fd | 125 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
fd | 18 | fs/read_write.c | asmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin) |
fd | 23 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 54 | fs/read_write.c | asmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high, |
fd | 63 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 103 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
fd | 109 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 126 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
fd | 133 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 272 | fs/read_write.c | asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count) |
fd | 277 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
fd | 284 | fs/read_write.c | asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count) |
fd | 290 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
fd | 56 | fs/readdir.c | asmlinkage int old_readdir(unsigned int fd, void * dirent, unsigned int count) |
fd | 62 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 119 | fs/readdir.c | asmlinkage int sys_getdents(unsigned int fd, void * dirent, unsigned int count) |
fd | 126 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 105 | fs/select.c | if (!current->files->fd[i]) |
fd | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
fd | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
fd | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
fd | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
fd | 178 | fs/smbfs/inode.c | unsigned int fd; |
fd | 188 | fs/smbfs/inode.c | fd = data->fd; |
fd | 194 | fs/smbfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
fd | 189 | fs/stat.c | asmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf) |
fd | 198 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 206 | fs/stat.c | asmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf) |
fd | 215 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 47 | include/asm-alpha/posix_types.h | static __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp) |
fd | 49 | include/asm-alpha/posix_types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 50 | include/asm-alpha/posix_types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 55 | include/asm-alpha/posix_types.h | static __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp) |
fd | 57 | include/asm-alpha/posix_types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 58 | include/asm-alpha/posix_types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 63 | include/asm-alpha/posix_types.h | static __inline__ int __FD_ISSET(unsigned long fd, __kernel_fd_set *p) |
fd | 65 | include/asm-alpha/posix_types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 66 | include/asm-alpha/posix_types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 246 | include/asm-alpha/unistd.h | static inline int dup(int fd) |
fd | 248 | include/asm-alpha/unistd.h | return sys_dup(fd); |
fd | 251 | include/asm-alpha/unistd.h | static inline int close(int fd) |
fd | 253 | include/asm-alpha/unistd.h | return sys_close(fd); |
fd | 265 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
fd | 267 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
fd | 271 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
fd | 273 | include/asm-alpha/unistd.h | return sys_read(fd, buf, nr); |
fd | 31 | include/asm-i386/posix_types.h | #define __FD_SET(fd,fdsetp) \ |
fd | 33 | include/asm-i386/posix_types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 36 | include/asm-i386/posix_types.h | #define __FD_CLR(fd,fdsetp) \ |
fd | 38 | include/asm-i386/posix_types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 41 | include/asm-i386/posix_types.h | #define __FD_ISSET(fd,fdsetp) (__extension__ ({ \ |
fd | 44 | include/asm-i386/posix_types.h | :"=q" (__result) :"r" ((int) (fd)), \ |
fd | 278 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 279 | include/asm-i386/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 282 | include/asm-i386/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 420 | include/asm-m68k/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 421 | include/asm-m68k/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 424 | include/asm-m68k/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 109 | include/asm-mips/types.h | static __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp) |
fd | 111 | include/asm-mips/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 112 | include/asm-mips/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 117 | include/asm-mips/types.h | static __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp) |
fd | 119 | include/asm-mips/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 120 | include/asm-mips/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 125 | include/asm-mips/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
fd | 127 | include/asm-mips/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 128 | include/asm-mips/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 1302 | include/asm-mips/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 1303 | include/asm-mips/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 1306 | include/asm-mips/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 79 | include/asm-ppc/types.h | static __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp) |
fd | 81 | include/asm-ppc/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 82 | include/asm-ppc/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 87 | include/asm-ppc/types.h | static __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp) |
fd | 89 | include/asm-ppc/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 90 | include/asm-ppc/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 95 | include/asm-ppc/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
fd | 97 | include/asm-ppc/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 98 | include/asm-ppc/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 272 | include/asm-ppc/unistd.h | static /*inline*/ _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 273 | include/asm-ppc/unistd.h | static /*inline*/ _syscall1(int,dup,int,fd) |
fd | 276 | include/asm-ppc/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 38 | include/asm-sparc/posix_types.h | static __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp) |
fd | 40 | include/asm-sparc/posix_types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 41 | include/asm-sparc/posix_types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 46 | include/asm-sparc/posix_types.h | static __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp) |
fd | 48 | include/asm-sparc/posix_types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 49 | include/asm-sparc/posix_types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 54 | include/asm-sparc/posix_types.h | static __inline__ int __FD_ISSET(unsigned long fd, __kernel_fd_set *p) |
fd | 56 | include/asm-sparc/posix_types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 57 | include/asm-sparc/posix_types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 432 | include/asm-sparc/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 433 | include/asm-sparc/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 436 | include/asm-sparc/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 37 | include/linux/binfmts.h | int (*load_shlib)(int fd); |
fd | 353 | include/linux/fs.h | extern int fcntl_getlk(unsigned int fd, struct flock *l); |
fd | 354 | include/linux/fs.h | extern int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l); |
fd | 36 | include/linux/nfs_mount.h | int fd; /* 1 */ |
fd | 122 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
fd | 392 | include/linux/sched.h | extern inline struct file *file_from_fd(const unsigned int fd) |
fd | 395 | include/linux/sched.h | if (fd >= NR_OPEN) |
fd | 398 | include/linux/sched.h | return current->files->fd[fd]; |
fd | 18 | include/linux/smb_mount.h | unsigned int fd; |
fd | 27 | include/linux/time.h | #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) |
fd | 28 | include/linux/time.h | #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) |
fd | 29 | include/linux/time.h | #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp) |
fd | 399 | kernel/exit.c | struct file * filp = files->fd[i]; |
fd | 402 | kernel/exit.c | files->fd[i] = NULL; |
fd | 174 | kernel/fork.c | struct file * f = current->files->fd[i]; |
fd | 177 | kernel/fork.c | tsk->files->fd[i] = f; |
fd | 174 | net/socket.c | int fd; |
fd | 185 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 186 | net/socket.c | if (!current->files->fd[fd]) |
fd | 188 | net/socket.c | if (fd == NR_OPEN) |
fd | 194 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 195 | net/socket.c | current->files->fd[fd] = file; |
fd | 204 | net/socket.c | return(fd); |
fd | 224 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 229 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 536 | net/socket.c | int i, fd; |
fd | 593 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 599 | net/socket.c | sock->file=current->files->fd[fd]; |
fd | 601 | net/socket.c | return(fd); |
fd | 673 | net/socket.c | asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 680 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 683 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 703 | net/socket.c | asmlinkage int sys_listen(int fd, int backlog) |
fd | 708 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 710 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 734 | net/socket.c | asmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 742 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 744 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 776 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 781 | net/socket.c | sock->file=current->files->fd[fd]; |
fd | 788 | net/socket.c | return(fd); |
fd | 797 | net/socket.c | asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 805 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 807 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 848 | net/socket.c | asmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 855 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 857 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 873 | net/socket.c | asmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 880 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 882 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 898 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
fd | 906 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 908 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 932 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 942 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 944 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 972 | net/socket.c | asmlinkage int sys_recv(int fd, void * ubuf, int size, unsigned flags) |
fd | 980 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 983 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1010 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * ubuf, int size, unsigned flags, |
fd | 1020 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1022 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1056 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1061 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1063 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1074 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1079 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1081 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1094 | net/socket.c | asmlinkage int sys_shutdown(int fd, int how) |
fd | 1099 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1101 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1111 | net/socket.c | asmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1121 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1123 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1153 | net/socket.c | asmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1171 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1173 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 719 | net/unix/af_unix.c | int fd; |
fd | 721 | net/unix/af_unix.c | fd = fdp[i]; |
fd | 723 | net/unix/af_unix.c | printk("testing fd %d\n", fd); |
fd | 725 | net/unix/af_unix.c | if(fd < 0|| fd >=NR_OPEN) |
fd | 727 | net/unix/af_unix.c | if(current->files->fd[fd]==NULL) |
fd | 734 | net/unix/af_unix.c | fp[i]=current->files->fd[fdp[i]]; |
fd | 769 | net/unix/af_unix.c | if(current->files->fd[i]) |
fd | 815 | net/unix/af_unix.c | ufp=¤t->files->fd[0]; |
fd | 30 | scripts/lxdialog/textbox.c | static int hscroll = 0, fd, file_size, bytes_read; |
fd | 48 | scripts/lxdialog/textbox.c | if ((fd = open (file, O_RDONLY)) == -1) { |
fd | 56 | scripts/lxdialog/textbox.c | if ((file_size = lseek (fd, 0, SEEK_END)) == -1) { |
fd | 62 | scripts/lxdialog/textbox.c | if (lseek (fd, 0, SEEK_SET) == -1) { |
fd | 73 | scripts/lxdialog/textbox.c | if ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) { |
fd | 132 | scripts/lxdialog/textbox.c | close (fd); |
fd | 139 | scripts/lxdialog/textbox.c | if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) { |
fd | 146 | scripts/lxdialog/textbox.c | if (lseek (fd, 0, SEEK_SET) == -1) { |
fd | 152 | scripts/lxdialog/textbox.c | if ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) { |
fd | 172 | scripts/lxdialog/textbox.c | if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) { |
fd | 179 | scripts/lxdialog/textbox.c | if (lseek (fd, -BUF_SIZE, SEEK_END) == -1) { |
fd | 185 | scripts/lxdialog/textbox.c | if ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) { |
fd | 308 | scripts/lxdialog/textbox.c | close (fd); |
fd | 329 | scripts/lxdialog/textbox.c | if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) { |
fd | 344 | scripts/lxdialog/textbox.c | if (lseek (fd, 0, SEEK_SET) == -1) { |
fd | 352 | scripts/lxdialog/textbox.c | if (lseek (fd, -(BUF_SIZE / 2 + bytes_read), SEEK_CUR) |
fd | 361 | scripts/lxdialog/textbox.c | if ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) { |
fd | 383 | scripts/lxdialog/textbox.c | if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) { |
fd | 393 | scripts/lxdialog/textbox.c | if (lseek (fd, 0, SEEK_SET) == -1) { |
fd | 401 | scripts/lxdialog/textbox.c | if (lseek (fd, -(BUF_SIZE / 2 + bytes_read), |
fd | 410 | scripts/lxdialog/textbox.c | if ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) { |
fd | 481 | scripts/lxdialog/textbox.c | if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) { |
fd | 490 | scripts/lxdialog/textbox.c | if ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) { |
fd | 527 | scripts/lxdialog/textbox.c | if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) { |