tag | line | file | source code |
fd | 42 | arch/alpha/boot/tools/build.c | int fd, i; |
fd | 91 | arch/alpha/boot/tools/build.c | fd = open(infile, O_RDONLY); |
fd | 92 | arch/alpha/boot/tools/build.c | if (fd < 0) { |
fd | 96 | arch/alpha/boot/tools/build.c | if (read(fd, &fhdr, sizeof(struct filehdr)) != sizeof(struct filehdr)) |
fd | 102 | arch/alpha/boot/tools/build.c | if (read(fd, &ahdr, sizeof(struct aouthdr)) != sizeof(struct aouthdr)) |
fd | 105 | arch/alpha/boot/tools/build.c | if (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr)) |
fd | 131 | arch/alpha/boot/tools/build.c | if (lseek(fd, offset, SEEK_SET) != offset) |
fd | 138 | arch/alpha/boot/tools/build.c | if (read(fd, buffer, num) != num) |
fd | 96 | arch/alpha/kernel/osf_sys.c | asmlinkage int osf_getdirentries(unsigned int fd, struct osf_dirent * dirent, |
fd | 103 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 157 | arch/alpha/kernel/osf_sys.c | unsigned long prot, unsigned long flags, unsigned long fd, |
fd | 165 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 193 | arch/alpha/kernel/osf_sys.c | asmlinkage int osf_fstatfs(unsigned long fd, struct statfs * buffer, unsigned long bufsiz) |
fd | 204 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 452 | arch/alpha/kernel/osf_sys.c | int fd[2]; |
fd | 455 | arch/alpha/kernel/osf_sys.c | error = do_pipe(fd); |
fd | 458 | arch/alpha/kernel/osf_sys.c | (®s)->r20 = fd[1]; |
fd | 459 | arch/alpha/kernel/osf_sys.c | return fd[0]; |
fd | 532 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 545 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 557 | arch/alpha/kernel/osf_sys.c | long fd; |
fd | 26 | arch/i386/kernel/sys_i386.c | int fd[2]; |
fd | 32 | arch/i386/kernel/sys_i386.c | error = do_pipe(fd); |
fd | 35 | arch/i386/kernel/sys_i386.c | put_fs_long(fd[0],0+fildes); |
fd | 36 | arch/i386/kernel/sys_i386.c | put_fs_long(fd[1],1+fildes); |
fd | 57 | arch/i386/kernel/sys_i386.c | unsigned long fd = get_user(buffer+4); |
fd | 58 | arch/i386/kernel/sys_i386.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 1612 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
fd | 1073 | drivers/net/wavelan.c | fd_t fd; |
fd | 1092 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1093 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
fd | 1094 | drivers/net/wavelan.c | fd.fd_link_offset = rx_next; |
fd | 1095 | drivers/net/wavelan.c | fd.fd_rbd_offset = rx + sizeof(fd); |
fd | 1096 | drivers/net/wavelan.c | obram_write(ioaddr, rx, (unsigned char *)&fd, sizeof(fd)); |
fd | 1100 | drivers/net/wavelan.c | rbd.rbd_bufl = rx + sizeof(fd) + sizeof(rbd); |
fd | 1103 | drivers/net/wavelan.c | obram_write(ioaddr, rx + sizeof(fd), (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1491 | drivers/net/wavelan.c | fd_t fd; |
fd | 1497 | drivers/net/wavelan.c | obram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd)); |
fd | 1499 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_C) != FD_STATUS_C) |
fd | 1506 | drivers/net/wavelan.c | (fd.fd_status & (FD_STATUS_B | FD_STATUS_OK)) |
fd | 1518 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_OK) != FD_STATUS_OK) |
fd | 1522 | drivers/net/wavelan.c | if ((fd.fd_status & (FD_STATUS_S6 | FD_STATUS_S7 | FD_STATUS_S8 | FD_STATUS_S9 | FD_STATUS_S10 | FD_STATUS_S11)) != 0) |
fd | 1526 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S6) != 0) |
fd | 1529 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S7) != 0) |
fd | 1535 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S8) != 0) |
fd | 1541 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S9) != 0) |
fd | 1547 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S10) != 0) |
fd | 1553 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S11) != 0) |
fd | 1560 | drivers/net/wavelan.c | if (fd.fd_rbd_offset == I82586NULL) |
fd | 1564 | drivers/net/wavelan.c | obram_read(ioaddr, fd.fd_rbd_offset, (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1610 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
fd | 1615 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
fd | 1617 | drivers/net/wavelan.c | printk("%s: fd_length=%d\n", dev->name, fd.fd_length); |
fd | 1683 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1684 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status)); |
fd | 1686 | drivers/net/wavelan.c | fd.fd_command = FD_COMMAND_EL; |
fd | 1687 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1689 | drivers/net/wavelan.c | fd.fd_command = 0; |
fd | 1690 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1693 | drivers/net/wavelan.c | lp->rx_head = fd.fd_link_offset; |
fd | 1739 | drivers/sound/configure.c | int fd; |
fd | 1744 | drivers/sound/configure.c | if ((fd = open (path, 0)) > 0) |
fd | 1752 | drivers/sound/configure.c | count = read (fd, &c, 1); |
fd | 1763 | drivers/sound/configure.c | close (fd); |
fd | 46 | fs/binfmt_elf.c | static int load_elf_library(int fd); |
fd | 229 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 420 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 717 | fs/binfmt_elf.c | do_load_elf_library(int fd){ |
fd | 730 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 795 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 813 | fs/binfmt_elf.c | static int load_elf_library(int fd) |
fd | 818 | fs/binfmt_elf.c | retval = do_load_elf_library(fd); |
fd | 246 | fs/buffer.c | asmlinkage int sys_fsync(unsigned int fd) |
fd | 251 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 52 | fs/exec.c | static int load_aout_library(int fd); |
fd | 106 | fs/exec.c | int error, fd; |
fd | 114 | fs/exec.c | fd = 0; |
fd | 115 | fs/exec.c | fpp = current->files->fd; |
fd | 119 | fs/exec.c | if (++fd >= NR_OPEN) { |
fd | 141 | fs/exec.c | return fd; |
fd | 283 | fs/exec.c | int fd, retval; |
fd | 287 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 288 | fs/exec.c | if (fd < 0) |
fd | 289 | fs/exec.c | return fd; |
fd | 290 | fs/exec.c | file = current->files->fd[fd]; |
fd | 297 | fs/exec.c | retval = fn(fd); |
fd | 302 | fs/exec.c | sys_close(fd); |
fd | 813 | fs/exec.c | int fd; |
fd | 874 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 876 | fs/exec.c | if (fd < 0) |
fd | 877 | fs/exec.c | return fd; |
fd | 878 | fs/exec.c | file = current->files->fd[fd]; |
fd | 880 | fs/exec.c | sys_close(fd); |
fd | 895 | fs/exec.c | sys_close(fd); |
fd | 904 | fs/exec.c | sys_close(fd); |
fd | 943 | fs/exec.c | static int load_aout_library(int fd) |
fd | 953 | fs/exec.c | file = current->files->fd[fd]; |
fd | 20 | fs/fcntl.c | static inline int dupfd(unsigned int fd, unsigned int arg) |
fd | 22 | fs/fcntl.c | if (fd >= NR_OPEN || !current->files->fd[fd]) |
fd | 27 | fs/fcntl.c | if (current->files->fd[arg]) |
fd | 34 | fs/fcntl.c | (current->files->fd[arg] = current->files->fd[fd])->f_count++; |
fd | 40 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->files->fd[oldfd]) |
fd | 66 | fs/fcntl.c | asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 72 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 76 | fs/fcntl.c | return dupfd(fd,arg); |
fd | 78 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
fd | 81 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
fd | 83 | fs/fcntl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 105 | fs/fcntl.c | return fcntl_getlk(fd, (struct flock *) arg); |
fd | 107 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
fd | 109 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
fd | 58 | fs/ioctl.c | asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 63 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 67 | fs/ioctl.c | FD_SET(fd, ¤t->files->close_on_exec); |
fd | 71 | fs/ioctl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 98 | fs/locks.c | asmlinkage int sys_flock(unsigned int fd, unsigned int cmd) |
fd | 103 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 118 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
fd | 125 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 161 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
fd | 172 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
fd | 76 | fs/nfs/inode.c | unsigned int fd; |
fd | 88 | fs/nfs/inode.c | fd = data->fd; |
fd | 93 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
fd | 548 | fs/nfs/nfsroot.c | if ((nfs_data.fd = sys_socketcall(SYS_SOCKET, opt)) < 0) { |
fd | 558 | fs/nfs/nfsroot.c | filp = current->files->fd[nfs_data.fd]; |
fd | 561 | fs/nfs/nfsroot.c | current->files->fd[nfs_data.fd] = &nfs_file; |
fd | 584 | fs/nfs/nfsroot.c | current->files->fd[nfs_data.fd] = NULL; |
fd | 45 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
fd | 54 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 114 | fs/open.c | asmlinkage int sys_ftruncate(unsigned int fd, unsigned long length) |
fd | 119 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 271 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 277 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 312 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 318 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 363 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 369 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 468 | fs/open.c | int flag,error,fd; |
fd | 506 | fs/open.c | for(fd = 0; fd < NR_OPEN && fd < current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) { |
fd | 507 | fs/open.c | if (!current->files->fd[fd]) { |
fd | 508 | fs/open.c | current->files->fd[fd] = f; |
fd | 509 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 510 | fs/open.c | return fd; |
fd | 568 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 572 | fs/open.c | if (fd >= NR_OPEN) |
fd | 574 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 575 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 577 | fs/open.c | current->files->fd[fd] = NULL; |
fd | 379 | fs/pipe.c | int do_pipe(int *fd) |
fd | 400 | fs/pipe.c | if (!current->files->fd[i]) { |
fd | 401 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
fd | 409 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
fd | 56 | fs/proc/fd.c | unsigned int ino, pid, fd, c; |
fd | 86 | fs/proc/fd.c | fd = 0; |
fd | 91 | fs/proc/fd.c | fd = 0xfffff; |
fd | 94 | fs/proc/fd.c | fd *= 10; |
fd | 95 | fs/proc/fd.c | fd += c; |
fd | 96 | fs/proc/fd.c | if (fd & 0xffff0000) { |
fd | 97 | fs/proc/fd.c | fd = 0xfffff; |
fd | 107 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 110 | fs/proc/fd.c | ino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd; |
fd | 125 | fs/proc/fd.c | unsigned int fd, pid, ino; |
fd | 136 | fs/proc/fd.c | for (fd = filp->f_pos; fd < 2; fd++, filp->f_pos++) { |
fd | 138 | fs/proc/fd.c | if (fd) |
fd | 140 | fs/proc/fd.c | if (filldir(dirent, "..", fd+1, fd, ino) < 0) |
fd | 152 | fs/proc/fd.c | for (fd -= 2 ; fd < NR_OPEN; fd++, filp->f_pos++) { |
fd | 155 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 159 | fs/proc/fd.c | i = fd; |
fd | 166 | fs/proc/fd.c | ino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd; |
fd | 167 | fs/proc/fd.c | if (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0) |
fd | 238 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 243 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 245 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
fd | 122 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
fd | 123 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
fd | 18 | fs/read_write.c | asmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin) |
fd | 23 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 54 | fs/read_write.c | asmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high, |
fd | 63 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 103 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
fd | 109 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 123 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
fd | 130 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 250 | fs/read_write.c | asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count) |
fd | 255 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
fd | 262 | fs/read_write.c | asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count) |
fd | 267 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
fd | 56 | fs/readdir.c | asmlinkage int old_readdir(unsigned int fd, void * dirent, unsigned int count) |
fd | 62 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 119 | fs/readdir.c | asmlinkage int sys_getdents(unsigned int fd, void * dirent, unsigned int count) |
fd | 126 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 105 | fs/select.c | if (!current->files->fd[i]) |
fd | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
fd | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
fd | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
fd | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
fd | 178 | fs/smbfs/inode.c | unsigned int fd; |
fd | 188 | fs/smbfs/inode.c | fd = data->fd; |
fd | 194 | fs/smbfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
fd | 161 | fs/stat.c | asmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf) |
fd | 170 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 176 | fs/stat.c | asmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf) |
fd | 185 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 103 | include/asm-alpha/types.h | static __inline__ void __FD_SET(unsigned long fd, fd_set *fdsetp) |
fd | 105 | include/asm-alpha/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 106 | include/asm-alpha/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 111 | include/asm-alpha/types.h | static __inline__ void __FD_CLR(unsigned long fd, fd_set *fdsetp) |
fd | 113 | include/asm-alpha/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 114 | include/asm-alpha/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 119 | include/asm-alpha/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
fd | 121 | include/asm-alpha/types.h | unsigned long _tmp = fd / __NFDBITS; |
fd | 122 | include/asm-alpha/types.h | unsigned long _rem = fd % __NFDBITS; |
fd | 207 | include/asm-alpha/unistd.h | static inline int dup(int fd) |
fd | 209 | include/asm-alpha/unistd.h | return sys_dup(fd); |
fd | 212 | include/asm-alpha/unistd.h | static inline int close(int fd) |
fd | 214 | include/asm-alpha/unistd.h | return sys_close(fd); |
fd | 226 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
fd | 228 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
fd | 232 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
fd | 234 | include/asm-alpha/unistd.h | return sys_read(fd, buf, nr); |
fd | 79 | include/asm-i386/types.h | #define __FD_SET(fd,fdsetp) \ |
fd | 81 | include/asm-i386/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 84 | include/asm-i386/types.h | #define __FD_CLR(fd,fdsetp) \ |
fd | 86 | include/asm-i386/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 89 | include/asm-i386/types.h | #define __FD_ISSET(fd,fdsetp) (__extension__ ({ \ |
fd | 92 | include/asm-i386/types.h | :"=q" (__result) :"r" ((int) (fd)), \ |
fd | 261 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 262 | include/asm-i386/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 265 | include/asm-i386/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 160 | include/asm-sparc/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 161 | include/asm-sparc/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 164 | include/asm-sparc/unistd.h | static inline _syscall1(int,close,int,fd) |
fd | 36 | include/linux/binfmts.h | int (*load_shlib)(int fd); |
fd | 36 | include/linux/nfs_mount.h | int fd; /* 1 */ |
fd | 105 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
fd | 18 | include/linux/smb_mount.h | unsigned int fd; |
fd | 22 | include/linux/time.h | #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) |
fd | 23 | include/linux/time.h | #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) |
fd | 24 | include/linux/time.h | #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp) |
fd | 370 | kernel/exit.c | struct file * filp = files->fd[i]; |
fd | 373 | kernel/exit.c | files->fd[i] = NULL; |
fd | 170 | kernel/fork.c | struct file * f = current->files->fd[i]; |
fd | 173 | kernel/fork.c | tsk->files->fd[i] = f; |
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 | 164 | net/socket.c | int fd; |
fd | 175 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 176 | net/socket.c | if (!current->files->fd[fd]) |
fd | 178 | net/socket.c | if (fd == NR_OPEN) |
fd | 184 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 185 | net/socket.c | current->files->fd[fd] = file; |
fd | 194 | net/socket.c | return(fd); |
fd | 214 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 219 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 511 | net/socket.c | int i, fd; |
fd | 562 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 568 | net/socket.c | return(fd); |
fd | 640 | net/socket.c | asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 647 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 650 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 670 | net/socket.c | asmlinkage int sys_listen(int fd, int backlog) |
fd | 674 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 676 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 699 | net/socket.c | asmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 707 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 709 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 741 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 752 | net/socket.c | return(fd); |
fd | 761 | net/socket.c | asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 769 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 771 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 812 | net/socket.c | asmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 819 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 821 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 837 | net/socket.c | asmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 844 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 846 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 862 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
fd | 870 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 872 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 896 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 906 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 908 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 936 | net/socket.c | asmlinkage int sys_recv(int fd, void * ubuf, int size, unsigned flags) |
fd | 944 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 947 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 974 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * ubuf, int size, unsigned flags, |
fd | 984 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 986 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1020 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1025 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1027 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1038 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1043 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1045 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1058 | net/socket.c | asmlinkage int sys_shutdown(int fd, int how) |
fd | 1063 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1065 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1075 | net/socket.c | asmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1085 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1087 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1110 | net/socket.c | asmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1122 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1124 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |