taglinefilesource code
fd1491drivers/char/tty_io.cfilp = (*p)->files->fd[i];
fd355drivers/sound/configure.cint             fd;
fd360drivers/sound/configure.cif ((fd = open (path, 0)) > 0)
fd368drivers/sound/configure.ccount = read (fd, &c, 1);
fd379drivers/sound/configure.cclose (fd);
fd45fs/binfmt_elf.cstatic int load_elf_library(int fd);
fd202fs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd380fs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd655fs/binfmt_elf.cload_elf_library(int fd){
fd672fs/binfmt_elf.cfile = current->files->fd[fd];
fd678fs/binfmt_elf.cSYS(close)(fd);
fd747fs/binfmt_elf.cSYS(close)(fd);
fd241fs/buffer.casmlinkage int sys_fsync(unsigned int fd)
fd246fs/buffer.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd54fs/exec.cstatic int load_aout_library(int fd);
fd106fs/exec.cint error, fd;
fd114fs/exec.cfd = 0;
fd115fs/exec.cfpp = current->files->fd;
fd119fs/exec.cif (++fd > NR_OPEN)
fd139fs/exec.creturn fd;
fd292fs/exec.cint fd, retval;
fd296fs/exec.cfd = sys_open(library, 0, 0);
fd297fs/exec.cif (fd < 0)
fd298fs/exec.creturn fd;
fd299fs/exec.cfile = current->files->fd[fd];
fd306fs/exec.cretval = fn(fd);
fd311fs/exec.csys_close(fd);
fd791fs/exec.cint fd, error;
fd837fs/exec.cfd = open_inode(bprm->inode, O_RDONLY);
fd839fs/exec.cif (fd < 0)
fd840fs/exec.creturn fd;
fd841fs/exec.cfile = current->files->fd[fd];
fd843fs/exec.csys_close(fd);
fd858fs/exec.csys_close(fd);
fd867fs/exec.csys_close(fd);
fd901fs/exec.cstatic int load_aout_library(int fd)
fd911fs/exec.cfile = current->files->fd[fd];
fd20fs/fcntl.cstatic 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])
fd66fs/fcntl.casmlinkage int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd72fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd76fs/fcntl.creturn dupfd(fd,arg);
fd78fs/fcntl.creturn FD_ISSET(fd, &current->files->close_on_exec);
fd81fs/fcntl.cFD_SET(fd, &current->files->close_on_exec);
fd83fs/fcntl.cFD_CLR(fd, &current->files->close_on_exec);
fd105fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
fd107fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd109fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd57fs/ioctl.casmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd62fs/ioctl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd66fs/ioctl.cFD_SET(fd, &current->files->close_on_exec);
fd70fs/ioctl.cFD_CLR(fd, &current->files->close_on_exec);
fd28fs/locks.cunsigned int fd);
fd31fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd);
fd33fs/locks.cunsigned int fd);
fd59fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
fd66fs/locks.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd74fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
fd99fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
fd110fs/locks.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd116fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
fd173fs/locks.creturn lock_it(filp, &file_lock, fd);
fd211fs/locks.cunsigned int fd)
fd219fs/locks.cwhile ((fl = *before) && (task != fl->fl_owner || fd != fl->fl_fd))
fd224fs/locks.cwhile ((fl = *before) && task == fl->fl_owner && fd == fl->fl_fd)
fd234fs/locks.cunsigned int fd)
fd257fs/locks.cfl->fl_fd = fd;
fd307fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd)
fd431fs/locks.cif (! (caller = alloc_lock(before, caller, fd)))
fd441fs/locks.cif (! (left = alloc_lock(before, right, fd))) {
fd460fs/locks.cunsigned int     fd)
fd479fs/locks.ctmp->fl_fd = fd;    /* FIXME: needed? */
fd21fs/nfs/inode.cextern int close_fp(struct file *filp, unsigned int fd);
fd66fs/nfs/inode.cunsigned int fd;
fd75fs/nfs/inode.cfd = data->fd;
fd80fs/nfs/inode.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd])) {
fd22fs/open.cextern void fcntl_remove_locks(struct task_struct *, struct file *, unsigned int fd);
fd49fs/open.casmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf)
fd58fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd106fs/open.casmlinkage int sys_ftruncate(unsigned int fd, unsigned int length)
fd112fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd220fs/open.casmlinkage int sys_fchdir(unsigned int fd)
fd225fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd260fs/open.casmlinkage int sys_fchmod(unsigned int fd, mode_t mode)
fd266fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd305fs/open.casmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group)
fd311fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd404fs/open.cint flag,error,fd;
fd406fs/open.cfor(fd=0 ; fd<NR_OPEN ; fd++)
fd407fs/open.cif (!current->files->fd[fd])
fd409fs/open.cif (fd>=NR_OPEN)
fd411fs/open.cFD_CLR(fd,&current->files->close_on_exec);
fd415fs/open.ccurrent->files->fd[fd] = f;
fd426fs/open.ccurrent->files->fd[fd]=NULL;
fd443fs/open.ccurrent->files->fd[fd]=NULL;
fd448fs/open.creturn (fd);
fd469fs/open.cint close_fp(struct file *filp, unsigned int fd)
fd479fs/open.cfcntl_remove_locks(current, filp, fd);
fd493fs/open.casmlinkage int sys_close(unsigned int fd)
fd497fs/open.cif (fd >= NR_OPEN)
fd499fs/open.cFD_CLR(fd, &current->files->close_on_exec);
fd500fs/open.cif (!(filp = current->files->fd[fd]))
fd502fs/open.ccurrent->files->fd[fd] = NULL;
fd503fs/open.creturn (close_fp (filp, fd));
fd382fs/pipe.cint fd[2];
fd397fs/pipe.cif (!current->files->fd[i]) {
fd398fs/pipe.ccurrent->files->fd[ fd[j]=i ] = f[j];
fd402fs/pipe.ccurrent->files->fd[fd[0]]=NULL;
fd409fs/pipe.ccurrent->files->fd[fd[0]] = NULL;
fd410fs/pipe.ccurrent->files->fd[fd[1]] = NULL;
fd423fs/pipe.cput_fs_long(fd[0],0+fildes);
fd424fs/pipe.cput_fs_long(fd[1],1+fildes);
fd56fs/proc/fd.cunsigned int ino, pid, fd, c;
fd87fs/proc/fd.cfd = 0;
fd92fs/proc/fd.cfd = 0xfffff;
fd95fs/proc/fd.cfd *= 10;
fd96fs/proc/fd.cfd += c;
fd97fs/proc/fd.cif (fd & 0xffff0000) {
fd98fs/proc/fd.cfd = 0xfffff;
fd108fs/proc/fd.cif (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd111fs/proc/fd.cino = (pid << 16) + 0x100 + fd;
fd122fs/proc/fd.cunsigned int fd, pid, ino;
fd134fs/proc/fd.cfd = filp->f_pos;
fd136fs/proc/fd.cif (fd < 2) {
fd137fs/proc/fd.ci = j = fd+1;
fd138fs/proc/fd.cif (!fd)
fd139fs/proc/fd.cfd = inode->i_ino;
fd141fs/proc/fd.cfd = (inode->i_ino & 0xffff0000) | 2;
fd142fs/proc/fd.cput_fs_long(fd, &dirent->d_ino);
fd149fs/proc/fd.cfd -= 2;
fd155fs/proc/fd.cif (fd >= NR_OPEN)
fd158fs/proc/fd.cif (!p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd163fs/proc/fd.cwhile (fd >= j) {
fd168fs/proc/fd.cino = (pid << 16) + 0x100 + fd;
fd174fs/proc/fd.cput_fs_byte('0'+(fd % 10), i+dirent->d_name);
fd175fs/proc/fd.cfd /= 10;
fd174fs/proc/inode.cif (ino >= NR_OPEN || !p->files->fd[ino])
fd179fs/proc/inode.cif (p->files->fd[ino]->f_mode & 1)
fd181fs/proc/inode.cif (p->files->fd[ino]->f_mode & 2)
fd68fs/proc/link.cint  i, fd;
fd72fs/proc/link.cfor(fd=0 ; fd<NR_OPEN ; fd++)
fd73fs/proc/link.cif (current->files->fd[fd] == f)
fd75fs/proc/link.cif (fd>=NR_OPEN)
fd87fs/proc/link.c((ino >> 8) != 1) || !(new_f = p->files->fd[ino & 0x0ff]))
fd94fs/proc/link.ccurrent->files->fd[fd] = new_f;
fd150fs/proc/link.cif (ino < NR_OPEN && p->files->fd[ino]) {
fd157fs/proc/link.cnew_inode = p->files->fd[ino]->f_inode;
fd25fs/read_write.casmlinkage int sys_readdir(unsigned int fd, struct dirent * dirent, unsigned int count)
fd31fs/read_write.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]) ||
fd46fs/read_write.casmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin)
fd51fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd82fs/read_write.casmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high,
fd91fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd121fs/read_write.casmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count)
fd127fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd141fs/read_write.casmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count)
fd148fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd104fs/select.cif (!current->files->fd[i])
fd106fs/select.cif (!current->files->fd[i]->f_inode)
fd125fs/select.cif (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) {
fd130fs/select.cif (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) {
fd135fs/select.cif (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) {
fd155fs/stat.casmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf)
fd164fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd170fs/stat.casmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf)
fd179fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd34ibcs/binfmt_coff.casmlinkage int sys_close (unsigned fd);
fd125ibcs/binfmt_coff.cint fd = -1;    /* Open file descriptor                */
fd379ibcs/binfmt_coff.cfd = open_inode (bprm->inode, O_RDONLY);
fd380ibcs/binfmt_coff.cif (fd < 0) {
fd382ibcs/binfmt_coff.cprintk ("can not open inode, result = %d\n", fd);
fd384ibcs/binfmt_coff.cstatus = fd;
fd387ibcs/binfmt_coff.cfp = current->files->fd[fd];
fd390ibcs/binfmt_coff.cfd = -1;    /* Invalidate the open file descriptor */
fd568ibcs/binfmt_coff.cif (fd >= 0)
fd569ibcs/binfmt_coff.csys_close (fd);    /* Close unused code file      */
fd737ibcs/binfmt_coff.cload_coff_library (int fd)
fd759ibcs/binfmt_coff.cfile           = current->files->fd[fd];
fd29ibcs/binfmt_elf.casmlinkage int sys_close(unsigned fd);
fd173ibcs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd330ibcs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd566ibcs/binfmt_elf.cstatic int load_elf_library(int fd){
fd579ibcs/binfmt_elf.cfile = current->files->fd[fd];
fd585ibcs/binfmt_elf.csys_close(fd);
fd638ibcs/binfmt_elf.csys_close(fd);
fd35include/linux/binfmts.hint (*load_shlib)(int fd);
fd24include/linux/nfs_mount.hint fd;        /* 1 */
fd196include/linux/sched.hstruct file * fd[NR_OPEN];
fd17include/linux/time.h#define FD_SET(fd,fdsetp)  __FD_SET(fd,fdsetp)
fd18include/linux/time.h#define FD_CLR(fd,fdsetp)  __FD_CLR(fd,fdsetp)
fd19include/linux/time.h#define FD_ISSET(fd,fdsetp)  __FD_ISSET(fd,fdsetp)
fd100include/linux/types.h#define __FD_SET(fd,fdsetp) \
fd102include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd105include/linux/types.h#define __FD_CLR(fd,fdsetp) \
fd107include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd110include/linux/types.h#define __FD_ISSET(fd,fdsetp) (__extension__ ({ \
fd113include/linux/types.h:"=q" (__result) :"r" ((int) (fd)), \
fd53init/main.cstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd54init/main.cstatic inline _syscall1(int,dup,int,fd)
fd57init/main.cstatic inline _syscall1(int,close,int,fd)
fd392kernel/exit.cif (current->files->fd[i])
fd124kernel/fork.cif ((f = p->files->fd[i]) != NULL)
fd125kernel/fork.cp->files->fd[i] = copy_fd(f);
fd128kernel/fork.cif ((f = p->files->fd[i]) != NULL)
fd10lib/close.c_syscall1(int,close,int,fd)
fd10lib/dup.c_syscall1(int,dup,int,fd)
fd11lib/write.c_syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd190mm/mmap.cunsigned long fd = get_fs_long(buffer+4);
fd191mm/mmap.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd155net/socket.cint fd;
fd166net/socket.cfor (fd = 0; fd < NR_OPEN; ++fd)
fd167net/socket.cif (!current->files->fd[fd]) 
fd169net/socket.cif (fd == NR_OPEN) 
fd175net/socket.cFD_CLR(fd, &current->files->close_on_exec);
fd176net/socket.ccurrent->files->fd[fd] = file;
fd185net/socket.creturn(fd);
fd195net/socket.cstatic inline void toss_fd(int fd)
fd197net/socket.csys_close(fd);    /* the count protects us from iput */
fd227net/socket.cstatic inline struct socket *sockfd_lookup(int fd, struct file **pfile)
fd231net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) 
fd638net/socket.cint i, fd;
fd688net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
fd694net/socket.creturn(fd);
fd762net/socket.cstatic int sock_bind(int fd, struct sockaddr *umyaddr, int addrlen)
fd769net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd772net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd792net/socket.cstatic int sock_listen(int fd, int backlog)
fd796net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd798net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd821net/socket.cstatic int sock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
fd829net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd831net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
fd862net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
fd873net/socket.creturn(fd);
fd882net/socket.cstatic int sock_connect(int fd, struct sockaddr *uservaddr, int addrlen)
fd890net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL)
fd892net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
fd934net/socket.cstatic int sock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd941net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd943net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd959net/socket.cstatic int sock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd966net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd968net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd984net/socket.cstatic int sock_send(int fd, void * buff, int len, unsigned flags)
fd990net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd992net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1009net/socket.cstatic int sock_sendto(int fd, void * buff, int len, unsigned flags,
fd1017net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1019net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1044net/socket.cstatic int sock_recv(int fd, void * buff, int len, unsigned flags)
fd1050net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1053net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1073net/socket.cstatic int sock_recvfrom(int fd, void * buff, int len, unsigned flags,
fd1081net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1083net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1110net/socket.cstatic int sock_setsockopt(int fd, int level, int optname, char *optval, int optlen)
fd1115net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1117net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1128net/socket.cstatic int sock_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
fd1133net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1135net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1148net/socket.cstatic int sock_shutdown(int fd, int how)
fd1153net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1155net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))