taglinefilesource code
fd34fs/binfmt_coff.casmlinkage int sys_close (unsigned fd);
fd125fs/binfmt_coff.cint fd = -1;    /* Open file descriptor                */
fd379fs/binfmt_coff.cfd = open_inode (bprm->inode, O_RDONLY);
fd380fs/binfmt_coff.cif (fd < 0) {
fd382fs/binfmt_coff.cprintk ("can not open inode, result = %d\n", fd);
fd384fs/binfmt_coff.cstatus = fd;
fd387fs/binfmt_coff.cfp = current->filp[fd];
fd390fs/binfmt_coff.cfd = -1;    /* Invalidate the open file descriptor */
fd568fs/binfmt_coff.cif (fd >= 0)
fd569fs/binfmt_coff.csys_close (fd);    /* Close unused code file      */
fd737fs/binfmt_coff.cload_coff_library (int fd)
fd759fs/binfmt_coff.cfile           = current->filp[fd];
fd21fs/binfmt_elf.casmlinkage int sys_close(unsigned fd);
fd548fs/binfmt_elf.cint load_elf_library(int fd){
fd561fs/binfmt_elf.cfile = current->filp[fd];
fd567fs/binfmt_elf.csys_close(fd);
fd620fs/binfmt_elf.csys_close(fd);
fd255fs/buffer.casmlinkage int sys_fsync(unsigned int fd)
fd260fs/buffer.cif (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode))
fd50fs/exec.casmlinkage int sys_close(unsigned fd);
fd58fs/exec.cint error, fd;
fd66fs/exec.cfd = 0;
fd71fs/exec.cif (++fd > NR_OPEN)
fd91fs/exec.creturn fd;
fd240fs/exec.cint fd, retval;
fd244fs/exec.cfd = sys_open(library, 0, 0);
fd245fs/exec.cif (fd < 0)
fd246fs/exec.creturn fd;
fd247fs/exec.cfile = current->filp[fd];
fd255fs/exec.cretval = fn(fd);
fd259fs/exec.csys_close(fd);
fd731fs/exec.cextern int load_aout_library(int fd);
fd736fs/exec.cextern int load_elf_library(int fd);
fd742fs/exec.cextern int load_coff_library(int fd);
fd766fs/exec.cint fd, error;
fd809fs/exec.cfd = open_inode(bprm->inode, O_RDONLY);
fd811fs/exec.cif (fd < 0)
fd812fs/exec.creturn fd;
fd813fs/exec.cfile = current->filp[fd];
fd815fs/exec.csys_close(fd);
fd828fs/exec.csys_close(fd);
fd836fs/exec.csys_close(fd);
fd859fs/exec.cint load_aout_library(int fd)
fd869fs/exec.cfile = current->filp[fd];
fd20fs/fcntl.cstatic int dupfd(unsigned int fd, unsigned int arg)
fd22fs/fcntl.cif (fd >= NR_OPEN || !current->filp[fd])
fd34fs/fcntl.c(current->filp[arg] = current->filp[fd])->f_count++;
fd66fs/fcntl.casmlinkage int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd70fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
fd74fs/fcntl.creturn dupfd(fd,arg);
fd76fs/fcntl.creturn FD_ISSET(fd, &current->close_on_exec);
fd79fs/fcntl.cFD_SET(fd, &current->close_on_exec);
fd81fs/fcntl.cFD_CLR(fd, &current->close_on_exec);
fd90fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
fd92fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd94fs/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->filp[fd]))
fd66fs/ioctl.cFD_SET(fd, &current->close_on_exec);
fd70fs/ioctl.cFD_CLR(fd, &current->close_on_exec);
fd26fs/locks.cunsigned int fd);
fd29fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd);
fd31fs/locks.cunsigned int fd);
fd54fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
fd61fs/locks.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
fd69fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
fd94fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
fd105fs/locks.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
fd111fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
fd166fs/locks.creturn lock_it(filp, &file_lock, fd);
fd174fs/locks.cunsigned int fd)
fd182fs/locks.cwhile ((fl = *before) && (task != fl->fl_owner || fd != fl->fl_fd))
fd187fs/locks.cwhile ((fl = *before) && task == fl->fl_owner && fd == fl->fl_fd)
fd197fs/locks.cunsigned int fd)
fd222fs/locks.cfl->fl_fd = fd;
fd272fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd)
fd382fs/locks.cif (! (caller = alloc_lock(before, caller, fd)))
fd392fs/locks.cif (! (left = alloc_lock(before, right, fd))) {
fd411fs/locks.cunsigned int     fd)
fd430fs/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->filp[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->filp[fd]))
fd94fs/open.casmlinkage int sys_ftruncate(unsigned int fd, unsigned int length)
fd99fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
fd213fs/open.casmlinkage int sys_fchdir(unsigned int fd)
fd218fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
fd253fs/open.casmlinkage int sys_fchmod(unsigned int fd, mode_t mode)
fd258fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
fd304fs/open.casmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group)
fd309fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
fd380fs/open.cint flag,error,fd;
fd382fs/open.cfor(fd=0 ; fd<NR_OPEN ; fd++)
fd383fs/open.cif (!current->filp[fd])
fd385fs/open.cif (fd>=NR_OPEN)
fd387fs/open.cFD_CLR(fd,&current->close_on_exec);
fd391fs/open.ccurrent->filp[fd] = f;
fd400fs/open.ccurrent->filp[fd]=NULL;
fd416fs/open.ccurrent->filp[fd]=NULL;
fd421fs/open.creturn (fd);
fd442fs/open.cint close_fp(struct file *filp, unsigned int fd)
fd452fs/open.cfcntl_remove_locks(current, filp, fd);
fd465fs/open.casmlinkage int sys_close(unsigned int fd)
fd469fs/open.cif (fd >= NR_OPEN)
fd471fs/open.cFD_CLR(fd, &current->close_on_exec);
fd472fs/open.cif (!(filp = current->filp[fd]))
fd474fs/open.ccurrent->filp[fd] = NULL;
fd475fs/open.creturn (close_fp (filp, fd));
fd382fs/pipe.cint fd[2];
fd398fs/pipe.ccurrent->filp[ fd[j]=i ] = f[j];
fd402fs/pipe.ccurrent->filp[fd[0]]=NULL;
fd409fs/pipe.ccurrent->filp[fd[0]] = NULL;
fd410fs/pipe.ccurrent->filp[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->filp[fd] || !p->filp[fd]->f_inode)
fd110fs/proc/fd.cino = (pid << 16) + 0x100 + fd;
fd117fs/proc/fd.cif (fd >= j)
fd119fs/proc/fd.cino = (pid << 16) + 0x200 + fd;
fd130fs/proc/fd.cunsigned int fd, pid, ino;
fd142fs/proc/fd.cfd = filp->f_pos;
fd144fs/proc/fd.cif (fd < 2) {
fd145fs/proc/fd.ci = j = fd+1;
fd146fs/proc/fd.cif (!fd)
fd147fs/proc/fd.cfd = inode->i_ino;
fd149fs/proc/fd.cfd = (inode->i_ino & 0xffff0000) | 2;
fd150fs/proc/fd.cput_fs_long(fd, &dirent->d_ino);
fd157fs/proc/fd.cfd -= 2;
fd164fs/proc/fd.cif (fd >= NR_OPEN)
fd166fs/proc/fd.cif (!p->filp[fd] || !p->filp[fd]->f_inode)
fd174fs/proc/fd.cif (fd >= j)
fd179fs/proc/fd.cwhile (fd >= j) {
fd185fs/proc/fd.cino = (pid << 16) + 0x100 + fd;
fd187fs/proc/fd.cino = (pid << 16) + 0x200 + fd;
fd192fs/proc/fd.cput_fs_byte('0'+(fd % 10), i+dirent->d_name);
fd193fs/proc/fd.cfd /= 10;
fd19fs/read_write.casmlinkage int sys_readdir(unsigned int fd, struct dirent * dirent, unsigned int count)
fd25fs/read_write.cif (fd >= NR_OPEN || !(file = current->filp[fd]) ||
fd37fs/read_write.casmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin)
fd42fs/read_write.cif (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode))
fd70fs/read_write.casmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count)
fd76fs/read_write.cif (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode))
fd90fs/read_write.casmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count)
fd96fs/read_write.cif (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode))
fd153fs/stat.casmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf)
fd162fs/stat.cif (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode))
fd168fs/stat.casmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf)
fd177fs/stat.cif (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode))
fd32include/linux/binfmts.hint (*load_shlib)(int fd);
fd24include/linux/nfs_mount.hint fd;        /* 1 */
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)
fd95include/linux/types.h#define __FD_SET(fd,fdsetp) \
fd97include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd100include/linux/types.h#define __FD_CLR(fd,fdsetp) \
fd102include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd105include/linux/types.h#define __FD_ISSET(fd,fdsetp) (__extension__ ({ \
fd108include/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)
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)
fd148mm/mmap.cunsigned long fd = get_fs_long(buffer+4);
fd149mm/mmap.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
fd108net/socket.cint fd;
fd114net/socket.cfor (fd = 0; fd < NR_OPEN; ++fd)
fd115net/socket.cif (!current->filp[fd]) break;
fd116net/socket.cif (fd == NR_OPEN) {
fd120net/socket.cFD_CLR(fd, &current->close_on_exec);
fd121net/socket.ccurrent->filp[fd] = file;
fd129net/socket.creturn(fd);
fd139net/socket.ctoss_fd(int fd)
fd141net/socket.csys_close(fd);    /* the count protects us from iput */
fd165net/socket.csockfd_lookup(int fd, struct file **pfile)
fd169net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) return(NULL);
fd438net/socket.cint i, fd;
fd483net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) {
fd488net/socket.creturn(fd);
fd545net/socket.csock_bind(int fd, struct sockaddr *umyaddr, int addrlen)
fd550net/socket.cDPRINTF((net_debug, "NET: sock_bind: fd = %d\n", fd));
fd551net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd553net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd568net/socket.csock_listen(int fd, int backlog)
fd572net/socket.cDPRINTF((net_debug, "NET: sock_listen: fd = %d\n", fd));
fd573net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd575net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd592net/socket.csock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
fd598net/socket.cDPRINTF((net_debug, "NET: sock_accept: fd = %d\n", fd));
fd599net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd602net/socket.cif (!(sock = sockfd_lookup(fd, &file))) return(-ENOTSOCK);
fd630net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) {
fd641net/socket.creturn(fd);
fd647net/socket.csock_connect(int fd, struct sockaddr *uservaddr, int addrlen)
fd653net/socket.cDPRINTF((net_debug, "NET: sock_connect: fd = %d\n", fd));
fd654net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->filp[fd]) == NULL)
fd657net/socket.cif (!(sock = sockfd_lookup(fd, &file))) return(-ENOTSOCK);
fd684net/socket.csock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd688net/socket.cDPRINTF((net_debug, "NET: sock_getsockname: fd = %d\n", fd));
fd689net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd691net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd697net/socket.csock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd701net/socket.cDPRINTF((net_debug, "NET: sock_getpeername: fd = %d\n", fd));
fd702net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd704net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd710net/socket.csock_send(int fd, void * buff, int len, unsigned flags)
fd717net/socket.cfd, buff, len, flags));
fd719net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd721net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd728net/socket.csock_sendto(int fd, void * buff, int len, unsigned flags,
fd736net/socket.c" addr=%X, alen = %d\n", fd, buff, len, flags, addr, addr_len));
fd738net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd740net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd748net/socket.csock_recv(int fd, void * buff, int len, unsigned flags)
fd755net/socket.cfd, buff, len, flags));
fd757net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd759net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd766net/socket.csock_recvfrom(int fd, void * buff, int len, unsigned flags,
fd774net/socket.c" addr=%X, alen=%X\n", fd, buff, len, flags, addr, addr_len));
fd776net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd778net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd786net/socket.csock_setsockopt(int fd, int level, int optname, char *optval, int optlen)
fd792net/socket.cfd, level, optname));
fd796net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd798net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd805net/socket.csock_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
fd811net/socket.cfd, level, optname));
fd815net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd817net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd825net/socket.csock_shutdown(int fd, int how)
fd830net/socket.cDPRINTF((net_debug, "NET: sock_shutdown(fd = %d, how = %d)\n", fd, how));
fd832net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd835net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);