taglinefilesource code
fd65fs/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 */
fd566fs/binfmt_coff.cif (fd >= 0)
fd567fs/binfmt_coff.csys_close (fd);    /* Close unused code file      */
fd735fs/binfmt_coff.cload_coff_library (int fd)
fd757fs/binfmt_coff.cfile           = current->filp[fd];
fd20fs/binfmt_elf.casmlinkage int sys_close(unsigned fd);
fd337fs/binfmt_elf.cint load_elf_library(int fd){
fd350fs/binfmt_elf.cfile = current->filp[fd];
fd356fs/binfmt_elf.csys_close(fd);
fd409fs/binfmt_elf.csys_close(fd);
fd177fs/buffer.casmlinkage int sys_fsync(unsigned int fd)
fd182fs/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;
fd236fs/exec.cint fd, retval;
fd240fs/exec.cfd = sys_open(library, 0, 0);
fd241fs/exec.cif (fd < 0)
fd242fs/exec.creturn fd;
fd243fs/exec.cfile = current->filp[fd];
fd251fs/exec.cretval = fn(fd);
fd255fs/exec.csys_close(fd);
fd726fs/exec.cextern int load_aout_library(int fd);
fd731fs/exec.cextern int load_elf_library(int fd);
fd737fs/exec.cextern int load_coff_library(int fd);
fd761fs/exec.cint fd, error;
fd804fs/exec.cfd = open_inode(bprm->inode, O_RDONLY);
fd806fs/exec.cif (fd < 0)
fd807fs/exec.creturn fd;
fd808fs/exec.cfile = current->filp[fd];
fd810fs/exec.csys_close(fd);
fd823fs/exec.csys_close(fd);
fd831fs/exec.csys_close(fd);
fd854fs/exec.cint load_aout_library(int fd)
fd864fs/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]))
fd252fs/open.casmlinkage int sys_fchmod(unsigned int fd, mode_t mode)
fd257fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
fd299fs/open.casmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group)
fd304fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
fd375fs/open.cint flag,error,fd;
fd377fs/open.cfor(fd=0 ; fd<NR_OPEN ; fd++)
fd378fs/open.cif (!current->filp[fd])
fd380fs/open.cif (fd>=NR_OPEN)
fd382fs/open.cFD_CLR(fd,&current->close_on_exec);
fd386fs/open.ccurrent->filp[fd] = f;
fd395fs/open.ccurrent->filp[fd]=NULL;
fd411fs/open.ccurrent->filp[fd]=NULL;
fd416fs/open.creturn (fd);
fd437fs/open.cint close_fp(struct file *filp, unsigned int fd)
fd447fs/open.cfcntl_remove_locks(current, filp, fd);
fd460fs/open.casmlinkage int sys_close(unsigned int fd)
fd464fs/open.cif (fd >= NR_OPEN)
fd466fs/open.cFD_CLR(fd, &current->close_on_exec);
fd467fs/open.cif (!(filp = current->filp[fd]))
fd469fs/open.ccurrent->filp[fd] = NULL;
fd470fs/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]))
fd101net/socket.cint fd;
fd107net/socket.cfor (fd = 0; fd < NR_OPEN; ++fd)
fd108net/socket.cif (!current->filp[fd]) break;
fd109net/socket.cif (fd == NR_OPEN) {
fd113net/socket.cFD_CLR(fd, &current->close_on_exec);
fd114net/socket.ccurrent->filp[fd] = file;
fd122net/socket.creturn(fd);
fd132net/socket.ctoss_fd(int fd)
fd134net/socket.csys_close(fd);    /* the count protects us from iput */
fd158net/socket.csockfd_lookup(int fd, struct file **pfile)
fd162net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) return(NULL);
fd431net/socket.cint i, fd;
fd476net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) {
fd481net/socket.creturn(fd);
fd538net/socket.csock_bind(int fd, struct sockaddr *umyaddr, int addrlen)
fd543net/socket.cDPRINTF((net_debug, "NET: sock_bind: fd = %d\n", fd));
fd544net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd546net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd561net/socket.csock_listen(int fd, int backlog)
fd565net/socket.cDPRINTF((net_debug, "NET: sock_listen: fd = %d\n", fd));
fd566net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd568net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd585net/socket.csock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
fd591net/socket.cDPRINTF((net_debug, "NET: sock_accept: fd = %d\n", fd));
fd592net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd595net/socket.cif (!(sock = sockfd_lookup(fd, &file))) return(-ENOTSOCK);
fd623net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) {
fd634net/socket.creturn(fd);
fd640net/socket.csock_connect(int fd, struct sockaddr *uservaddr, int addrlen)
fd646net/socket.cDPRINTF((net_debug, "NET: sock_connect: fd = %d\n", fd));
fd647net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->filp[fd]) == NULL)
fd650net/socket.cif (!(sock = sockfd_lookup(fd, &file))) return(-ENOTSOCK);
fd677net/socket.csock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd681net/socket.cDPRINTF((net_debug, "NET: sock_getsockname: fd = %d\n", fd));
fd682net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd684net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd690net/socket.csock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd694net/socket.cDPRINTF((net_debug, "NET: sock_getpeername: fd = %d\n", fd));
fd695net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
fd697net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd703net/socket.csock_send(int fd, void * buff, int len, unsigned flags)
fd710net/socket.cfd, buff, len, flags));
fd712net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd714net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd721net/socket.csock_sendto(int fd, void * buff, int len, unsigned flags,
fd729net/socket.c" addr=%X, alen = %d\n", fd, buff, len, flags, addr, addr_len));
fd731net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd733net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd741net/socket.csock_recv(int fd, void * buff, int len, unsigned flags)
fd748net/socket.cfd, buff, len, flags));
fd750net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd752net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd759net/socket.csock_recvfrom(int fd, void * buff, int len, unsigned flags,
fd767net/socket.c" addr=%X, alen=%X\n", fd, buff, len, flags, addr, addr_len));
fd769net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd771net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd779net/socket.csock_setsockopt(int fd, int level, int optname, char *optval, int optlen)
fd785net/socket.cfd, level, optname));
fd789net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd791net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd798net/socket.csock_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
fd804net/socket.cfd, level, optname));
fd808net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd810net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);
fd818net/socket.csock_shutdown(int fd, int how)
fd823net/socket.cDPRINTF((net_debug, "NET: sock_shutdown(fd = %d, how = %d)\n", fd, how));
fd825net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
fd828net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) return(-ENOTSOCK);