tag | line | file | source code |
fd | 43 | arch/alpha/boot/tools/build.c | int fd, i; |
fd | 85 | arch/alpha/boot/tools/build.c | fd = open(infile, O_RDONLY); |
fd | 86 | arch/alpha/boot/tools/build.c | if (fd < 0) { |
fd | 90 | arch/alpha/boot/tools/build.c | if (read(fd, &fhdr, sizeof(struct filehdr)) != sizeof(struct filehdr)) |
fd | 96 | arch/alpha/boot/tools/build.c | if (read(fd, &ahdr, sizeof(struct aouthdr)) != sizeof(struct aouthdr)) |
fd | 99 | arch/alpha/boot/tools/build.c | if (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr)) |
fd | 125 | arch/alpha/boot/tools/build.c | if (lseek(fd, offset, SEEK_SET) != offset) |
fd | 132 | arch/alpha/boot/tools/build.c | if (read(fd, buffer, num) != num) |
fd | 34 | arch/i386/ibcs/binfmt_coff.c | asmlinkage int sys_close (unsigned fd); |
fd | 125 | arch/i386/ibcs/binfmt_coff.c | int fd = -1; /* Open file descriptor */ |
fd | 379 | arch/i386/ibcs/binfmt_coff.c | fd = open_inode (bprm->inode, O_RDONLY); |
fd | 380 | arch/i386/ibcs/binfmt_coff.c | if (fd < 0) { |
fd | 382 | arch/i386/ibcs/binfmt_coff.c | printk ("can not open inode, result = %d\n", fd); |
fd | 384 | arch/i386/ibcs/binfmt_coff.c | status = fd; |
fd | 387 | arch/i386/ibcs/binfmt_coff.c | fp = current->files->fd[fd]; |
fd | 390 | arch/i386/ibcs/binfmt_coff.c | fd = -1; /* Invalidate the open file descriptor */ |
fd | 568 | arch/i386/ibcs/binfmt_coff.c | if (fd >= 0) |
fd | 569 | arch/i386/ibcs/binfmt_coff.c | sys_close (fd); /* Close unused code file */ |
fd | 737 | arch/i386/ibcs/binfmt_coff.c | load_coff_library (int fd) |
fd | 759 | arch/i386/ibcs/binfmt_coff.c | file = current->files->fd[fd]; |
fd | 29 | arch/i386/ibcs/binfmt_elf.c | asmlinkage int sys_close(unsigned fd); |
fd | 172 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 329 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
fd | 565 | arch/i386/ibcs/binfmt_elf.c | static int load_elf_library(int fd){ |
fd | 578 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 584 | arch/i386/ibcs/binfmt_elf.c | sys_close(fd); |
fd | 637 | arch/i386/ibcs/binfmt_elf.c | sys_close(fd); |
fd | 1555 | 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 | 653 | fs/binfmt_elf.c | load_elf_library(int fd){ |
fd | 670 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
fd | 676 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 745 | fs/binfmt_elf.c | SYS(close)(fd); |
fd | 239 | fs/buffer.c | asmlinkage int sys_fsync(unsigned int fd) |
fd | 244 | 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 | 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 | 269 | fs/exec.c | int fd, retval; |
fd | 273 | fs/exec.c | fd = sys_open(library, 0, 0); |
fd | 274 | fs/exec.c | if (fd < 0) |
fd | 275 | fs/exec.c | return fd; |
fd | 276 | fs/exec.c | file = current->files->fd[fd]; |
fd | 283 | fs/exec.c | retval = fn(fd); |
fd | 288 | fs/exec.c | sys_close(fd); |
fd | 749 | fs/exec.c | int fd, error; |
fd | 795 | fs/exec.c | fd = open_inode(bprm->inode, O_RDONLY); |
fd | 797 | fs/exec.c | if (fd < 0) |
fd | 798 | fs/exec.c | return fd; |
fd | 799 | fs/exec.c | file = current->files->fd[fd]; |
fd | 801 | fs/exec.c | sys_close(fd); |
fd | 816 | fs/exec.c | sys_close(fd); |
fd | 825 | fs/exec.c | sys_close(fd); |
fd | 858 | fs/exec.c | static int load_aout_library(int fd) |
fd | 868 | 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 | 32 | fs/nfs/inode.c | extern int close_fp(struct file *filp, unsigned int fd); |
fd | 78 | fs/nfs/inode.c | unsigned int fd; |
fd | 87 | fs/nfs/inode.c | fd = data->fd; |
fd | 92 | 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 | 184 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
fd | 189 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
fd | 191 | 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 | 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 | 20 | include/linux/time.h | #define FD_SET(fd,fdsetp) set_bit(fd,fdsetp) |
fd | 21 | include/linux/time.h | #define FD_CLR(fd,fdsetp) clear_bit(fd,fdsetp) |
fd | 22 | include/linux/time.h | #define FD_ISSET(fd,fdsetp) (0 != test_bit(fd,fdsetp)) |
fd | 26 | include/linux/time.h | #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) |
fd | 27 | include/linux/time.h | #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) |
fd | 28 | 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 | 54 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
fd | 55 | init/main.c | static inline _syscall1(int,dup,int,fd) |
fd | 58 | init/main.c | static inline _syscall1(int,close,int,fd) |
fd | 382 | 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 | 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 | 169 | net/socket.c | int fd; |
fd | 180 | net/socket.c | for (fd = 0; fd < NR_OPEN; ++fd) |
fd | 181 | net/socket.c | if (!current->files->fd[fd]) |
fd | 183 | net/socket.c | if (fd == NR_OPEN) |
fd | 189 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
fd | 190 | net/socket.c | current->files->fd[fd] = file; |
fd | 199 | net/socket.c | return(fd); |
fd | 230 | net/socket.c | static inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
fd | 234 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
fd | 663 | net/socket.c | int i, fd; |
fd | 713 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
fd | 719 | net/socket.c | return(fd); |
fd | 791 | net/socket.c | static int sock_bind(int fd, struct sockaddr *umyaddr, int addrlen) |
fd | 798 | 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 | 821 | net/socket.c | static int sock_listen(int fd, int backlog) |
fd | 825 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 827 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 850 | net/socket.c | static int sock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen) |
fd | 858 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 860 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 891 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
fd | 902 | net/socket.c | return(fd); |
fd | 911 | net/socket.c | static int sock_connect(int fd, struct sockaddr *uservaddr, int addrlen) |
fd | 919 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
fd | 921 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
fd | 962 | net/socket.c | static int sock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 969 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 971 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 987 | net/socket.c | static int sock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len) |
fd | 994 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
fd | 996 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1012 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
fd | 1018 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1020 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1037 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
fd | 1045 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1047 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1072 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
fd | 1078 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1081 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1101 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
fd | 1109 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1111 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1138 | net/socket.c | static int sock_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
fd | 1143 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1145 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1156 | net/socket.c | static int sock_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
fd | 1161 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1163 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
fd | 1176 | net/socket.c | static int sock_shutdown(int fd, int how) |
fd | 1181 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
fd | 1183 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |