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]))
fd1735arch/m68k/console/fbcon.c#define REFCOUNT(fd)  (((int *)(fd))[-1])
fd27arch/m68k/kernel/sys_m68k.cint fd[2];
fd33arch/m68k/kernel/sys_m68k.cerror = do_pipe(fd);
fd36arch/m68k/kernel/sys_m68k.cput_user(fd[0],0+fildes);
fd37arch/m68k/kernel/sys_m68k.cput_user(fd[1],1+fildes);
fd59arch/m68k/kernel/sys_m68k.cunsigned long fd = get_user(buffer+4);
fd60arch/m68k/kernel/sys_m68k.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);
fd32arch/sparc/kernel/sunos_ioctl.casmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg)
fd37arch/sparc/kernel/sunos_ioctl.cif (fd >= NR_OPEN || !(filp = current->files->fd [fd]))
fd50arch/sparc/kernel/sunos_ioctl.cfoo = sys_ioctl(fd, cmd, (int) &ntty);
fd63arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCADDRT, arg);
fd65arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCDELRT, arg);
fd67arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFADDR, arg);
fd69arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFADDR, arg);
fd71arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFDSTADDR, arg);
fd73arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFDSTADDR, arg);
fd75arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFFLAGS, arg);
fd77arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFFLAGS, arg);
fd79arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFMEM, arg);
fd81arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFMEM, arg);
fd83arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFCONF, arg);
fd85arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFMTU, arg);
fd87arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFMTU, arg);
fd90arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFBRDADDR, arg);
fd92arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFBRDADDR, arg);
fd94arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFNETMASK, arg);
fd96arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFNETMASK, arg);
fd98arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGIFMETRIC, arg);
fd100arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSIFMETRIC, arg);
fd103arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCSARP, arg);
fd105arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGARP, arg);
fd107arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCGARP, arg);
fd119arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCADDMULTI, arg);
fd121arch/sparc/kernel/sunos_ioctl.creturn sys_ioctl(fd, SIOCDELMULTI, arg);
fd151arch/sparc/kernel/sunos_ioctl.cfoo = sys_ioctl(fd, cmd, arg);
fd170arch/sparc/kernel/sunos_ioctl.cfoo = sys_ioctl(fd, cmd, arg);
fd187arch/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_I1] = fd[1];
fd42arch/sparc/kernel/sys_sparc.creturn fd[0];
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];
fd188arch/sparc/kernel/sys_sparc.cunsigned long prot, unsigned long flags, unsigned long fd,
fd195arch/sparc/kernel/sys_sparc.cif (fd >= NR_OPEN || !(file = current->files->fd[fd])){
fd76arch/sparc/kernel/sys_sunos.cunsigned long fd, unsigned long off)
fd87arch/sparc/kernel/sys_sunos.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd388arch/sparc/kernel/sys_sunos.casmlinkage int sunos_getdents(unsigned int fd, void * dirent, int cnt)
fd395arch/sparc/kernel/sys_sunos.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd457arch/sparc/kernel/sys_sunos.casmlinkage int sunos_getdirentries(unsigned int fd, void * dirent, int cnt, unsigned int *basep)
fd464arch/sparc/kernel/sys_sunos.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd550arch/sparc/kernel/sys_sunos.casmlinkage int sunos_fpathconf(int fd, int name)
fd632arch/sparc/kernel/sys_sunos.cextern asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen);
fd634arch/sparc/kernel/sys_sunos.cextern asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen);
fd642arch/sparc/kernel/sys_sunos.csunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr)
fd652arch/sparc/kernel/sys_sunos.cfile = current->files->fd [fd];
fd724arch/sparc/kernel/sys_sunos.clinux_nfs_mount.fd       = server_fd;
fd912arch/sparc/kernel/sys_sunos.cint fd;
fd951arch/sparc/kernel/sys_sunos.ci = fdpnt->fd;
fd953arch/sparc/kernel/sys_sunos.cif (!current->files->fd[i] || !current->files->fd[i]->f_inode)
fd959arch/sparc/kernel/sys_sunos.ci = fdpnt->fd;
fd962arch/sparc/kernel/sys_sunos.cif (!current->files->fd[i] || !current->files->fd[i]->f_inode) continue;
fd965arch/sparc/kernel/sys_sunos.c&& check(SEL_IN, wait, current->files->fd[i])) {
fd976arch/sparc/kernel/sys_sunos.ccheck(SEL_OUT, wait, current->files->fd[i])) {
fd982arch/sparc/kernel/sys_sunos.cif (check(SEL_EX, wait, current->files->fd[i])) {
fd248drivers/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]);
fd1569drivers/sound/configure.cint             fd;
fd1574drivers/sound/configure.cif ((fd = open (path, 0)) > 0)
fd1582drivers/sound/configure.ccount = read (fd, &c, 1);
fd1593drivers/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);
fd260fs/buffer.casmlinkage int sys_fsync(unsigned int fd)
fd265fs/buffer.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd274fs/buffer.casmlinkage int sys_fdatasync(unsigned int fd)
fd279fs/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);
fd18fs/fcntl.cstatic inline int dupfd(unsigned int fd, unsigned int arg)
fd20fs/fcntl.cif (fd >= NR_OPEN || !current->files->fd[fd])
fd25fs/fcntl.cif (current->files->fd[arg])
fd32fs/fcntl.c(current->files->fd[arg] = current->files->fd[fd])->f_count++;
fd38fs/fcntl.cif (oldfd >= NR_OPEN || !current->files->fd[oldfd])
fd54fs/fcntl.casmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd60fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd64fs/fcntl.creturn dupfd(fd,arg);
fd66fs/fcntl.creturn FD_ISSET(fd, &current->files->close_on_exec);
fd69fs/fcntl.cFD_SET(fd, &current->files->close_on_exec);
fd71fs/fcntl.cFD_CLR(fd, &current->files->close_on_exec);
fd97fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
fd99fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd101fs/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);
fd163fs/locks.casmlinkage int sys_flock(unsigned int fd, unsigned int cmd)
fd168fs/locks.cif ((fd >= NR_OPEN) || !(filp = current->files->fd[fd]))
fd183fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
fd190fs/locks.cif ((fd >= NR_OPEN) || !(filp = current->files->fd[fd]))
fd227fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
fd239fs/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)
fd107fs/nfs/inode.cunsigned int fd;
fd119fs/nfs/inode.cfd = data->fd;
fd124fs/nfs/inode.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd])) {
fd506fs/nfs/nfsroot.cstatic int root_open_udp_sock(int *fd, struct socket **sock)
fd511fs/nfs/nfsroot.c*fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
fd512fs/nfs/nfsroot.cif (*fd >= 0) {
fd513fs/nfs/nfsroot.cfile = current->files->fd[*fd];
fd1435fs/nfs/nfsroot.cif ((nfs_data.fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
fd1439fs/nfs/nfsroot.cnfs_file = current->files->fd[nfs_data.fd];
fd1462fs/nfs/nfsroot.csys_close(nfs_data.fd);
fd43fs/open.casmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf)
fd52fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd121fs/open.casmlinkage int sys_ftruncate(unsigned int fd, unsigned long length)
fd127fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd281fs/open.casmlinkage int sys_fchdir(unsigned int fd)
fd287fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd322fs/open.casmlinkage int sys_fchmod(unsigned int fd, mode_t mode)
fd328fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd371fs/open.casmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group)
fd378fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd500fs/open.cint flag,error,fd;
fd538fs/open.cfor(fd = 0; fd < NR_OPEN && fd < current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) {
fd539fs/open.cif (!current->files->fd[fd]) {
fd540fs/open.ccurrent->files->fd[fd] = f;
fd541fs/open.cFD_CLR(fd,&current->files->close_on_exec);
fd542fs/open.creturn fd;
fd609fs/open.casmlinkage int sys_close(unsigned int fd)
fd613fs/open.cif (fd >= NR_OPEN)
fd615fs/open.cFD_CLR(fd, &current->files->close_on_exec);
fd616fs/open.cif (!(filp = current->files->fd[fd]))
fd618fs/open.ccurrent->files->fd[fd] = NULL;
fd411fs/pipe.cint do_pipe(int *fd)
fd433fs/pipe.cif (!current->files->fd[i]) {
fd434fs/pipe.ccurrent->files->fd[ fd[j]=i ] = f[j];
fd443fs/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))
fd126fs/read_write.casmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count)
fd133fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd272fs/read_write.casmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count)
fd277fs/read_write.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode))
fd284fs/read_write.casmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count)
fd290fs/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))
fd47include/asm-alpha/posix_types.hstatic __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp)
fd49include/asm-alpha/posix_types.hunsigned long _tmp = fd / __NFDBITS;
fd50include/asm-alpha/posix_types.hunsigned long _rem = fd % __NFDBITS;
fd55include/asm-alpha/posix_types.hstatic __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp)
fd57include/asm-alpha/posix_types.hunsigned long _tmp = fd / __NFDBITS;
fd58include/asm-alpha/posix_types.hunsigned long _rem = fd % __NFDBITS;
fd63include/asm-alpha/posix_types.hstatic __inline__ int __FD_ISSET(unsigned long fd, __kernel_fd_set *p)
fd65include/asm-alpha/posix_types.hunsigned long _tmp = fd / __NFDBITS;
fd66include/asm-alpha/posix_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);
fd31include/asm-i386/posix_types.h#define __FD_SET(fd,fdsetp) \
fd33include/asm-i386/posix_types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd36include/asm-i386/posix_types.h#define __FD_CLR(fd,fdsetp) \
fd38include/asm-i386/posix_types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd41include/asm-i386/posix_types.h#define __FD_ISSET(fd,fdsetp) (__extension__ ({ \
fd44include/asm-i386/posix_types.h:"=q" (__result) :"r" ((int) (fd)), \
fd278include/asm-i386/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd279include/asm-i386/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd282include/asm-i386/unistd.hstatic inline _syscall1(int,close,int,fd)
fd420include/asm-m68k/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd421include/asm-m68k/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd424include/asm-m68k/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)
fd38include/asm-sparc/posix_types.hstatic __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp)
fd40include/asm-sparc/posix_types.hunsigned long _tmp = fd / __NFDBITS;
fd41include/asm-sparc/posix_types.hunsigned long _rem = fd % __NFDBITS;
fd46include/asm-sparc/posix_types.hstatic __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp)
fd48include/asm-sparc/posix_types.hunsigned long _tmp = fd / __NFDBITS;
fd49include/asm-sparc/posix_types.hunsigned long _rem = fd % __NFDBITS;
fd54include/asm-sparc/posix_types.hstatic __inline__ int __FD_ISSET(unsigned long fd, __kernel_fd_set *p)
fd56include/asm-sparc/posix_types.hunsigned long _tmp = fd / __NFDBITS;
fd57include/asm-sparc/posix_types.hunsigned long _rem = fd % __NFDBITS;
fd432include/asm-sparc/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd433include/asm-sparc/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd436include/asm-sparc/unistd.hstatic inline _syscall1(int,close,int,fd)
fd37include/linux/binfmts.hint (*load_shlib)(int fd);
fd353include/linux/fs.hextern int fcntl_getlk(unsigned int fd, struct flock *l);
fd354include/linux/fs.hextern int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l);
fd36include/linux/nfs_mount.hint fd;        /* 1 */
fd122include/linux/sched.hstruct file * fd[NR_OPEN];
fd392include/linux/sched.hextern inline struct file *file_from_fd(const unsigned int fd)
fd395include/linux/sched.hif (fd >= NR_OPEN)
fd398include/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)
fd399kernel/exit.cstruct file * filp = files->fd[i];
fd402kernel/exit.cfiles->fd[i] = NULL;
fd174kernel/fork.cstruct file * f = current->files->fd[i];
fd177kernel/fork.ctsk->files->fd[i] = f;
fd174net/socket.cint fd;
fd185net/socket.cfor (fd = 0; fd < NR_OPEN; ++fd)
fd186net/socket.cif (!current->files->fd[fd]) 
fd188net/socket.cif (fd == NR_OPEN) 
fd194net/socket.cFD_CLR(fd, &current->files->close_on_exec);
fd195net/socket.ccurrent->files->fd[fd] = file;
fd204net/socket.creturn(fd);
fd224net/socket.cextern __inline struct socket *sockfd_lookup(int fd, struct file **pfile)
fd229net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) 
fd536net/socket.cint i, fd;
fd593net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
fd599net/socket.csock->file=current->files->fd[fd];
fd601net/socket.creturn(fd);
fd673net/socket.casmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen)
fd680net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd683net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd703net/socket.casmlinkage int sys_listen(int fd, int backlog)
fd708net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd710net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd734net/socket.casmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
fd742net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd744net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
fd776net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
fd781net/socket.csock->file=current->files->fd[fd];
fd788net/socket.creturn(fd);
fd797net/socket.casmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen)
fd805net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL)
fd807net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
fd848net/socket.casmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd855net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd857net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd873net/socket.casmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd880net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd882net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd898net/socket.casmlinkage int sys_send(int fd, void * buff, int len, unsigned flags)
fd906net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd908net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd932net/socket.casmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags,
fd942net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd944net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd972net/socket.casmlinkage int sys_recv(int fd, void * ubuf, int size, unsigned flags)
fd980net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd983net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1010net/socket.casmlinkage int sys_recvfrom(int fd, void * ubuf, int size, unsigned flags,
fd1020net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1022net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1056net/socket.casmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen)
fd1061net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1063net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1074net/socket.casmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
fd1079net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1081net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1094net/socket.casmlinkage int sys_shutdown(int fd, int how)
fd1099net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1101net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1111net/socket.casmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags)
fd1121net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1123net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1153net/socket.casmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags)
fd1171net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1173net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd719net/unix/af_unix.cint fd;
fd721net/unix/af_unix.cfd = fdp[i];  
fd723net/unix/af_unix.cprintk("testing  fd %d\n", fd);
fd725net/unix/af_unix.cif(fd < 0|| fd >=NR_OPEN)
fd727net/unix/af_unix.cif(current->files->fd[fd]==NULL)
fd734net/unix/af_unix.cfp[i]=current->files->fd[fdp[i]];
fd769net/unix/af_unix.cif(current->files->fd[i])
fd815net/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) {