tag | line | file | source code |
fd | 1508 | 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 | 201 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 379 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 654 | fs/binfmt_elf.c | load_elf_library(int fd){ |
fd | 671 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 677 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 746 | 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 | 50 | fs/exec.c | static int load_aout_library(int fd); |
fd | 102 | fs/exec.c | int error, fd; |
fd | 110 | fs/exec.c | fd = 0; |
fd | 111 | fs/exec.c | fpp = current->files->fd; |
fd | 115 | fs/exec.c | if (++fd > NR_OPEN) |
fd | 135 | fs/exec.c | return fd; |
fd | 288 | fs/exec.c | int fd, retval; |
fd | 292 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 293 | fs/exec.c | if (fd < 0) |
fd | 294 | fs/exec.c | return fd; |
fd | 295 | fs/exec.c | file = current->files->fd[fd]; |
fd | 302 | fs/exec.c | retval = fn(fd); |
fd | 307 | fs/exec.c | sys_close(fd); |
fd | 799 | fs/exec.c | int fd, error; |
fd | 845 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 847 | fs/exec.c | if (fd < 0) |
fd | 848 | fs/exec.c | return fd; |
fd | 849 | fs/exec.c | file = current->files->fd[fd]; |
fd | 851 | fs/exec.c | sys_close(fd); |
fd | 866 | fs/exec.c | sys_close(fd); |
fd | 875 | fs/exec.c | sys_close(fd); |
fd | 909 | fs/exec.c | static int load_aout_library(int fd) |
fd | 919 | 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 | 34 | fs/locks.c | unsigned int fd); |
fd | 37 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd); |
fd | 39 | fs/locks.c | unsigned int fd); |
fd | 48 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
fd | 55 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 63 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
fd | 88 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
fd | 99 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
fd | 105 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
fd | 162 | fs/locks.c | return lock_it(filp, &file_lock, fd); |
fd | 200 | fs/locks.c | unsigned int fd) |
fd | 208 | fs/locks.c | while ((fl = *before) && (task != fl->fl_owner || fd != fl->fl_fd)) |
fd | 213 | fs/locks.c | while ((fl = *before) && task == fl->fl_owner && fd == fl->fl_fd) |
fd | 223 | fs/locks.c | unsigned int fd) |
fd | 246 | fs/locks.c | fl->fl_fd = fd; |
fd | 296 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd) |
fd | 420 | fs/locks.c | if (! (caller = alloc_lock(before, caller, fd))) |
fd | 430 | fs/locks.c | if (! (left = alloc_lock(before, right, fd))) { |
fd | 452 | fs/locks.c | unsigned int fd) |
fd | 480 | 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 | 223 | fs/open.c | asmlinkage int sys_fchdir(unsigned int fd) |
fd | 228 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 263 | fs/open.c | asmlinkage int sys_fchmod(unsigned int fd, mode_t mode) |
fd | 269 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 308 | fs/open.c | asmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group) |
fd | 314 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 407 | fs/open.c | int flag,error,fd; |
fd | 409 | fs/open.c | for(fd=0 ; fd<NR_OPEN ; fd++) |
fd | 410 | fs/open.c | if (!current->files->fd[fd]) |
fd | 412 | fs/open.c | if (fd>=NR_OPEN) |
fd | 414 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
fd | 418 | fs/open.c | current->files->fd[fd] = f; |
fd | 432 | fs/open.c | current->files->fd[fd]=NULL; |
fd | 449 | fs/open.c | current->files->fd[fd]=NULL; |
fd | 454 | fs/open.c | return (fd); |
fd | 475 | fs/open.c | int close_fp(struct file *filp, unsigned int fd) |
fd | 485 | fs/open.c | fcntl_remove_locks(current, filp, fd); |
fd | 499 | fs/open.c | asmlinkage int sys_close(unsigned int fd) |
fd | 503 | fs/open.c | if (fd >= NR_OPEN) |
fd | 505 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 506 | fs/open.c | if (!(filp = current->files->fd[fd])) |
fd | 508 | fs/open.c | current->files->fd[fd] = NULL; |
fd | 509 | 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 | 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 | 121 | fs/proc/fd.c | unsigned int fd, pid, ino; |
fd | 132 | fs/proc/fd.c | fd = filp->f_pos; |
fd | 134 | fs/proc/fd.c | if (fd < 2) { |
fd | 135 | fs/proc/fd.c | i = j = fd+1; |
fd | 136 | fs/proc/fd.c | if (!fd) |
fd | 137 | fs/proc/fd.c | fd = inode->i_ino; |
fd | 139 | fs/proc/fd.c | fd = (inode->i_ino & 0xffff0000) | PROC_PID_INO; |
fd | 140 | fs/proc/fd.c | put_fs_long(fd, &dirent->d_ino); |
fd | 147 | fs/proc/fd.c | fd -= 2; |
fd | 153 | fs/proc/fd.c | if (fd >= NR_OPEN) |
fd | 156 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
fd | 161 | fs/proc/fd.c | while (fd >= j) { |
fd | 166 | fs/proc/fd.c | ino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd; |
fd | 172 | fs/proc/fd.c | put_fs_byte('0'+(fd % 10), i+dirent->d_name); |
fd | 173 | fs/proc/fd.c | fd /= 10; |
fd | 183 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 188 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 190 | 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 | 159 | fs/stat.c | asmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf) |
fd | 168 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
fd | 174 | fs/stat.c | asmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf) |
fd | 183 | 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 | 172 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 329 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 565 | ibcs/binfmt_elf.c | static int load_elf_library(int fd){ |
fd | 578 | ibcs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 584 | ibcs/binfmt_elf.c | sys_close(fd); |
fd | 637 | 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 | 89 | 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 | 83 | include/linux/types.h | #define __FD_SET(fd,fdsetp) \ |
fd | 85 | include/linux/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 88 | include/linux/types.h | #define __FD_CLR(fd,fdsetp) \ |
fd | 90 | include/linux/types.h | "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd))) |
fd | 93 | include/linux/types.h | #define __FD_ISSET(fd,fdsetp) (__extension__ ({ \ |
fd | 96 | 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 | 393 | kernel/exit.c | if (current->files->fd[i]) |
fd | 128 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
fd | 129 | kernel/fork.c | p->files->fd[i] = copy_fd(f); |
fd | 132 | 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 | 216 | net/socket.c | static inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 220 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 627 | net/socket.c | int i, fd; |
fd | 677 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 683 | net/socket.c | return(fd); |
fd | 755 | net/socket.c | static int sock_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 762 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 765 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 785 | net/socket.c | static int sock_listen(int fd, int backlog) |
fd | 789 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 791 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 814 | net/socket.c | static int sock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_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 | 855 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 866 | net/socket.c | return(fd); |
fd | 875 | net/socket.c | static int sock_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 883 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 885 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 927 | net/socket.c | static int sock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 934 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 936 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 952 | net/socket.c | static int sock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 959 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 961 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 977 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
fd | 983 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 985 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1002 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 1010 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1012 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1037 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
fd | 1043 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1046 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1066 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
fd | 1074 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1076 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1103 | net/socket.c | static int sock_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1108 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1110 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1121 | net/socket.c | static int sock_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1126 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1128 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1141 | net/socket.c | static int sock_shutdown(int fd, int how) |
fd | 1146 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1148 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |