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 | 1601 | 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 | 1325 | drivers/sound/configure.c | int fd; |
fd | 1330 | drivers/sound/configure.c | if ((fd = open (path, 0)) > 0) |
fd | 1338 | drivers/sound/configure.c | count = read (fd, &c, 1); |
fd | 1349 | 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 | 240 | fs/buffer.c | asmlinkage int sys_fsync(unsigned int fd) |
fd | 245 | 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 | 277 | fs/exec.c | int fd, retval; |
fd | 281 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 282 | fs/exec.c | if (fd < 0) |
fd | 283 | fs/exec.c | return fd; |
fd | 284 | fs/exec.c | file = current->files->fd[fd]; |
fd | 291 | fs/exec.c | retval = fn(fd); |
fd | 296 | fs/exec.c | sys_close(fd); |
fd | 811 | fs/exec.c | int fd; |
fd | 863 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 865 | fs/exec.c | if (fd < 0) |
fd | 866 | fs/exec.c | return fd; |
fd | 867 | fs/exec.c | file = current->files->fd[fd]; |
fd | 869 | fs/exec.c | sys_close(fd); |
fd | 884 | fs/exec.c | sys_close(fd); |
fd | 893 | fs/exec.c | sys_close(fd); |
fd | 932 | fs/exec.c | static int load_aout_library(int fd) |
fd | 942 | 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 | 81 | fs/nfs/inode.c | unsigned int fd; |
fd | 93 | fs/nfs/inode.c | fd = data->fd; |
fd | 98 | 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 | 153 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 157 | fs/proc/fd.c | i = fd; |
fd | 164 | fs/proc/fd.c | ino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd; |
fd | 165 | fs/proc/fd.c | if (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0) |
fd | 268 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 273 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 275 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
fd | 69 | fs/proc/link.c | int i, fd; |
fd | 73 | fs/proc/link.c | for(fd=0 ; fd<NR_OPEN ; fd++) |
fd | 74 | fs/proc/link.c | if (current->files->fd[fd] == f) |
fd | 76 | fs/proc/link.c | if (fd>=NR_OPEN) |
fd | 88 | fs/proc/link.c | ((ino >> 8) != 1) || !(new_f = p->files->fd[ino & 0x0ff])) |
fd | 95 | fs/proc/link.c | current->files->fd[fd] = new_f; |
fd | 151 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
fd | 158 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
fd | 16 | fs/read_write.c | asmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin) |
fd | 21 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 52 | fs/read_write.c | asmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high, |
fd | 61 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 101 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
fd | 107 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 121 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
fd | 128 | 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 | 209 | include/asm-alpha/unistd.h | static inline int dup(int fd) |
fd | 211 | include/asm-alpha/unistd.h | return sys_dup(fd); |
fd | 214 | include/asm-alpha/unistd.h | static inline int close(int fd) |
fd | 216 | include/asm-alpha/unistd.h | return sys_close(fd); |
fd | 228 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
fd | 230 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
fd | 234 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
fd | 236 | 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 | 259 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 260 | include/asm-i386/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 263 | 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 | 102 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
fd | 18 | include/linux/smb_mount.h | unsigned int fd; |
fd | 21 | include/linux/time.h | #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) |
fd | 22 | include/linux/time.h | #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) |
fd | 23 | include/linux/time.h | #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp) |
fd | 369 | kernel/exit.c | struct file * filp = files->fd[i]; |
fd | 372 | kernel/exit.c | files->fd[i] = NULL; |
fd | 155 | kernel/fork.c | struct file * f = current->files->fd[i]; |
fd | 158 | 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 | 161 | net/socket.c | int fd; |
fd | 172 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 173 | net/socket.c | if (!current->files->fd[fd]) |
fd | 175 | net/socket.c | if (fd == NR_OPEN) |
fd | 181 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 182 | net/socket.c | current->files->fd[fd] = file; |
fd | 191 | net/socket.c | return(fd); |
fd | 211 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 216 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 489 | net/socket.c | int i, fd; |
fd | 540 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 546 | net/socket.c | return(fd); |
fd | 618 | net/socket.c | asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 625 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 628 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 648 | net/socket.c | asmlinkage int sys_listen(int fd, int backlog) |
fd | 652 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 654 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 677 | net/socket.c | asmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 685 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 687 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 719 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 730 | net/socket.c | return(fd); |
fd | 739 | net/socket.c | asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 747 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 749 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 790 | net/socket.c | asmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 797 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 799 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 815 | net/socket.c | asmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 822 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 824 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 840 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
fd | 846 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 848 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 865 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 873 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 875 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 900 | net/socket.c | asmlinkage int sys_recv(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 | 909 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 929 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * buff, int len, unsigned flags, |
fd | 937 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 939 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 966 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 971 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 973 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 984 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 989 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 991 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1004 | net/socket.c | asmlinkage int sys_shutdown(int fd, int how) |
fd | 1009 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1011 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1021 | net/socket.c | asmlinkage int sys_sendmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1031 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1033 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1056 | net/socket.c | asmlinkage int sys_recvmsg(int fd, struct msghdr *msg, unsigned int flags) |
fd | 1068 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1070 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |