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 | 27 | arch/i386/kernel/sys_i386.c | int fd[2]; |
fd | 33 | arch/i386/kernel/sys_i386.c | error = do_pipe(fd); |
fd | 36 | arch/i386/kernel/sys_i386.c | put_fs_long(fd[0],0+fildes); |
fd | 37 | arch/i386/kernel/sys_i386.c | put_fs_long(fd[1],1+fildes); |
fd | 58 | arch/i386/kernel/sys_i386.c | unsigned long fd = get_user(buffer+4); |
fd | 59 | arch/i386/kernel/sys_i386.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 1606 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
fd | 1078 | drivers/net/wavelan.c | fd_t fd; |
fd | 1097 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1098 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
fd | 1099 | drivers/net/wavelan.c | fd.fd_link_offset = rx_next; |
fd | 1100 | drivers/net/wavelan.c | fd.fd_rbd_offset = rx + sizeof(fd); |
fd | 1101 | drivers/net/wavelan.c | obram_write(ioaddr, rx, (unsigned char *)&fd, sizeof(fd)); |
fd | 1105 | drivers/net/wavelan.c | rbd.rbd_bufl = rx + sizeof(fd) + sizeof(rbd); |
fd | 1108 | drivers/net/wavelan.c | obram_write(ioaddr, rx + sizeof(fd), (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1498 | drivers/net/wavelan.c | fd_t fd; |
fd | 1504 | drivers/net/wavelan.c | obram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd)); |
fd | 1506 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_C) != FD_STATUS_C) |
fd | 1513 | drivers/net/wavelan.c | (fd.fd_status & (FD_STATUS_B | FD_STATUS_OK)) |
fd | 1525 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_OK) != FD_STATUS_OK) |
fd | 1529 | 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 | 1533 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S6) != 0) |
fd | 1536 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S7) != 0) |
fd | 1542 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S8) != 0) |
fd | 1548 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S9) != 0) |
fd | 1554 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S10) != 0) |
fd | 1560 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S11) != 0) |
fd | 1567 | drivers/net/wavelan.c | if (fd.fd_rbd_offset == I82586NULL) |
fd | 1571 | drivers/net/wavelan.c | obram_read(ioaddr, fd.fd_rbd_offset, (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1617 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
fd | 1622 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
fd | 1624 | drivers/net/wavelan.c | printk("%s: fd_length=%d\n", dev->name, fd.fd_length); |
fd | 1690 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1691 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status)); |
fd | 1693 | drivers/net/wavelan.c | fd.fd_command = FD_COMMAND_EL; |
fd | 1694 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1696 | drivers/net/wavelan.c | fd.fd_command = 0; |
fd | 1697 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1700 | drivers/net/wavelan.c | lp->rx_head = fd.fd_link_offset; |
fd | 1403 | drivers/sound/configure.c | int fd; |
fd | 1408 | drivers/sound/configure.c | if ((fd = open (path, 0)) > 0) |
fd | 1416 | drivers/sound/configure.c | count = read (fd, &c, 1); |
fd | 1427 | drivers/sound/configure.c | close (fd); |
fd | 52 | fs/binfmt_elf.c | static int load_elf_library(int fd); |
fd | 220 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 418 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 701 | fs/binfmt_elf.c | load_elf_library(int fd){ |
fd | 715 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 721 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 781 | fs/binfmt_elf.c | SYS(close)(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 | 105 | fs/exec.c | int error, fd; |
fd | 113 | fs/exec.c | fd = 0; |
fd | 114 | fs/exec.c | fpp = current->files->fd; |
fd | 118 | fs/exec.c | if (++fd >= NR_OPEN) { |
fd | 140 | fs/exec.c | return fd; |
fd | 282 | fs/exec.c | int fd, retval; |
fd | 286 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 287 | fs/exec.c | if (fd < 0) |
fd | 288 | fs/exec.c | return fd; |
fd | 289 | fs/exec.c | file = current->files->fd[fd]; |
fd | 296 | fs/exec.c | retval = fn(fd); |
fd | 301 | fs/exec.c | sys_close(fd); |
fd | 812 | fs/exec.c | int fd; |
fd | 864 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 866 | fs/exec.c | if (fd < 0) |
fd | 867 | fs/exec.c | return fd; |
fd | 868 | fs/exec.c | file = current->files->fd[fd]; |
fd | 870 | fs/exec.c | sys_close(fd); |
fd | 885 | fs/exec.c | sys_close(fd); |
fd | 894 | fs/exec.c | sys_close(fd); |
fd | 933 | fs/exec.c | static int load_aout_library(int fd) |
fd | 943 | fs/exec.c | file = current->files->fd[fd]; |
fd | 20 | fs/fcntl.c | static 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 | 82 | fs/nfs/inode.c | unsigned int fd; |
fd | 94 | fs/nfs/inode.c | fd = data->fd; |
fd | 99 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
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 | 106 | fs/open.c | asmlinkage int sys_ftruncate(unsigned int fd, unsigned int length) |
fd | 112 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 270 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 276 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 311 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 317 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 362 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 368 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 467 | fs/open.c | int flag,error,fd; |
fd | 505 | fs/open.c | for(fd = 0; fd < NR_OPEN && fd < current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) { |
fd | 506 | fs/open.c | if (!current->files->fd[fd]) { |
fd | 507 | fs/open.c | current->files->fd[fd] = f; |
fd | 508 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 509 | fs/open.c | return fd; |
fd | 567 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 571 | fs/open.c | if (fd >= NR_OPEN) |
fd | 573 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 574 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 576 | 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 | 239 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 244 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 246 | 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 | 17 | fs/read_write.c | asmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin) |
fd | 22 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 53 | fs/read_write.c | asmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high, |
fd | 62 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 102 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
fd | 108 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 122 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
fd | 129 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 161 | fs/read_write.c | asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count) |
fd | 167 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
fd | 202 | fs/read_write.c | asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count) |
fd | 208 | 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 | 185 | fs/smbfs/inode.c | unsigned int fd; |
fd | 195 | fs/smbfs/inode.c | fd = data->fd; |
fd | 201 | 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 | 206 | include/asm-alpha/unistd.h | static inline int dup(int fd) |
fd | 208 | include/asm-alpha/unistd.h | return sys_dup(fd); |
fd | 211 | include/asm-alpha/unistd.h | static inline int close(int fd) |
fd | 213 | include/asm-alpha/unistd.h | return sys_close(fd); |
fd | 225 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
fd | 227 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
fd | 231 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
fd | 233 | 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 | 24 | include/linux/nfs_mount.h | int fd; /* 1 */ |
fd | 107 | 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 | 371 | kernel/exit.c | struct file * filp = files->fd[i]; |
fd | 374 | kernel/exit.c | files->fd[i] = NULL; |
fd | 171 | kernel/fork.c | struct file * f = current->files->fd[i]; |
fd | 174 | 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 | 163 | net/socket.c | int fd; |
fd | 174 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 175 | net/socket.c | if (!current->files->fd[fd]) |
fd | 177 | net/socket.c | if (fd == NR_OPEN) |
fd | 183 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 184 | net/socket.c | current->files->fd[fd] = file; |
fd | 193 | net/socket.c | return(fd); |
fd | 213 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 218 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 491 | net/socket.c | int i, fd; |
fd | 542 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 548 | net/socket.c | return(fd); |
fd | 620 | net/socket.c | asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 627 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 630 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 650 | net/socket.c | asmlinkage int sys_listen(int fd, int backlog) |
fd | 654 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 656 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 679 | net/socket.c | asmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 687 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 689 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 721 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 732 | net/socket.c | return(fd); |
fd | 741 | net/socket.c | asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 749 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 751 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 792 | net/socket.c | asmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 799 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 801 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 817 | net/socket.c | asmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 824 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 826 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 842 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
fd | 848 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 850 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 867 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 875 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 877 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 902 | net/socket.c | asmlinkage int sys_recv(int fd, void * buff, int len, unsigned flags) |
fd | 908 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 911 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 931 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * buff, int len, unsigned flags, |
fd | 939 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 941 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 968 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 973 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 975 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 986 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 991 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 993 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1006 | net/socket.c | asmlinkage int sys_shutdown(int fd, int how) |
fd | 1011 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1013 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1023 | net/socket.c | asmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1033 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1035 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1058 | net/socket.c | asmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1070 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1072 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |