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 | 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 | 158 | arch/alpha/kernel/osf_sys.c | unsigned long prot, unsigned long flags, unsigned long fd, |
fd | 166 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 194 | arch/alpha/kernel/osf_sys.c | asmlinkage int osf_fstatfs(unsigned long fd, struct statfs * buffer, unsigned long bufsiz) |
fd | 205 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 453 | arch/alpha/kernel/osf_sys.c | int fd[2]; |
fd | 456 | arch/alpha/kernel/osf_sys.c | error = do_pipe(fd); |
fd | 459 | arch/alpha/kernel/osf_sys.c | (®s)->r20 = fd[1]; |
fd | 460 | arch/alpha/kernel/osf_sys.c | return fd[0]; |
fd | 533 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 546 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 558 | 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 | 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 | 23 | arch/sparc/kernel/sunos_ioctl.c | asmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg) |
fd | 27 | arch/sparc/kernel/sunos_ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd [fd])) |
fd | 33 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCADDRT, arg); |
fd | 35 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCDELRT, arg); |
fd | 37 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFADDR, arg); |
fd | 39 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFADDR, arg); |
fd | 41 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFDSTADDR, arg); |
fd | 43 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFDSTADDR, arg); |
fd | 45 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFFLAGS, arg); |
fd | 47 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFFLAGS, arg); |
fd | 49 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMEM, arg); |
fd | 51 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMEM, arg); |
fd | 53 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFCONF, arg); |
fd | 55 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMTU, arg); |
fd | 57 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMTU, arg); |
fd | 60 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFBRDADDR, arg); |
fd | 62 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFBRDADDR, arg); |
fd | 64 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFNETMASK, arg); |
fd | 66 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFNETMASK, arg); |
fd | 68 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMETRIC, arg); |
fd | 70 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMETRIC, arg); |
fd | 73 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSARP, arg); |
fd | 75 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGARP, arg); |
fd | 77 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGARP, arg); |
fd | 89 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCADDMULTI, arg); |
fd | 91 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCDELMULTI, arg); |
fd | 106 | arch/sparc/kernel/sunos_ioctl.c | return 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_I0] = fd[0]; |
fd | 42 | arch/sparc/kernel/sys_sparc.c | regs->u_regs[UREG_I1] = fd[1]; |
fd | 66 | arch/sparc/kernel/sys_sunos.c | unsigned long fd, unsigned long off) |
fd | 77 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 372 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdents(unsigned int fd, void * dirent, int cnt) |
fd | 379 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 466 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_fpathconf(int fd, int name) |
fd | 585 | arch/sparc/kernel/sys_sunos.c | sys_connect(int fd, struct sockaddr *uservaddr, int addrlen); |
fd | 591 | arch/sparc/kernel/sys_sunos.c | sys_bind(int fd, struct sockaddr *umyaddr, int addrlen); |
fd | 599 | arch/sparc/kernel/sys_sunos.c | sunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr) |
fd | 609 | arch/sparc/kernel/sys_sunos.c | file = current->files->fd [fd]; |
fd | 682 | arch/sparc/kernel/sys_sunos.c | linux_nfs_mount.fd = server_fd; |
fd | 1632 | 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 | 1739 | drivers/sound/configure.c | int fd; |
fd | 1744 | drivers/sound/configure.c | if ((fd = open (path, 0)) > 0) |
fd | 1752 | drivers/sound/configure.c | count = read (fd, &c, 1); |
fd | 1763 | drivers/sound/configure.c | close (fd); |
fd | 46 | fs/binfmt_elf.c | static int load_elf_library(int fd); |
fd | 226 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 417 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 714 | fs/binfmt_elf.c | do_load_elf_library(int fd){ |
fd | 727 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 809 | fs/binfmt_elf.c | static int load_elf_library(int fd) |
fd | 814 | fs/binfmt_elf.c | retval = do_load_elf_library(fd); |
fd | 254 | fs/buffer.c | asmlinkage int sys_fsync(unsigned int fd) |
fd | 259 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 268 | fs/buffer.c | asmlinkage int sys_fdatasync(unsigned int fd) |
fd | 273 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 55 | fs/exec.c | static int load_aout_library(int fd); |
fd | 111 | fs/exec.c | int error, fd; |
fd | 119 | fs/exec.c | fd = 0; |
fd | 120 | fs/exec.c | fpp = current->files->fd; |
fd | 124 | fs/exec.c | if (++fd >= NR_OPEN) { |
fd | 146 | fs/exec.c | return fd; |
fd | 288 | fs/exec.c | int fd, retval; |
fd | 292 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 293 | fs/exec.c | if (fd < 0) |
fd | 294 | fs/exec.c | return fd; |
fd | 295 | fs/exec.c | file = current->files->fd[fd]; |
fd | 302 | fs/exec.c | retval = fn(fd); |
fd | 307 | fs/exec.c | sys_close(fd); |
fd | 840 | fs/exec.c | int fd; |
fd | 912 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 914 | fs/exec.c | if (fd < 0) |
fd | 915 | fs/exec.c | return fd; |
fd | 916 | fs/exec.c | file = current->files->fd[fd]; |
fd | 918 | fs/exec.c | sys_close(fd); |
fd | 933 | fs/exec.c | sys_close(fd); |
fd | 942 | fs/exec.c | sys_close(fd); |
fd | 981 | fs/exec.c | static int load_aout_library(int fd) |
fd | 991 | fs/exec.c | file = current->files->fd[fd]; |
fd | 20 | fs/fcntl.c | static inline int dupfd(unsigned int fd, unsigned int arg) |
fd | 22 | fs/fcntl.c | if (fd >= NR_OPEN || !current->files->fd[fd]) |
fd | 27 | fs/fcntl.c | if (current->files->fd[arg]) |
fd | 34 | fs/fcntl.c | (current->files->fd[arg] = current->files->fd[fd])->f_count++; |
fd | 40 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->files->fd[oldfd]) |
fd | 56 | fs/fcntl.c | asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 62 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 66 | fs/fcntl.c | return dupfd(fd,arg); |
fd | 68 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
fd | 71 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
fd | 73 | fs/fcntl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 95 | fs/fcntl.c | return fcntl_getlk(fd, (struct flock *) arg); |
fd | 97 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
fd | 99 | 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 | 98 | fs/locks.c | asmlinkage int sys_flock(unsigned int fd, unsigned int cmd) |
fd | 103 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 118 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
fd | 125 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 161 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
fd | 172 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 203 | fs/ncpfs/inode.c | || ((ncp_filp = current->files->fd[data->ncp_fd]) == NULL) |
fd | 212 | fs/ncpfs/inode.c | || ((wdog_filp = current->files->fd[data->wdog_fd]) == NULL) |
fd | 76 | fs/nfs/inode.c | unsigned int fd; |
fd | 88 | fs/nfs/inode.c | fd = data->fd; |
fd | 93 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
fd | 689 | fs/nfs/nfsroot.c | if ((nfs_data.fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { |
fd | 699 | fs/nfs/nfsroot.c | filp = current->files->fd[nfs_data.fd]; |
fd | 702 | fs/nfs/nfsroot.c | current->files->fd[nfs_data.fd] = &nfs_file; |
fd | 725 | fs/nfs/nfsroot.c | current->files->fd[nfs_data.fd] = NULL; |
fd | 45 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
fd | 54 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 118 | fs/open.c | asmlinkage int sys_ftruncate(unsigned int fd, unsigned long length) |
fd | 123 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 261 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 267 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 302 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 308 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 351 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 358 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 472 | fs/open.c | int flag,error,fd; |
fd | 510 | fs/open.c | for(fd = 0; fd < NR_OPEN && fd < current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) { |
fd | 511 | fs/open.c | if (!current->files->fd[fd]) { |
fd | 512 | fs/open.c | current->files->fd[fd] = f; |
fd | 513 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 514 | fs/open.c | return fd; |
fd | 573 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 577 | fs/open.c | if (fd >= NR_OPEN) |
fd | 579 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 580 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 582 | fs/open.c | current->files->fd[fd] = NULL; |
fd | 396 | fs/pipe.c | int do_pipe(int *fd) |
fd | 417 | fs/pipe.c | if (!current->files->fd[i]) { |
fd | 418 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
fd | 426 | 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 | 241 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 246 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 248 | 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 | 123 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
fd | 130 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 252 | fs/read_write.c | asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count) |
fd | 257 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
fd | 264 | fs/read_write.c | asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count) |
fd | 270 | 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 | 161 | fs/stat.c | asmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf) |
fd | 170 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 176 | fs/stat.c | asmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf) |
fd | 185 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 103 | include/asm-alpha/types.h | static __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp) |
fd | 105 | include/asm-alpha/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 106 | include/asm-alpha/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 111 | include/asm-alpha/types.h | static __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp) |
fd | 113 | include/asm-alpha/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 114 | include/asm-alpha/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 119 | include/asm-alpha/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
fd | 121 | include/asm-alpha/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 122 | include/asm-alpha/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 217 | include/asm-alpha/unistd.h | static inline int dup(int fd) |
fd | 219 | include/asm-alpha/unistd.h | return sys_dup(fd); |
fd | 222 | include/asm-alpha/unistd.h | static inline int close(int fd) |
fd | 224 | include/asm-alpha/unistd.h | return sys_close(fd); |
fd | 236 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
fd | 238 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
fd | 242 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
fd | 244 | include/asm-alpha/unistd.h | return sys_read(fd, buf, nr); |
fd | 79 | include/asm-i386/types.h | #define __FD_SET(fd,fdsetp) \ |
fd | 81 | include/asm-i386/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 84 | include/asm-i386/types.h | #define __FD_CLR(fd,fdsetp) \ |
fd | 86 | include/asm-i386/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 89 | include/asm-i386/types.h | #define __FD_ISSET(fd,fdsetp) (__extension__ ({ \ |
fd | 92 | include/asm-i386/types.h | :"=q" (__result) :"r" ((int) (fd)), \ |
fd | 277 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 278 | include/asm-i386/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 281 | include/asm-i386/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 | 79 | include/asm-sparc/types.h | static __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp) |
fd | 81 | include/asm-sparc/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 82 | include/asm-sparc/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 87 | include/asm-sparc/types.h | static __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp) |
fd | 89 | include/asm-sparc/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 90 | include/asm-sparc/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 95 | include/asm-sparc/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
fd | 97 | include/asm-sparc/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 98 | include/asm-sparc/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 405 | include/asm-sparc/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 406 | include/asm-sparc/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 409 | include/asm-sparc/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 36 | include/linux/binfmts.h | int (*load_shlib)(int fd); |
fd | 36 | include/linux/nfs_mount.h | int fd; /* 1 */ |
fd | 116 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
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 | 371 | kernel/exit.c | struct file * filp = files->fd[i]; |
fd | 374 | kernel/exit.c | files->fd[i] = NULL; |
fd | 172 | kernel/fork.c | struct file * f = current->files->fd[i]; |
fd | 175 | kernel/fork.c | tsk->files->fd[i] = f; |
fd | 164 | net/socket.c | int fd; |
fd | 175 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 176 | net/socket.c | if (!current->files->fd[fd]) |
fd | 178 | net/socket.c | if (fd == NR_OPEN) |
fd | 184 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 185 | net/socket.c | current->files->fd[fd] = file; |
fd | 194 | net/socket.c | return(fd); |
fd | 214 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 219 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 511 | net/socket.c | int i, fd; |
fd | 562 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 568 | net/socket.c | return(fd); |
fd | 640 | net/socket.c | asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 647 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 650 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 670 | net/socket.c | asmlinkage int sys_listen(int fd, int backlog) |
fd | 675 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 677 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 701 | net/socket.c | asmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 709 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 711 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 743 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 754 | net/socket.c | return(fd); |
fd | 763 | net/socket.c | asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 771 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 773 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 814 | net/socket.c | asmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 821 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 823 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 839 | net/socket.c | asmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 846 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 848 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 864 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
fd | 872 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 874 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 898 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 908 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 910 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 938 | net/socket.c | asmlinkage int sys_recv(int fd, void * ubuf, int size, unsigned flags) |
fd | 946 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 949 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 976 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * ubuf, int size, unsigned flags, |
fd | 986 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 988 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1022 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1027 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1029 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1040 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1045 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1047 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1060 | net/socket.c | asmlinkage int sys_shutdown(int fd, int how) |
fd | 1065 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1067 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1077 | net/socket.c | asmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1087 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1089 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1112 | net/socket.c | asmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1124 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1126 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |