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 | 1576 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
fd | 1066 | drivers/net/wavelan.c | fd_t fd; |
fd | 1085 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1086 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
fd | 1087 | drivers/net/wavelan.c | fd.fd_link_offset = rx_next; |
fd | 1088 | drivers/net/wavelan.c | fd.fd_rbd_offset = rx + sizeof(fd); |
fd | 1089 | drivers/net/wavelan.c | obram_write(ioaddr, rx, (unsigned char *)&fd, sizeof(fd)); |
fd | 1093 | drivers/net/wavelan.c | rbd.rbd_bufl = rx + sizeof(fd) + sizeof(rbd); |
fd | 1096 | drivers/net/wavelan.c | obram_write(ioaddr, rx + sizeof(fd), (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1486 | drivers/net/wavelan.c | fd_t fd; |
fd | 1492 | drivers/net/wavelan.c | obram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd)); |
fd | 1494 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_C) != FD_STATUS_C) |
fd | 1501 | drivers/net/wavelan.c | (fd.fd_status & (FD_STATUS_B | FD_STATUS_OK)) |
fd | 1513 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_OK) != FD_STATUS_OK) |
fd | 1517 | 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 | 1521 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S6) != 0) |
fd | 1524 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S7) != 0) |
fd | 1530 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S8) != 0) |
fd | 1536 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S9) != 0) |
fd | 1542 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S10) != 0) |
fd | 1548 | drivers/net/wavelan.c | if ((fd.fd_status & FD_STATUS_S11) != 0) |
fd | 1555 | drivers/net/wavelan.c | if (fd.fd_rbd_offset == I82586NULL) |
fd | 1559 | drivers/net/wavelan.c | obram_read(ioaddr, fd.fd_rbd_offset, (unsigned char *)&rbd, sizeof(rbd)); |
fd | 1605 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
fd | 1610 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
fd | 1612 | drivers/net/wavelan.c | printk("%s: fd_length=%d\n", dev->name, fd.fd_length); |
fd | 1678 | drivers/net/wavelan.c | fd.fd_status = 0; |
fd | 1679 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status)); |
fd | 1681 | drivers/net/wavelan.c | fd.fd_command = FD_COMMAND_EL; |
fd | 1682 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1684 | drivers/net/wavelan.c | fd.fd_command = 0; |
fd | 1685 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
fd | 1688 | 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 | 215 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 408 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 677 | fs/binfmt_elf.c | load_elf_library(int fd){ |
fd | 691 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 697 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 753 | 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 | 270 | fs/exec.c | int fd, retval; |
fd | 274 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 275 | fs/exec.c | if (fd < 0) |
fd | 276 | fs/exec.c | return fd; |
fd | 277 | fs/exec.c | file = current->files->fd[fd]; |
fd | 284 | fs/exec.c | retval = fn(fd); |
fd | 289 | fs/exec.c | sys_close(fd); |
fd | 747 | fs/exec.c | int fd; |
fd | 799 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 801 | fs/exec.c | if (fd < 0) |
fd | 802 | fs/exec.c | return fd; |
fd | 803 | fs/exec.c | file = current->files->fd[fd]; |
fd | 805 | fs/exec.c | sys_close(fd); |
fd | 820 | fs/exec.c | sys_close(fd); |
fd | 829 | fs/exec.c | sys_close(fd); |
fd | 865 | fs/exec.c | static int load_aout_library(int fd) |
fd | 875 | 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 | 50 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
fd | 59 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 111 | fs/open.c | asmlinkage int sys_ftruncate(unsigned int fd, unsigned int length) |
fd | 117 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 275 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 281 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 316 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 322 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 367 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 373 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 472 | fs/open.c | int flag,error,fd; |
fd | 474 | fs/open.c | for(fd=0; fd<NR_OPEN && fd<current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) |
fd | 475 | fs/open.c | if (!current->files->fd[fd]) |
fd | 477 | fs/open.c | if (fd>=NR_OPEN || fd>=current->rlim[RLIMIT_NOFILE].rlim_cur) |
fd | 479 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 483 | fs/open.c | current->files->fd[fd] = f; |
fd | 497 | fs/open.c | current->files->fd[fd]=NULL; |
fd | 514 | fs/open.c | current->files->fd[fd]=NULL; |
fd | 519 | fs/open.c | return (fd); |
fd | 564 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 568 | fs/open.c | if (fd >= NR_OPEN) |
fd | 570 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 571 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 573 | fs/open.c | current->files->fd[fd] = NULL; |
fd | 374 | fs/pipe.c | int do_pipe(int *fd) |
fd | 395 | fs/pipe.c | if (!current->files->fd[i]) { |
fd | 396 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
fd | 404 | 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 | 278 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 283 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 285 | 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 | 186 | fs/smbfs/inode.c | unsigned int fd; |
fd | 196 | fs/smbfs/inode.c | fd = data->fd; |
fd | 202 | 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 | 199 | include/asm-alpha/unistd.h | static inline int dup(int fd) |
fd | 201 | include/asm-alpha/unistd.h | return sys_dup(fd); |
fd | 204 | include/asm-alpha/unistd.h | static inline int close(int fd) |
fd | 206 | include/asm-alpha/unistd.h | return sys_close(fd); |
fd | 218 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
fd | 220 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
fd | 224 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
fd | 226 | 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 | 257 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 258 | include/asm-i386/unistd.h | static inline _syscall1(int,dup,int,fd) |
fd | 261 | 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 | 94 | 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 | 363 | kernel/exit.c | if (current->files->fd[i]) |
fd | 126 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
fd | 127 | kernel/fork.c | p->files->fd[i] = copy_fd(f); |
fd | 130 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
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 | 160 | net/socket.c | int fd; |
fd | 171 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 172 | net/socket.c | if (!current->files->fd[fd]) |
fd | 174 | net/socket.c | if (fd == NR_OPEN) |
fd | 180 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 181 | net/socket.c | current->files->fd[fd] = file; |
fd | 190 | net/socket.c | return(fd); |
fd | 209 | net/socket.c | static inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 214 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 564 | net/socket.c | int i, fd; |
fd | 615 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 621 | net/socket.c | return(fd); |
fd | 693 | net/socket.c | asmlinkage int sys_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 700 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 703 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 723 | net/socket.c | asmlinkage int sys_listen(int fd, int backlog) |
fd | 727 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 729 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 752 | net/socket.c | asmlinkage int sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 760 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 762 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 794 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 805 | net/socket.c | return(fd); |
fd | 814 | net/socket.c | asmlinkage int sys_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 822 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 824 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 865 | net/socket.c | asmlinkage int sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 872 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 874 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 890 | net/socket.c | asmlinkage int sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 897 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 899 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 915 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
fd | 921 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 923 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 940 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 948 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 950 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 975 | net/socket.c | asmlinkage int sys_recv(int fd, void * buff, int len, unsigned flags) |
fd | 981 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 984 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1004 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * buff, int len, unsigned flags, |
fd | 1012 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1014 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1041 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1046 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1048 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1059 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1064 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1066 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1079 | net/socket.c | asmlinkage int sys_shutdown(int fd, int how) |
fd | 1084 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1086 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |