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 | 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 | 31 | arch/sparc/kernel/sunos_ioctl.c | asmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg) |
fd | 36 | arch/sparc/kernel/sunos_ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd [fd])) |
fd | 49 | arch/sparc/kernel/sunos_ioctl.c | foo = sys_ioctl(fd, cmd, (int) &ntty); |
fd | 62 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCADDRT, arg); |
fd | 64 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCDELRT, arg); |
fd | 66 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFADDR, arg); |
fd | 68 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFADDR, arg); |
fd | 70 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFDSTADDR, arg); |
fd | 72 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFDSTADDR, arg); |
fd | 74 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFFLAGS, arg); |
fd | 76 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFFLAGS, arg); |
fd | 78 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMEM, arg); |
fd | 80 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMEM, arg); |
fd | 82 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFCONF, arg); |
fd | 84 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMTU, arg); |
fd | 86 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMTU, arg); |
fd | 89 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFBRDADDR, arg); |
fd | 91 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFBRDADDR, arg); |
fd | 93 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFNETMASK, arg); |
fd | 95 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFNETMASK, arg); |
fd | 97 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGIFMETRIC, arg); |
fd | 99 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSIFMETRIC, arg); |
fd | 102 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCSARP, arg); |
fd | 104 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGARP, arg); |
fd | 106 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCGARP, arg); |
fd | 118 | arch/sparc/kernel/sunos_ioctl.c | return sys_ioctl(fd, SIOCADDMULTI, arg); |
fd | 120 | 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 | 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 | 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 | 63 | arch/sparc/kernel/sys_sunos.c | unsigned long fd, unsigned long off) |
fd | 74 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 373 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdents(unsigned int fd, void * dirent, int cnt) |
fd | 380 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 442 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdirentries(unsigned int fd, void * dirent, int cnt, unsigned int *basep) |
fd | 449 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 535 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_fpathconf(int fd, int name) |
fd | 617 | arch/sparc/kernel/sys_sunos.c | extern asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen); |
fd | 619 | arch/sparc/kernel/sys_sunos.c | extern asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen); |
fd | 627 | arch/sparc/kernel/sys_sunos.c | sunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr) |
fd | 637 | arch/sparc/kernel/sys_sunos.c | file = current->files->fd [fd]; |
fd | 709 | arch/sparc/kernel/sys_sunos.c | linux_nfs_mount.fd = server_fd; |
fd | 246 | 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 | 1536 | drivers/sound/configure.c | int fd; |
fd | 1541 | drivers/sound/configure.c | if ((fd = open (path, 0)) > 0) |
fd | 1549 | drivers/sound/configure.c | count = read (fd, &c, 1); |
fd | 1560 | 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 | 259 | fs/buffer.c | asmlinkage int sys_fsync(unsigned int fd) |
fd | 264 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 273 | fs/buffer.c | asmlinkage int sys_fdatasync(unsigned int fd) |
fd | 278 | 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 | 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 | 153 | fs/locks.c | asmlinkage int sys_flock(unsigned int fd, unsigned int cmd) |
fd | 158 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 173 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
fd | 180 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 216 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
fd | 227 | 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 | 92 | fs/nfs/inode.c | unsigned int fd; |
fd | 104 | fs/nfs/inode.c | fd = data->fd; |
fd | 109 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
fd | 490 | fs/nfs/nfsroot.c | static int root_open_udp_sock(int *fd, struct socket **sock) |
fd | 495 | fs/nfs/nfsroot.c | *fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); |
fd | 496 | fs/nfs/nfsroot.c | if (*fd >= 0) { |
fd | 497 | fs/nfs/nfsroot.c | file = current->files->fd[*fd]; |
fd | 1408 | fs/nfs/nfsroot.c | if ((nfs_data.fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { |
fd | 1412 | fs/nfs/nfsroot.c | nfs_file = current->files->fd[nfs_data.fd]; |
fd | 1435 | fs/nfs/nfsroot.c | sys_close(nfs_data.fd); |
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 | 272 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 278 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 313 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 319 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 362 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 369 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 483 | fs/open.c | int flag,error,fd; |
fd | 521 | fs/open.c | for(fd = 0; fd < NR_OPEN && fd < current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) { |
fd | 522 | fs/open.c | if (!current->files->fd[fd]) { |
fd | 523 | fs/open.c | current->files->fd[fd] = f; |
fd | 524 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 525 | fs/open.c | return fd; |
fd | 592 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 596 | fs/open.c | if (fd >= NR_OPEN) |
fd | 598 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 599 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 601 | fs/open.c | current->files->fd[fd] = NULL; |
fd | 400 | fs/pipe.c | int do_pipe(int *fd) |
fd | 421 | fs/pipe.c | if (!current->files->fd[i]) { |
fd | 422 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
fd | 430 | 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 | 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 | 256 | fs/read_write.c | asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count) |
fd | 261 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
fd | 268 | fs/read_write.c | asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count) |
fd | 274 | 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 | 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 | 415 | include/asm-sparc/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 416 | include/asm-sparc/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 419 | include/asm-sparc/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 37 | include/linux/binfmts.h | int (*load_shlib)(int fd); |
fd | 36 | include/linux/nfs_mount.h | int fd; /* 1 */ |
fd | 121 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
fd | 386 | include/linux/sched.h | extern inline struct file *file_from_fd(const unsigned int fd) |
fd | 389 | include/linux/sched.h | if (fd >= NR_OPEN) |
fd | 392 | 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 | 374 | kernel/exit.c | struct file * filp = files->fd[i]; |
fd | 377 | kernel/exit.c | files->fd[i] = NULL; |
fd | 173 | kernel/fork.c | struct file * f = current->files->fd[i]; |
fd | 176 | kernel/fork.c | tsk->files->fd[i] = f; |
fd | 170 | net/socket.c | int fd; |
fd | 181 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 182 | net/socket.c | if (!current->files->fd[fd]) |
fd | 184 | net/socket.c | if (fd == NR_OPEN) |
fd | 190 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 191 | net/socket.c | current->files->fd[fd] = file; |
fd | 200 | net/socket.c | return(fd); |
fd | 220 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 225 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 532 | net/socket.c | int i, fd; |
fd | 589 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 595 | net/socket.c | sock->file=current->files->fd[fd]; |
fd | 597 | net/socket.c | return(fd); |
fd | 669 | net/socket.c | asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 676 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 679 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 699 | net/socket.c | asmlinkage int sys_listen(int fd, int backlog) |
fd | 704 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 706 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 730 | net/socket.c | asmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 738 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 740 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 772 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 777 | net/socket.c | sock->file=current->files->fd[fd]; |
fd | 784 | net/socket.c | return(fd); |
fd | 793 | net/socket.c | asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 801 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 803 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 844 | net/socket.c | asmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 851 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 853 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 869 | net/socket.c | asmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 876 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 878 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 894 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
fd | 902 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 904 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 928 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 938 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 940 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 968 | net/socket.c | asmlinkage int sys_recv(int fd, void * ubuf, int size, unsigned flags) |
fd | 976 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 979 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1006 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * ubuf, int size, unsigned flags, |
fd | 1016 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1018 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1052 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1057 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1059 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1070 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1075 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1077 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1090 | net/socket.c | asmlinkage int sys_shutdown(int fd, int how) |
fd | 1095 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1097 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1107 | net/socket.c | asmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1117 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1119 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1148 | net/socket.c | asmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1160 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1162 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 737 | net/unix/af_unix.c | int fd; |
fd | 739 | net/unix/af_unix.c | fd = fdp[i]; |
fd | 741 | net/unix/af_unix.c | printk("testing fd %d\n", fd); |
fd | 743 | net/unix/af_unix.c | if(fd < 0|| fd >=NR_OPEN) |
fd | 745 | net/unix/af_unix.c | if(current->files->fd[fd]==NULL) |
fd | 752 | net/unix/af_unix.c | fp[i]=current->files->fd[fdp[i]]; |
fd | 787 | net/unix/af_unix.c | if(current->files->fd[i]) |
fd | 833 | 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) { |