taglinefilesource code
fd42arch/alpha/boot/tools/build.cint fd, i;
fd91arch/alpha/boot/tools/build.cfd = open(infile, O_RDONLY);
fd92arch/alpha/boot/tools/build.cif (fd < 0) {
fd96arch/alpha/boot/tools/build.cif (read(fd, &fhdr, sizeof(struct filehdr)) != sizeof(struct filehdr))
fd102arch/alpha/boot/tools/build.cif (read(fd, &ahdr, sizeof(struct aouthdr)) != sizeof(struct aouthdr))
fd105arch/alpha/boot/tools/build.cif (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr))
fd131arch/alpha/boot/tools/build.cif (lseek(fd, offset, SEEK_SET) != offset)
fd138arch/alpha/boot/tools/build.cif (read(fd, buffer, num) != num)
fd88arch/alpha/boot/tools/mkbb.cint      dev, fd;
fd106arch/alpha/boot/tools/mkbb.cfd = open(argv[2], O_RDONLY);
fd107arch/alpha/boot/tools/mkbb.cif(fd < 0) {
fd114arch/alpha/boot/tools/mkbb.cnread = read(fd, &bootloader_image, sizeof(bootblock));
fd146arch/alpha/boot/tools/mkbb.cclose(fd);
fd97arch/alpha/kernel/osf_sys.casmlinkage int osf_getdirentries(unsigned int fd, struct osf_dirent * dirent,
fd104arch/alpha/kernel/osf_sys.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd169arch/alpha/kernel/osf_sys.cunsigned long prot, unsigned long flags, unsigned long fd,
fd177arch/alpha/kernel/osf_sys.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd205arch/alpha/kernel/osf_sys.casmlinkage int osf_fstatfs(unsigned long fd, struct statfs * buffer, unsigned long bufsiz)
fd216arch/alpha/kernel/osf_sys.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd464arch/alpha/kernel/osf_sys.cint fd[2];
fd467arch/alpha/kernel/osf_sys.cerror = do_pipe(fd);
fd470arch/alpha/kernel/osf_sys.c(&regs)->r20 = fd[1];
fd471arch/alpha/kernel/osf_sys.creturn fd[0];
fd544arch/alpha/kernel/osf_sys.clong fd;
fd557arch/alpha/kernel/osf_sys.clong fd;
fd569arch/alpha/kernel/osf_sys.clong fd;
fd26arch/i386/kernel/sys_i386.cint fd[2];
fd32arch/i386/kernel/sys_i386.cerror = do_pipe(fd);
fd35arch/i386/kernel/sys_i386.cput_fs_long(fd[0],0+fildes);
fd36arch/i386/kernel/sys_i386.cput_fs_long(fd[1],1+fildes);
fd57arch/i386/kernel/sys_i386.cunsigned long fd = get_user(buffer+4);
fd58arch/i386/kernel/sys_i386.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd28arch/mips/kernel/syscall.cint fd[2];
fd31arch/mips/kernel/syscall.cerror = do_pipe(fd);
fd34arch/mips/kernel/syscall.cregs->reg2 = fd[0];
fd35arch/mips/kernel/syscall.cregs->reg3 = fd[1];
fd40arch/mips/kernel/syscall.cint flags, int fd, off_t offset)
fd45arch/mips/kernel/syscall.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd19arch/ppc/boot/cortstrip.cint fd, fdo;
fd30arch/ppc/boot/cortstrip.cfd = open(argv[1], O_RDONLY);
fd31arch/ppc/boot/cortstrip.cif ( fd == -1 )
fd51arch/ppc/boot/cortstrip.ci = lseek(fd, skip, SEEK_SET);
fd58arch/ppc/boot/cortstrip.cwhile ( (n = read(fd, data, SIZE)) > 0 )
fd67arch/ppc/boot/cortstrip.cclose(fd);
fd14arch/ppc/kernel/cortstrip.cint fd, fdo;
fd25arch/ppc/kernel/cortstrip.cfd = open(argv[1], O_RDONLY);
fd26arch/ppc/kernel/cortstrip.cif ( fd == -1 )
fd42arch/ppc/kernel/cortstrip.ci = lseek(fd, skip, SEEK_SET);
fd49arch/ppc/kernel/cortstrip.cwhile ( (n = read(fd, data, SIZE)) > 0 )
fd58arch/ppc/kernel/cortstrip.cclose(fd);
fd15arch/ppc/kernel/mkboot.cint fd, fdo;
fd26arch/ppc/kernel/mkboot.cfd = open(argv[1], O_RDONLY);
fd27arch/ppc/kernel/mkboot.cif ( fd == -1 )
fd47arch/ppc/kernel/mkboot.ci = lseek(fd, skip, SEEK_SET);
fd54arch/ppc/kernel/mkboot.cwhile ( (n = read(fd, data, SIZE)) > 0 )
fd63arch/ppc/kernel/mkboot.cclose(fd);
fd31arch/sparc/kernel/sunos_ioctl.casmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg)
fd36arch/sparc/kernel/sunos_ioctl.cif (fd >= NR_OPEN || !(filp = current->files->fd [fd]))
fd49arch/sparc/kernel/sunos_ioctl.cfoo = sys_ioctl(fd, cmd, (int) &ntty);
fd62arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCADDRT, arg);
fd64arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCDELRT, arg);
fd66arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFADDR, arg);
fd68arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFADDR, arg);
fd70arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFDSTADDR, arg);
fd72arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFDSTADDR, arg);
fd74arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFFLAGS, arg);
fd76arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFFLAGS, arg);
fd78arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFMEM, arg);
fd80arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFMEM, arg);
fd82arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFCONF, arg);
fd84arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFMTU, arg);
fd86arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFMTU, arg);
fd89arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFBRDADDR, arg);
fd91arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFBRDADDR, arg);
fd93arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFNETMASK, arg);
fd95arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFNETMASK, arg);
fd97arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFMETRIC, arg);
fd99arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFMETRIC, arg);
fd102arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSARP, arg);
fd104arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGARP, arg);
fd106arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGARP, arg);
fd118arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCADDMULTI, arg);
fd120arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCDELMULTI, arg);
fd151arch/sparc/kernel/sunos_ioctl.cfoo = sys_ioctl(fd, cmd, arg);
fd34arch/sparc/kernel/sys_sparc.cint fd[2];
fd37arch/sparc/kernel/sys_sparc.cerror = do_pipe(fd);
fd41arch/sparc/kernel/sys_sparc.cregs->u_regs[UREG_I0] = fd[0];
fd42arch/sparc/kernel/sys_sparc.cregs->u_regs[UREG_I1] = fd[1];
fd47arch/sparc/kernel/sys_sparc.casmlinkage int quick_sys_write(unsigned int fd, char *buf, unsigned int count)
fd49arch/sparc/kernel/sys_sparc.cstruct file *file = current->files->fd[fd];
fd63arch/sparc/kernel/sys_sunos.cunsigned long fd, unsigned long off)
fd74arch/sparc/kernel/sys_sunos.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd373arch/sparc/kernel/sys_sunos.casmlinkage int sunos_getdents(unsigned int fd, void * dirent, int cnt)
fd380arch/sparc/kernel/sys_sunos.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd442arch/sparc/kernel/sys_sunos.casmlinkage int sunos_getdirentries(unsigned int fd, void * dirent, int cnt, unsigned int *basep)
fd449arch/sparc/kernel/sys_sunos.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd535arch/sparc/kernel/sys_sunos.casmlinkage int sunos_fpathconf(int fd, int name)
fd617arch/sparc/kernel/sys_sunos.cextern asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen);
fd619arch/sparc/kernel/sys_sunos.cextern asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen);
fd627arch/sparc/kernel/sys_sunos.csunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr)
fd637arch/sparc/kernel/sys_sunos.cfile = current->files->fd [fd];
fd709arch/sparc/kernel/sys_sunos.clinux_nfs_mount.fd       = server_fd;
fd243drivers/block/loop.cif (arg >= NR_OPEN || !(file = current->files->fd[arg]))
fd1647drivers/char/tty_io.cfilp = (*p)->files->fd[i];
fd1075drivers/net/wavelan.cfd_t    fd;
fd1094drivers/net/wavelan.cfd.fd_status = 0;
fd1095drivers/net/wavelan.cfd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0;
fd1096drivers/net/wavelan.cfd.fd_link_offset = rx_next;
fd1097drivers/net/wavelan.cfd.fd_rbd_offset = rx + sizeof(fd);
fd1098drivers/net/wavelan.cobram_write(ioaddr, rx, (unsigned char *)&fd, sizeof(fd));
fd1102drivers/net/wavelan.crbd.rbd_bufl = rx + sizeof(fd) + sizeof(rbd);
fd1105drivers/net/wavelan.cobram_write(ioaddr, rx + sizeof(fd), (unsigned char *)&rbd, sizeof(rbd));
fd1493drivers/net/wavelan.cfd_t    fd;
fd1499drivers/net/wavelan.cobram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd));
fd1501drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_C) != FD_STATUS_C)
fd1508drivers/net/wavelan.c(fd.fd_status & (FD_STATUS_B | FD_STATUS_OK))
fd1520drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_OK) != FD_STATUS_OK)
fd1524drivers/net/wavelan.cif ((fd.fd_status & (FD_STATUS_S6 | FD_STATUS_S7 | FD_STATUS_S8 | FD_STATUS_S9 | FD_STATUS_S10 | FD_STATUS_S11)) != 0)
fd1528drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S6) != 0)
fd1531drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S7) != 0)
fd1537drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S8) != 0)
fd1543drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S9) != 0)
fd1549drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S10) != 0)
fd1555drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S11) != 0)
fd1562drivers/net/wavelan.cif (fd.fd_rbd_offset == I82586NULL)
fd1566drivers/net/wavelan.cobram_read(ioaddr, fd.fd_rbd_offset, (unsigned char *)&rbd, sizeof(rbd));
fd1612drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]);
fd1617drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]);
fd1619drivers/net/wavelan.cprintk("%s: fd_length=%d\n", dev->name, fd.fd_length);
fd1685drivers/net/wavelan.cfd.fd_status = 0;
fd1686drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status));
fd1688drivers/net/wavelan.cfd.fd_command = FD_COMMAND_EL;
fd1689drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command));
fd1691drivers/net/wavelan.cfd.fd_command = 0;
fd1692drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command));
fd1695drivers/net/wavelan.clp->rx_head = fd.fd_link_offset;
fd588drivers/scsi/aic7xxx_asm.cint fd[2];
fd650drivers/scsi/aic7xxx_asm.cif (pipe(fd) < 0) {
fd660drivers/scsi/aic7xxx_asm.cclose(fd[1]);    /* Close write end */
fd661drivers/scsi/aic7xxx_asm.cif (fd[0] != STDIN_FILENO) {
fd662drivers/scsi/aic7xxx_asm.cif (dup2(fd[0], STDIN_FILENO) != STDIN_FILENO) {
fd666drivers/scsi/aic7xxx_asm.cclose(fd[0]);
fd708drivers/scsi/aic7xxx_asm.cclose(fd[0]);    /* Close Read end */
fd709drivers/scsi/aic7xxx_asm.cif (fd[1] != STDOUT_FILENO) {
fd710drivers/scsi/aic7xxx_asm.cif (dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO) {
fd714drivers/scsi/aic7xxx_asm.cclose(fd[1]);
fd1541drivers/sound/configure.cint             fd;
fd1546drivers/sound/configure.cif ((fd = open (path, 0)) > 0)
fd1554drivers/sound/configure.ccount = read (fd, &c, 1);
fd1565drivers/sound/configure.cclose (fd);
fd31fs/binfmt_aout.cstatic int load_aout_library(int fd);
fd261fs/binfmt_aout.cint fd;
fd334fs/binfmt_aout.cfd = open_inode(bprm->inode, O_RDONLY);
fd336fs/binfmt_aout.cif (fd < 0)
fd337fs/binfmt_aout.creturn fd;
fd338fs/binfmt_aout.cfile = current->files->fd[fd];
fd340fs/binfmt_aout.csys_close(fd);
fd355fs/binfmt_aout.csys_close(fd);
fd364fs/binfmt_aout.csys_close(fd);
fd409fs/binfmt_aout.cdo_load_aout_library(int fd)
fd419fs/binfmt_aout.cfile = current->files->fd[fd];
fd477fs/binfmt_aout.cload_aout_library(int fd)
fd482fs/binfmt_aout.cretval = do_load_aout_library(fd);
fd41fs/binfmt_elf.cstatic int load_elf_library(int fd);
fd213fs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd404fs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd705fs/binfmt_elf.cdo_load_elf_library(int fd){
fd718fs/binfmt_elf.cfile = current->files->fd[fd];
fd800fs/binfmt_elf.cstatic int load_elf_library(int fd)
fd805fs/binfmt_elf.cretval = do_load_elf_library(fd);
fd259fs/buffer.casmlinkage int sys_fsync(unsigned int fd)
fd264fs/buffer.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd273fs/buffer.casmlinkage int sys_fdatasync(unsigned int fd)
fd278fs/buffer.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd113fs/exec.cint error, fd;
fd121fs/exec.cfd = 0;
fd122fs/exec.cfpp = current->files->fd;
fd126fs/exec.cif (++fd >= NR_OPEN) {
fd148fs/exec.creturn fd;
fd159fs/exec.cint fd, retval;
fd163fs/exec.cfd = sys_open(library, 0, 0);
fd164fs/exec.cif (fd < 0)
fd165fs/exec.creturn fd;
fd166fs/exec.cfile = current->files->fd[fd];
fd173fs/exec.cretval = fn(fd);
fd178fs/exec.csys_close(fd);
fd20fs/fcntl.cstatic inline int dupfd(unsigned int fd, unsigned int arg)
fd22fs/fcntl.cif (fd >= NR_OPEN || !current->files->fd[fd])
fd27fs/fcntl.cif (current->files->fd[arg])
fd34fs/fcntl.c(current->files->fd[arg] = current->files->fd[fd])->f_count++;
fd40fs/fcntl.cif (oldfd >= NR_OPEN || !current->files->fd[oldfd])
fd56fs/fcntl.casmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd62fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd66fs/fcntl.creturn dupfd(fd,arg);
fd68fs/fcntl.creturn FD_ISSET(fd, &current->files->close_on_exec);
fd71fs/fcntl.cFD_SET(fd, &current->files->close_on_exec);
fd73fs/fcntl.cFD_CLR(fd, &current->files->close_on_exec);
fd95fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
fd97fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd99fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd58fs/ioctl.casmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd63fs/ioctl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd67fs/ioctl.cFD_SET(fd, &current->files->close_on_exec);
fd71fs/ioctl.cFD_CLR(fd, &current->files->close_on_exec);
fd153fs/locks.casmlinkage int sys_flock(unsigned int fd, unsigned int cmd)
fd158fs/locks.cif ((fd >= NR_OPEN) || !(filp = current->files->fd[fd]))
fd173fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
fd180fs/locks.cif ((fd >= NR_OPEN) || !(filp = current->files->fd[fd]))
fd216fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
fd227fs/locks.cif ((fd >= NR_OPEN) || !(filp = current->files->fd[fd]))
fd185fs/ncpfs/inode.c|| ((ncp_filp = current->files->fd[data->ncp_fd]) == NULL)
fd194fs/ncpfs/inode.c|| ((wdog_filp = current->files->fd[data->wdog_fd]) == NULL)
fd203fs/ncpfs/inode.c|| ((msg_filp = current->files->fd[data->message_fd]) == NULL)
fd92fs/nfs/inode.cunsigned int fd;
fd104fs/nfs/inode.cfd = data->fd;
fd109fs/nfs/inode.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd])) {
fd476fs/nfs/nfsroot.cstatic int root_open_udp_sock(int *fd, struct socket **sock)
fd481fs/nfs/nfsroot.c*fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
fd482fs/nfs/nfsroot.cif (*fd >= 0) {
fd483fs/nfs/nfsroot.cfile = current->files->fd[*fd];
fd1372fs/nfs/nfsroot.cif ((nfs_data.fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
fd1376fs/nfs/nfsroot.cnfs_file = current->files->fd[nfs_data.fd];
fd1392fs/nfs/nfsroot.csys_close(nfs_data.fd);
fd45fs/open.casmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf)
fd54fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd118fs/open.casmlinkage int sys_ftruncate(unsigned int fd, unsigned long length)
fd123fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd272fs/open.casmlinkage int sys_fchdir(unsigned int fd)
fd278fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd313fs/open.casmlinkage int sys_fchmod(unsigned int fd, mode_t mode)
fd319fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd362fs/open.casmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group)
fd369fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd483fs/open.cint flag,error,fd;
fd521fs/open.cfor(fd = 0; fd < NR_OPEN && fd < current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) {
fd522fs/open.cif (!current->files->fd[fd]) {
fd523fs/open.ccurrent->files->fd[fd] = f;
fd524fs/open.cFD_CLR(fd,&current->files->close_on_exec);
fd525fs/open.creturn fd;
fd592fs/open.casmlinkage int sys_close(unsigned int fd)
fd596fs/open.cif (fd >= NR_OPEN)
fd598fs/open.cFD_CLR(fd, &current->files->close_on_exec);
fd599fs/open.cif (!(filp = current->files->fd[fd]))
fd601fs/open.ccurrent->files->fd[fd] = NULL;
fd400fs/pipe.cint do_pipe(int *fd)
fd421fs/pipe.cif (!current->files->fd[i]) {
fd422fs/pipe.ccurrent->files->fd[ fd[j]=i ] = f[j];
fd430fs/pipe.ccurrent->files->fd[fd[0]] = NULL;
fd58fs/proc/fd.cunsigned int ino, pid, fd, c;
fd88fs/proc/fd.cfd = 0;
fd93fs/proc/fd.cfd = 0xfffff;
fd96fs/proc/fd.cfd *= 10;
fd97fs/proc/fd.cfd += c;
fd98fs/proc/fd.cif (fd & 0xffff0000) {
fd99fs/proc/fd.cfd = 0xfffff;
fd109fs/proc/fd.cif (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd112fs/proc/fd.cino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd;
fd127fs/proc/fd.cunsigned int fd, pid, ino;
fd138fs/proc/fd.cfor (fd = filp->f_pos; fd < 2; fd++, filp->f_pos++) {
fd140fs/proc/fd.cif (fd)
fd142fs/proc/fd.cif (filldir(dirent, "..", fd+1, fd, ino) < 0)
fd154fs/proc/fd.cfor (fd -= 2 ; fd < NR_OPEN; fd++, filp->f_pos++) {
fd157fs/proc/fd.cif (!p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd161fs/proc/fd.ci = fd;
fd168fs/proc/fd.cino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd;
fd169fs/proc/fd.cif (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0)
fd239fs/proc/inode.cif (ino >= NR_OPEN || !p->files->fd[ino])
fd244fs/proc/inode.cif (p->files->fd[ino]->f_mode & 1)
fd246fs/proc/inode.cif (p->files->fd[ino]->f_mode & 2)
fd124fs/proc/link.cif (ino < NR_OPEN && p->files->fd[ino]) {
fd125fs/proc/link.cnew_inode = p->files->fd[ino]->f_inode;
fd18fs/read_write.casmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin)
fd23fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd54fs/read_write.casmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high,
fd63fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd103fs/read_write.casmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count)
fd109fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd123fs/read_write.casmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count)
fd130fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd256fs/read_write.casmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count)
fd261fs/read_write.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode))
fd268fs/read_write.casmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count)
fd274fs/read_write.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode))
fd56fs/readdir.casmlinkage int old_readdir(unsigned int fd, void * dirent, unsigned int count)
fd62fs/readdir.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd119fs/readdir.casmlinkage int sys_getdents(unsigned int fd, void * dirent, unsigned int count)
fd126fs/readdir.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd105fs/select.cif (!current->files->fd[i])
fd107fs/select.cif (!current->files->fd[i]->f_inode)
fd126fs/select.cif (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) {
fd131fs/select.cif (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) {
fd136fs/select.cif (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) {
fd178fs/smbfs/inode.cunsigned int fd;
fd188fs/smbfs/inode.cfd = data->fd;
fd194fs/smbfs/inode.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd])) {
fd189fs/stat.casmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf)
fd198fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd206fs/stat.casmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf)
fd215fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd103include/asm-alpha/types.hstatic __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp)
fd105include/asm-alpha/types.hunsigned long _tmp = fd / __NFDBITS;
fd106include/asm-alpha/types.hunsigned long _rem = fd % __NFDBITS;
fd111include/asm-alpha/types.hstatic __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp)
fd113include/asm-alpha/types.hunsigned long _tmp = fd / __NFDBITS;
fd114include/asm-alpha/types.hunsigned long _rem = fd % __NFDBITS;
fd119include/asm-alpha/types.hstatic __inline__ int __FD_ISSET(unsigned long fd, fd_set *p)
fd121include/asm-alpha/types.hunsigned long _tmp = fd / __NFDBITS;
fd122include/asm-alpha/types.hunsigned long _rem = fd % __NFDBITS;
fd246include/asm-alpha/unistd.hstatic inline int dup(int fd)
fd248include/asm-alpha/unistd.hreturn sys_dup(fd);
fd251include/asm-alpha/unistd.hstatic inline int close(int fd)
fd253include/asm-alpha/unistd.hreturn sys_close(fd);
fd265include/asm-alpha/unistd.hstatic inline int write(int fd, const char * buf, int nr)
fd267include/asm-alpha/unistd.hreturn sys_write(fd, buf, nr);
fd271include/asm-alpha/unistd.hstatic inline int read(int fd, char * buf, int nr)
fd273include/asm-alpha/unistd.hreturn sys_read(fd, buf, nr);
fd79include/asm-i386/types.h#define __FD_SET(fd,fdsetp) \
fd81include/asm-i386/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd84include/asm-i386/types.h#define __FD_CLR(fd,fdsetp) \
fd86include/asm-i386/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd89include/asm-i386/types.h#define __FD_ISSET(fd,fdsetp) (__extension__ ({ \
fd92include/asm-i386/types.h:"=q" (__result) :"r" ((int) (fd)), \
fd277include/asm-i386/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd278include/asm-i386/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd281include/asm-i386/unistd.hstatic inline _syscall1(int,close,int,fd)
fd109include/asm-mips/types.hstatic __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp)
fd111include/asm-mips/types.hunsigned long _tmp = fd / __NFDBITS;
fd112include/asm-mips/types.hunsigned long _rem = fd % __NFDBITS;
fd117include/asm-mips/types.hstatic __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp)
fd119include/asm-mips/types.hunsigned long _tmp = fd / __NFDBITS;
fd120include/asm-mips/types.hunsigned long _rem = fd % __NFDBITS;
fd125include/asm-mips/types.hstatic __inline__ int __FD_ISSET(unsigned long fd, fd_set *p)
fd127include/asm-mips/types.hunsigned long _tmp = fd / __NFDBITS;
fd128include/asm-mips/types.hunsigned long _rem = fd % __NFDBITS;
fd1302include/asm-mips/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd1303include/asm-mips/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd1306include/asm-mips/unistd.hstatic inline _syscall1(int,close,int,fd)
fd79include/asm-ppc/types.hstatic __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp)
fd81include/asm-ppc/types.hunsigned long _tmp = fd / __NFDBITS;
fd82include/asm-ppc/types.hunsigned long _rem = fd % __NFDBITS;
fd87include/asm-ppc/types.hstatic __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp)
fd89include/asm-ppc/types.hunsigned long _tmp = fd / __NFDBITS;
fd90include/asm-ppc/types.hunsigned long _rem = fd % __NFDBITS;
fd95include/asm-ppc/types.hstatic __inline__ int __FD_ISSET(unsigned long fd, fd_set *p)
fd97include/asm-ppc/types.hunsigned long _tmp = fd / __NFDBITS;
fd98include/asm-ppc/types.hunsigned long _rem = fd % __NFDBITS;
fd272include/asm-ppc/unistd.hstatic /*inline*/ _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd273include/asm-ppc/unistd.hstatic /*inline*/ _syscall1(int,dup,int,fd)
fd276include/asm-ppc/unistd.hstatic inline _syscall1(int,close,int,fd)
fd79include/asm-sparc/types.hstatic __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp)
fd81include/asm-sparc/types.hunsigned long _tmp = fd / __NFDBITS;
fd82include/asm-sparc/types.hunsigned long _rem = fd % __NFDBITS;
fd87include/asm-sparc/types.hstatic __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp)
fd89include/asm-sparc/types.hunsigned long _tmp = fd / __NFDBITS;
fd90include/asm-sparc/types.hunsigned long _rem = fd % __NFDBITS;
fd95include/asm-sparc/types.hstatic __inline__ int __FD_ISSET(unsigned long fd, fd_set *p)
fd97include/asm-sparc/types.hunsigned long _tmp = fd / __NFDBITS;
fd98include/asm-sparc/types.hunsigned long _rem = fd % __NFDBITS;
fd415include/asm-sparc/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd416include/asm-sparc/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd419include/asm-sparc/unistd.hstatic inline _syscall1(int,close,int,fd)
fd37include/linux/binfmts.hint (*load_shlib)(int fd);
fd36include/linux/nfs_mount.hint fd;        /* 1 */
fd121include/linux/sched.hstruct file * fd[NR_OPEN];
fd386include/linux/sched.hextern inline struct file *file_from_fd(const unsigned int fd)
fd389include/linux/sched.hif (fd >= NR_OPEN)
fd392include/linux/sched.hreturn current->files->fd[fd];
fd18include/linux/smb_mount.hunsigned int fd;
fd27include/linux/time.h#define FD_SET(fd,fdsetp)  __FD_SET(fd,fdsetp)
fd28include/linux/time.h#define FD_CLR(fd,fdsetp)  __FD_CLR(fd,fdsetp)
fd29include/linux/time.h#define FD_ISSET(fd,fdsetp)  __FD_ISSET(fd,fdsetp)
fd372kernel/exit.cstruct file * filp = files->fd[i];
fd375kernel/exit.cfiles->fd[i] = NULL;
fd173kernel/fork.cstruct file * f = current->files->fd[i];
fd176kernel/fork.ctsk->files->fd[i] = f;
fd164net/socket.cint fd;
fd175net/socket.cfor (fd = 0; fd < NR_OPEN; ++fd)
fd176net/socket.cif (!current->files->fd[fd]) 
fd178net/socket.cif (fd == NR_OPEN) 
fd184net/socket.cFD_CLR(fd, &current->files->close_on_exec);
fd185net/socket.ccurrent->files->fd[fd] = file;
fd194net/socket.creturn(fd);
fd214net/socket.cextern __inline struct socket *sockfd_lookup(int fd, struct file **pfile)
fd219net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) 
fd511net/socket.cint i, fd;
fd562net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
fd568net/socket.creturn(fd);
fd640net/socket.casmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen)
fd647net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd650net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd670net/socket.casmlinkage int sys_listen(int fd, int backlog)
fd675net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd677net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd701net/socket.casmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
fd709net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd711net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
fd743net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
fd754net/socket.creturn(fd);
fd763net/socket.casmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen)
fd771net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL)
fd773net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
fd814net/socket.casmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd821net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd823net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd839net/socket.casmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd846net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd848net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd864net/socket.casmlinkage int sys_send(int fd, void * buff, int len, unsigned flags)
fd872net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd874net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd898net/socket.casmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags,
fd908net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd910net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd938net/socket.casmlinkage int sys_recv(int fd, void * ubuf, int size, unsigned flags)
fd946net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd949net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd976net/socket.casmlinkage int sys_recvfrom(int fd, void * ubuf, int size, unsigned flags,
fd986net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd988net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1022net/socket.casmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen)
fd1027net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1029net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1040net/socket.casmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
fd1045net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1047net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1060net/socket.casmlinkage int sys_shutdown(int fd, int how)
fd1065net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1067net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1077net/socket.casmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags)
fd1087net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1089net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1118net/socket.casmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags)
fd1130net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1132net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd736net/unix/af_unix.cint fd;
fd738net/unix/af_unix.cfd = fdp[i];  
fd740net/unix/af_unix.cprintk("testing  fd %d\n", fd);
fd742net/unix/af_unix.cif(fd < 0|| fd >=NR_OPEN)
fd744net/unix/af_unix.cif(current->files->fd[fd]==NULL)
fd758net/unix/af_unix.cfp[i]=current->files->fd[fdp[i]];
fd793net/unix/af_unix.cif(current->files->fd[i])
fd839net/unix/af_unix.cufp=&current->files->fd[0];
fd30scripts/lxdialog/textbox.cstatic int hscroll = 0, fd, file_size, bytes_read;
fd48scripts/lxdialog/textbox.cif ((fd = open (file, O_RDONLY)) == -1) {
fd56scripts/lxdialog/textbox.cif ((file_size = lseek (fd, 0, SEEK_END)) == -1) {
fd62scripts/lxdialog/textbox.cif (lseek (fd, 0, SEEK_SET) == -1) {
fd73scripts/lxdialog/textbox.cif ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) {
fd132scripts/lxdialog/textbox.cclose (fd);
fd139scripts/lxdialog/textbox.cif ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) {
fd146scripts/lxdialog/textbox.cif (lseek (fd, 0, SEEK_SET) == -1) {
fd152scripts/lxdialog/textbox.cif ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) {
fd172scripts/lxdialog/textbox.cif ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) {
fd179scripts/lxdialog/textbox.cif (lseek (fd, -BUF_SIZE, SEEK_END) == -1) {
fd185scripts/lxdialog/textbox.cif ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) {
fd308scripts/lxdialog/textbox.cclose (fd);
fd329scripts/lxdialog/textbox.cif ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) {
fd344scripts/lxdialog/textbox.cif (lseek (fd, 0, SEEK_SET) == -1) {
fd352scripts/lxdialog/textbox.cif (lseek (fd, -(BUF_SIZE / 2 + bytes_read), SEEK_CUR)
fd361scripts/lxdialog/textbox.cif ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) {
fd383scripts/lxdialog/textbox.cif ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) {
fd393scripts/lxdialog/textbox.cif (lseek (fd, 0, SEEK_SET) == -1) {
fd401scripts/lxdialog/textbox.cif (lseek (fd, -(BUF_SIZE / 2 + bytes_read),
fd410scripts/lxdialog/textbox.cif ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) {
fd481scripts/lxdialog/textbox.cif ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) {
fd490scripts/lxdialog/textbox.cif ((bytes_read = read (fd, buf, BUF_SIZE)) == -1) {
fd527scripts/lxdialog/textbox.cif ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) {