tag | line | file | source code |
fd | 1491 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
fd | 355 | drivers/sound/configure.c | int fd; |
fd | 360 | drivers/sound/configure.c | if ((fd = open (path, 0)) > 0) |
fd | 368 | drivers/sound/configure.c | count = read (fd, &c, 1); |
fd | 379 | drivers/sound/configure.c | close (fd); |
fd | 45 | fs/binfmt_elf.c | static int load_elf_library(int fd); |
fd | 202 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 380 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 655 | fs/binfmt_elf.c | load_elf_library(int fd){ |
fd | 672 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 678 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 747 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 241 | fs/buffer.c | asmlinkage int sys_fsync(unsigned int fd) |
fd | 246 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 54 | 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 | 139 | fs/exec.c | return fd; |
fd | 292 | fs/exec.c | int fd, retval; |
fd | 296 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 297 | fs/exec.c | if (fd < 0) |
fd | 298 | fs/exec.c | return fd; |
fd | 299 | fs/exec.c | file = current->files->fd[fd]; |
fd | 306 | fs/exec.c | retval = fn(fd); |
fd | 311 | fs/exec.c | sys_close(fd); |
fd | 791 | fs/exec.c | int fd, error; |
fd | 837 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 839 | fs/exec.c | if (fd < 0) |
fd | 840 | fs/exec.c | return fd; |
fd | 841 | fs/exec.c | file = current->files->fd[fd]; |
fd | 843 | fs/exec.c | sys_close(fd); |
fd | 858 | fs/exec.c | sys_close(fd); |
fd | 867 | fs/exec.c | sys_close(fd); |
fd | 901 | fs/exec.c | static int load_aout_library(int fd) |
fd | 911 | 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 int 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 | 57 | fs/ioctl.c | asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
fd | 62 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 66 | fs/ioctl.c | FD_SET(fd, ¤t->files->close_on_exec); |
fd | 70 | fs/ioctl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 28 | fs/locks.c | unsigned int fd); |
fd | 31 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd); |
fd | 33 | fs/locks.c | unsigned int fd); |
fd | 59 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
fd | 66 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 74 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
fd | 99 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
fd | 110 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 116 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
fd | 173 | fs/locks.c | return lock_it(filp, &file_lock, fd); |
fd | 211 | fs/locks.c | unsigned int fd) |
fd | 219 | fs/locks.c | while ((fl = *before) && (task != fl->fl_owner || fd != fl->fl_fd)) |
fd | 224 | fs/locks.c | while ((fl = *before) && task == fl->fl_owner && fd == fl->fl_fd) |
fd | 234 | fs/locks.c | unsigned int fd) |
fd | 257 | fs/locks.c | fl->fl_fd = fd; |
fd | 307 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd) |
fd | 431 | fs/locks.c | if (! (caller = alloc_lock(before, caller, fd))) |
fd | 441 | fs/locks.c | if (! (left = alloc_lock(before, right, fd))) { |
fd | 460 | fs/locks.c | unsigned int fd) |
fd | 479 | fs/locks.c | tmp->fl_fd = fd; /* FIXME: needed? */ |
fd | 21 | fs/nfs/inode.c | extern int close_fp(struct file *filp, unsigned int fd); |
fd | 66 | fs/nfs/inode.c | unsigned int fd; |
fd | 75 | fs/nfs/inode.c | fd = data->fd; |
fd | 80 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
fd | 22 | fs/open.c | extern void fcntl_remove_locks(struct task_struct *, struct file *, unsigned int fd); |
fd | 49 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
fd | 58 | 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 | 220 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 225 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 260 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 266 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 305 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 311 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 404 | fs/open.c | int flag,error,fd; |
fd | 406 | fs/open.c | for(fd=0 ; fd<NR_OPEN ; fd++) |
fd | 407 | fs/open.c | if (!current->files->fd[fd]) |
fd | 409 | fs/open.c | if (fd>=NR_OPEN) |
fd | 411 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 415 | fs/open.c | current->files->fd[fd] = f; |
fd | 426 | fs/open.c | current->files->fd[fd]=NULL; |
fd | 443 | fs/open.c | current->files->fd[fd]=NULL; |
fd | 448 | fs/open.c | return (fd); |
fd | 469 | fs/open.c | int close_fp(struct file *filp, unsigned int fd) |
fd | 479 | fs/open.c | fcntl_remove_locks(current, filp, fd); |
fd | 493 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 497 | fs/open.c | if (fd >= NR_OPEN) |
fd | 499 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 500 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 502 | fs/open.c | current->files->fd[fd] = NULL; |
fd | 503 | fs/open.c | return (close_fp (filp, fd)); |
fd | 382 | fs/pipe.c | int fd[2]; |
fd | 397 | fs/pipe.c | if (!current->files->fd[i]) { |
fd | 398 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
fd | 402 | fs/pipe.c | current->files->fd[fd[0]]=NULL; |
fd | 409 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
fd | 410 | fs/pipe.c | current->files->fd[fd[1]] = NULL; |
fd | 423 | fs/pipe.c | put_fs_long(fd[0],0+fildes); |
fd | 424 | fs/pipe.c | put_fs_long(fd[1],1+fildes); |
fd | 56 | fs/proc/fd.c | unsigned int ino, pid, fd, c; |
fd | 87 | fs/proc/fd.c | fd = 0; |
fd | 92 | fs/proc/fd.c | fd = 0xfffff; |
fd | 95 | fs/proc/fd.c | fd *= 10; |
fd | 96 | fs/proc/fd.c | fd += c; |
fd | 97 | fs/proc/fd.c | if (fd & 0xffff0000) { |
fd | 98 | fs/proc/fd.c | fd = 0xfffff; |
fd | 108 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 111 | fs/proc/fd.c | ino = (pid << 16) + 0x100 + fd; |
fd | 122 | fs/proc/fd.c | unsigned int fd, pid, ino; |
fd | 134 | fs/proc/fd.c | fd = filp->f_pos; |
fd | 136 | fs/proc/fd.c | if (fd < 2) { |
fd | 137 | fs/proc/fd.c | i = j = fd+1; |
fd | 138 | fs/proc/fd.c | if (!fd) |
fd | 139 | fs/proc/fd.c | fd = inode->i_ino; |
fd | 141 | fs/proc/fd.c | fd = (inode->i_ino & 0xffff0000) | 2; |
fd | 142 | fs/proc/fd.c | put_fs_long(fd, &dirent->d_ino); |
fd | 149 | fs/proc/fd.c | fd -= 2; |
fd | 155 | fs/proc/fd.c | if (fd >= NR_OPEN) |
fd | 158 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 163 | fs/proc/fd.c | while (fd >= j) { |
fd | 168 | fs/proc/fd.c | ino = (pid << 16) + 0x100 + fd; |
fd | 174 | fs/proc/fd.c | put_fs_byte('0'+(fd % 10), i+dirent->d_name); |
fd | 175 | fs/proc/fd.c | fd /= 10; |
fd | 174 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 179 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 181 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
fd | 68 | fs/proc/link.c | int i, fd; |
fd | 72 | fs/proc/link.c | for(fd=0 ; fd<NR_OPEN ; fd++) |
fd | 73 | fs/proc/link.c | if (current->files->fd[fd] == f) |
fd | 75 | fs/proc/link.c | if (fd>=NR_OPEN) |
fd | 87 | fs/proc/link.c | ((ino >> 8) != 1) || !(new_f = p->files->fd[ino & 0x0ff])) |
fd | 94 | fs/proc/link.c | current->files->fd[fd] = new_f; |
fd | 150 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
fd | 157 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
fd | 25 | fs/read_write.c | asmlinkage int sys_readdir(unsigned int fd, struct dirent * dirent, unsigned int count) |
fd | 31 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || |
fd | 46 | fs/read_write.c | asmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin) |
fd | 51 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 82 | fs/read_write.c | asmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high, |
fd | 91 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
fd | 121 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
fd | 127 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 141 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
fd | 148 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
fd | 104 | fs/select.c | if (!current->files->fd[i]) |
fd | 106 | fs/select.c | if (!current->files->fd[i]->f_inode) |
fd | 125 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
fd | 130 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
fd | 135 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
fd | 155 | fs/stat.c | asmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf) |
fd | 164 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 170 | fs/stat.c | asmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf) |
fd | 179 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 34 | ibcs/binfmt_coff.c | asmlinkage int sys_close (unsigned fd); |
fd | 125 | ibcs/binfmt_coff.c | int fd = -1; /* Open file descriptor */ |
fd | 379 | ibcs/binfmt_coff.c | fd = open_inode (bprm->inode, O_RDONLY); |
fd | 380 | ibcs/binfmt_coff.c | if (fd < 0) { |
fd | 382 | ibcs/binfmt_coff.c | printk ("can not open inode, result = %d\n", fd); |
fd | 384 | ibcs/binfmt_coff.c | status = fd; |
fd | 387 | ibcs/binfmt_coff.c | fp = current->files->fd[fd]; |
fd | 390 | ibcs/binfmt_coff.c | fd = -1; /* Invalidate the open file descriptor */ |
fd | 568 | ibcs/binfmt_coff.c | if (fd >= 0) |
fd | 569 | ibcs/binfmt_coff.c | sys_close (fd); /* Close unused code file */ |
fd | 737 | ibcs/binfmt_coff.c | load_coff_library (int fd) |
fd | 759 | ibcs/binfmt_coff.c | file = current->files->fd[fd]; |
fd | 29 | ibcs/binfmt_elf.c | asmlinkage int sys_close(unsigned fd); |
fd | 173 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 330 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 566 | ibcs/binfmt_elf.c | static int load_elf_library(int fd){ |
fd | 579 | ibcs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 585 | ibcs/binfmt_elf.c | sys_close(fd); |
fd | 638 | ibcs/binfmt_elf.c | sys_close(fd); |
fd | 35 | include/linux/binfmts.h | int (*load_shlib)(int fd); |
fd | 24 | include/linux/nfs_mount.h | int fd; /* 1 */ |
fd | 196 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
fd | 17 | include/linux/time.h | #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) |
fd | 18 | include/linux/time.h | #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) |
fd | 19 | include/linux/time.h | #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp) |
fd | 100 | include/linux/types.h | #define __FD_SET(fd,fdsetp) \ |
fd | 102 | include/linux/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 105 | include/linux/types.h | #define __FD_CLR(fd,fdsetp) \ |
fd | 107 | include/linux/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 110 | include/linux/types.h | #define __FD_ISSET(fd,fdsetp) (__extension__ ({ \ |
fd | 113 | include/linux/types.h | :"=q" (__result) :"r" ((int) (fd)), \ |
fd | 53 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 54 | init/main.c | static inline _syscall1(int,dup,int,fd) |
fd | 57 | init/main.c | static inline _syscall1(int,close,int,fd) |
fd | 392 | kernel/exit.c | if (current->files->fd[i]) |
fd | 124 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
fd | 125 | kernel/fork.c | p->files->fd[i] = copy_fd(f); |
fd | 128 | 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 | 190 | mm/mmap.c | unsigned long fd = get_fs_long(buffer+4); |
fd | 191 | mm/mmap.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 155 | net/socket.c | int fd; |
fd | 166 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 167 | net/socket.c | if (!current->files->fd[fd]) |
fd | 169 | net/socket.c | if (fd == NR_OPEN) |
fd | 175 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 176 | net/socket.c | current->files->fd[fd] = file; |
fd | 185 | net/socket.c | return(fd); |
fd | 195 | net/socket.c | static inline void toss_fd(int fd) |
fd | 197 | net/socket.c | sys_close(fd); /* the count protects us from iput */ |
fd | 227 | net/socket.c | static inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 231 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 638 | net/socket.c | int i, fd; |
fd | 688 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 694 | net/socket.c | return(fd); |
fd | 762 | net/socket.c | static int sock_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 769 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 772 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 792 | net/socket.c | static int sock_listen(int fd, int backlog) |
fd | 796 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 798 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 821 | net/socket.c | static int sock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 829 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 831 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 862 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 873 | net/socket.c | return(fd); |
fd | 882 | net/socket.c | static int sock_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 890 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 892 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 934 | net/socket.c | static int sock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 941 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 943 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 959 | net/socket.c | static int sock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 966 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 968 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 984 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
fd | 990 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 992 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1009 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 1017 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1019 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1044 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
fd | 1050 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1053 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1073 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
fd | 1081 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1083 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1110 | net/socket.c | static int sock_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1115 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1117 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1128 | net/socket.c | static int sock_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1133 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1135 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1148 | net/socket.c | static int sock_shutdown(int fd, int how) |
fd | 1153 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1155 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |