tag | line | file | source code |
fd | 36 | fs/exec.c | extern int sys_close(int fd); |
fd | 16 | fs/fcntl.c | extern int sys_close(int fd); |
fd | 18 | fs/fcntl.c | static int dupfd(unsigned int fd, unsigned int arg) |
fd | 20 | fs/fcntl.c | if (fd >= NR_OPEN || !current->filp[fd]) |
fd | 32 | fs/fcntl.c | (current->filp[arg] = current->filp[fd])->f_count++; |
fd | 51 | fs/fcntl.c | int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 55 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
fd | 59 | fs/fcntl.c | return dupfd(fd,arg); |
fd | 61 | fs/fcntl.c | return (current->close_on_exec>>fd)&1; |
fd | 64 | fs/fcntl.c | current->close_on_exec |= (1<<fd); |
fd | 66 | fs/fcntl.c | current->close_on_exec &= ~(1<<fd); |
fd | 14 | fs/ioctl.c | int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 19 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
fd | 49 | fs/open.c | int sys_fstatfs(unsigned int fd, struct statfs * buf) |
fd | 55 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
fd | 88 | fs/open.c | int sys_ftruncate(unsigned int fd, unsigned int length) |
fd | 93 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
fd | 214 | fs/open.c | int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 219 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
fd | 252 | fs/open.c | int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 257 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
fd | 301 | fs/open.c | int i,fd; |
fd | 303 | fs/open.c | for(fd=0 ; fd<NR_OPEN ; fd++) |
fd | 304 | fs/open.c | if (!current->filp[fd]) |
fd | 306 | fs/open.c | if (fd>=NR_OPEN) |
fd | 308 | fs/open.c | current->close_on_exec &= ~(1<<fd); |
fd | 312 | fs/open.c | current->filp[fd] = f; |
fd | 314 | fs/open.c | current->filp[fd]=NULL; |
fd | 330 | fs/open.c | current->filp[fd]=NULL; |
fd | 333 | fs/open.c | return (fd); |
fd | 341 | fs/open.c | int sys_close(unsigned int fd) |
fd | 346 | fs/open.c | if (fd >= NR_OPEN) |
fd | 348 | fs/open.c | current->close_on_exec &= ~(1<<fd); |
fd | 349 | fs/open.c | if (!(filp = current->filp[fd])) |
fd | 351 | fs/open.c | current->filp[fd] = NULL; |
fd | 206 | fs/pipe.c | int fd[2]; |
fd | 220 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
fd | 224 | fs/pipe.c | current->filp[fd[0]]=NULL; |
fd | 231 | fs/pipe.c | current->filp[fd[0]] = NULL; |
fd | 232 | fs/pipe.c | current->filp[fd[1]] = NULL; |
fd | 244 | fs/pipe.c | put_fs_long(fd[0],0+fildes); |
fd | 245 | fs/pipe.c | put_fs_long(fd[1],1+fildes); |
fd | 20 | fs/read_write.c | int sys_readdir(unsigned int fd, struct dirent * dirent, unsigned int count) |
fd | 25 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->filp[fd]) || |
fd | 35 | fs/read_write.c | int sys_lseek(unsigned int fd, off_t offset, unsigned int origin) |
fd | 40 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode)) |
fd | 68 | fs/read_write.c | int sys_read(unsigned int fd,char * buf,unsigned int count) |
fd | 73 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
fd | 85 | fs/read_write.c | int sys_write(unsigned int fd,char * buf,unsigned int count) |
fd | 90 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
fd | 126 | fs/stat.c | int sys_fstat(unsigned int fd, struct old_stat * statbuf) |
fd | 131 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
fd | 137 | fs/stat.c | int sys_newfstat(unsigned int fd, struct new_stat * statbuf) |
fd | 142 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
fd | 15 | include/linux/time.h | #define FD_SET(fd,fdsetp) (*(fdsetp) |= (1 << (fd))) |
fd | 16 | include/linux/time.h | #define FD_CLR(fd,fdsetp) (*(fdsetp) &= ~(1 << (fd))) |
fd | 17 | include/linux/time.h | #define FD_ISSET(fd,fdsetp) ((*(fdsetp) >> fd) & 1) |
fd | 14 | include/sys/mman.h | extern caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, |
fd | 38 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 39 | init/main.c | static inline _syscall1(int,dup,int,fd) |
fd | 42 | init/main.c | static inline _syscall1(int,close,int,fd) |
fd | 19 | kernel/exit.c | int sys_close(int fd); |
fd | 10 | lib/close.c | _syscall1(int,close,int,fd) |
fd | 10 | lib/dup.c | _syscall1(int,dup,int,fd) |
fd | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 90 | mm/mmap.c | int prot, flags, fd; |
fd | 98 | mm/mmap.c | fd = (int) get_fs_long(buffer+4); /* object to map */ |
fd | 101 | mm/mmap.c | if (fd >= NR_OPEN || fd < 0 || !(file = current->filp[fd])) |
fd | 16 | net/socket.c | extern int sys_close(int fd); |
fd | 76 | net/socket.c | int fd, i; |
fd | 82 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 83 | net/socket.c | if (!current->filp[fd]) |
fd | 85 | net/socket.c | if (fd == NR_OPEN) |
fd | 87 | net/socket.c | current->close_on_exec &= ~(1 << fd); |
fd | 93 | net/socket.c | current->filp[fd] = file; |
fd | 100 | net/socket.c | return fd; |
fd | 109 | net/socket.c | toss_fd(int fd) |
fd | 111 | net/socket.c | current->filp[fd]->f_inode = NULL; /* safe from iput */ |
fd | 112 | net/socket.c | sys_close(fd); |
fd | 127 | net/socket.c | sockfd_lookup(int fd, struct file **pfile) |
fd | 131 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) |
fd | 416 | net/socket.c | int i, fd; |
fd | 463 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) { |
fd | 468 | net/socket.c | return fd; |
fd | 522 | net/socket.c | sock_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 527 | net/socket.c | PRINTK("sys_bind: fd = %d\n", fd); |
fd | 528 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 543 | net/socket.c | sock_listen(int fd, int backlog) |
fd | 547 | net/socket.c | PRINTK("sys_listen: fd = %d\n", fd); |
fd | 548 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 567 | net/socket.c | sock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 573 | net/socket.c | PRINTK("sys_accept: fd = %d\n", fd); |
fd | 574 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 610 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) { |
fd | 633 | net/socket.c | return fd; |
fd | 640 | net/socket.c | sock_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 645 | net/socket.c | PRINTK("sys_connect: fd = %d\n", fd); |
fd | 646 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 660 | net/socket.c | sock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 664 | net/socket.c | PRINTK("sys_getsockname: fd = %d\n", fd); |
fd | 665 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 671 | net/socket.c | sock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 675 | net/socket.c | PRINTK("sys_getpeername: fd = %d\n", fd); |
fd | 676 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |