taglinefilesource code
fd42arch/alpha/boot/tools/build.cint fd, i;
fd91arch/alpha/boot/tools/build.cfd = open(infile, O_RDONLY);
fd92arch/alpha/boot/tools/build.cif (fd < 0) {
fd96arch/alpha/boot/tools/build.cif (read(fd, &fhdr, sizeof(struct filehdr)) != sizeof(struct filehdr))
fd102arch/alpha/boot/tools/build.cif (read(fd, &ahdr, sizeof(struct aouthdr)) != sizeof(struct aouthdr))
fd105arch/alpha/boot/tools/build.cif (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr))
fd131arch/alpha/boot/tools/build.cif (lseek(fd, offset, SEEK_SET) != offset)
fd138arch/alpha/boot/tools/build.cif (read(fd, buffer, num) != num)
fd34arch/i386/ibcs/binfmt_coff.casmlinkage int sys_close (unsigned fd);
fd125arch/i386/ibcs/binfmt_coff.cint fd = -1;    /* Open file descriptor                */
fd379arch/i386/ibcs/binfmt_coff.cfd = open_inode (bprm->inode, O_RDONLY);
fd380arch/i386/ibcs/binfmt_coff.cif (fd < 0) {
fd382arch/i386/ibcs/binfmt_coff.cprintk ("can not open inode, result = %d\n", fd);
fd384arch/i386/ibcs/binfmt_coff.cstatus = fd;
fd387arch/i386/ibcs/binfmt_coff.cfp = current->files->fd[fd];
fd390arch/i386/ibcs/binfmt_coff.cfd = -1;    /* Invalidate the open file descriptor */
fd568arch/i386/ibcs/binfmt_coff.cif (fd >= 0)
fd569arch/i386/ibcs/binfmt_coff.csys_close (fd);    /* Close unused code file      */
fd737arch/i386/ibcs/binfmt_coff.cload_coff_library (int fd)
fd759arch/i386/ibcs/binfmt_coff.cfile           = current->files->fd[fd];
fd29arch/i386/ibcs/binfmt_elf.casmlinkage int sys_close(unsigned fd);
fd172arch/i386/ibcs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd329arch/i386/ibcs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd565arch/i386/ibcs/binfmt_elf.cstatic int load_elf_library(int fd){
fd578arch/i386/ibcs/binfmt_elf.cfile = current->files->fd[fd];
fd584arch/i386/ibcs/binfmt_elf.csys_close(fd);
fd637arch/i386/ibcs/binfmt_elf.csys_close(fd);
fd1566drivers/char/tty_io.cfilp = (*p)->files->fd[i];
fd997drivers/net/wavelan.cfd_t    fd;
fd1016drivers/net/wavelan.cfd.fd_status = 0;
fd1017drivers/net/wavelan.cfd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0;
fd1018drivers/net/wavelan.cfd.fd_link_offset = rx_next;
fd1019drivers/net/wavelan.cfd.fd_rbd_offset = rx + sizeof(fd);
fd1020drivers/net/wavelan.cobram_write(ioaddr, rx, (unsigned char *)&fd, sizeof(fd));
fd1024drivers/net/wavelan.crbd.rbd_bufl = rx + sizeof(fd) + sizeof(rbd);
fd1027drivers/net/wavelan.cobram_write(ioaddr, rx + sizeof(fd), (unsigned char *)&rbd, sizeof(rbd));
fd1417drivers/net/wavelan.cfd_t    fd;
fd1423drivers/net/wavelan.cobram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd));
fd1425drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_C) != FD_STATUS_C)
fd1432drivers/net/wavelan.c(fd.fd_status & (FD_STATUS_B | FD_STATUS_OK))
fd1444drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_OK) != FD_STATUS_OK)
fd1448drivers/net/wavelan.cif ((fd.fd_status & (FD_STATUS_S6 | FD_STATUS_S7 | FD_STATUS_S8 | FD_STATUS_S9 | FD_STATUS_S10 | FD_STATUS_S11)) != 0)
fd1452drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S6) != 0)
fd1455drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S7) != 0)
fd1461drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S8) != 0)
fd1467drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S9) != 0)
fd1473drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S10) != 0)
fd1479drivers/net/wavelan.cif ((fd.fd_status & FD_STATUS_S11) != 0)
fd1486drivers/net/wavelan.cif (fd.fd_rbd_offset == I82586NULL)
fd1490drivers/net/wavelan.cobram_read(ioaddr, fd.fd_rbd_offset, (unsigned char *)&rbd, sizeof(rbd));
fd1536drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]);
fd1541drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]);
fd1543drivers/net/wavelan.cprintk("%s: fd_length=%d\n", dev->name, fd.fd_length);
fd1609drivers/net/wavelan.cfd.fd_status = 0;
fd1610drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status));
fd1612drivers/net/wavelan.cfd.fd_command = FD_COMMAND_EL;
fd1613drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command));
fd1615drivers/net/wavelan.cfd.fd_command = 0;
fd1616drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command));
fd1619drivers/net/wavelan.clp->rx_head = fd.fd_link_offset;
fd355drivers/sound/configure.cint             fd;
fd360drivers/sound/configure.cif ((fd = open (path, 0)) > 0)
fd368drivers/sound/configure.ccount = read (fd, &c, 1);
fd379drivers/sound/configure.cclose (fd);
fd50fs/binfmt_elf.cstatic int load_elf_library(int fd);
fd206fs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd377fs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd645fs/binfmt_elf.cload_elf_library(int fd){
fd659fs/binfmt_elf.cfile = current->files->fd[fd];
fd665fs/binfmt_elf.cSYS(close)(fd);
fd724fs/binfmt_elf.cSYS(close)(fd);
fd240fs/buffer.casmlinkage int sys_fsync(unsigned int fd)
fd245fs/buffer.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd53fs/exec.cstatic int load_aout_library(int fd);
fd107fs/exec.cint error, fd;
fd115fs/exec.cfd = 0;
fd116fs/exec.cfpp = current->files->fd;
fd120fs/exec.cif (++fd >= NR_OPEN) {
fd142fs/exec.creturn fd;
fd272fs/exec.cint fd, retval;
fd276fs/exec.cfd = sys_open(library, 0, 0);
fd277fs/exec.cif (fd < 0)
fd278fs/exec.creturn fd;
fd279fs/exec.cfile = current->files->fd[fd];
fd286fs/exec.cretval = fn(fd);
fd291fs/exec.csys_close(fd);
fd741fs/exec.cint fd, error;
fd787fs/exec.cfd = open_inode(bprm->inode, O_RDONLY);
fd789fs/exec.cif (fd < 0)
fd790fs/exec.creturn fd;
fd791fs/exec.cfile = current->files->fd[fd];
fd793fs/exec.csys_close(fd);
fd808fs/exec.csys_close(fd);
fd817fs/exec.csys_close(fd);
fd850fs/exec.cstatic int load_aout_library(int fd)
fd860fs/exec.cfile = current->files->fd[fd];
fd20fs/fcntl.cstatic int dupfd(unsigned int fd, unsigned int arg)
fd22fs/fcntl.cif (fd >= NR_OPEN || !current->files->fd[fd])
fd27fs/fcntl.cif (current->files->fd[arg])
fd34fs/fcntl.c(current->files->fd[arg] = current->files->fd[fd])->f_count++;
fd40fs/fcntl.cif (oldfd >= NR_OPEN || !current->files->fd[oldfd])
fd66fs/fcntl.casmlinkage int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd72fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd76fs/fcntl.creturn dupfd(fd,arg);
fd78fs/fcntl.creturn FD_ISSET(fd, &current->files->close_on_exec);
fd81fs/fcntl.cFD_SET(fd, &current->files->close_on_exec);
fd83fs/fcntl.cFD_CLR(fd, &current->files->close_on_exec);
fd105fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
fd107fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd109fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd58fs/ioctl.casmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd63fs/ioctl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd67fs/ioctl.cFD_SET(fd, &current->files->close_on_exec);
fd71fs/ioctl.cFD_CLR(fd, &current->files->close_on_exec);
fd58fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
fd65fs/locks.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd98fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
fd109fs/locks.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd77fs/nfs/inode.cunsigned int fd;
fd88fs/nfs/inode.cfd = data->fd;
fd93fs/nfs/inode.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd])) {
fd50fs/open.casmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf)
fd59fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd111fs/open.casmlinkage int sys_ftruncate(unsigned int fd, unsigned int length)
fd117fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd227fs/open.casmlinkage int sys_fchdir(unsigned int fd)
fd233fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd268fs/open.casmlinkage int sys_fchmod(unsigned int fd, mode_t mode)
fd274fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd319fs/open.casmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group)
fd325fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd424fs/open.cint flag,error,fd;
fd426fs/open.cfor(fd=0; fd<NR_OPEN && fd<current->rlim[RLIMIT_NOFILE].rlim_cur; fd++)
fd427fs/open.cif (!current->files->fd[fd])
fd429fs/open.cif (fd>=NR_OPEN || fd>=current->rlim[RLIMIT_NOFILE].rlim_cur)
fd431fs/open.cFD_CLR(fd,&current->files->close_on_exec);
fd435fs/open.ccurrent->files->fd[fd] = f;
fd449fs/open.ccurrent->files->fd[fd]=NULL;
fd466fs/open.ccurrent->files->fd[fd]=NULL;
fd471fs/open.creturn (fd);
fd516fs/open.casmlinkage int sys_close(unsigned int fd)
fd520fs/open.cif (fd >= NR_OPEN)
fd522fs/open.cFD_CLR(fd, &current->files->close_on_exec);
fd523fs/open.cif (!(filp = current->files->fd[fd]))
fd525fs/open.ccurrent->files->fd[fd] = NULL;
fd383fs/pipe.cint fd[2];
fd398fs/pipe.cif (!current->files->fd[i]) {
fd399fs/pipe.ccurrent->files->fd[ fd[j]=i ] = f[j];
fd403fs/pipe.ccurrent->files->fd[fd[0]]=NULL;
fd410fs/pipe.ccurrent->files->fd[fd[0]] = NULL;
fd411fs/pipe.ccurrent->files->fd[fd[1]] = NULL;
fd424fs/pipe.cput_fs_long(fd[0],0+fildes);
fd425fs/pipe.cput_fs_long(fd[1],1+fildes);
fd56fs/proc/fd.cunsigned int ino, pid, fd, c;
fd86fs/proc/fd.cfd = 0;
fd91fs/proc/fd.cfd = 0xfffff;
fd94fs/proc/fd.cfd *= 10;
fd95fs/proc/fd.cfd += c;
fd96fs/proc/fd.cif (fd & 0xffff0000) {
fd97fs/proc/fd.cfd = 0xfffff;
fd107fs/proc/fd.cif (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd110fs/proc/fd.cino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd;
fd121fs/proc/fd.cunsigned int fd, pid, ino;
fd132fs/proc/fd.cfd = filp->f_pos;
fd134fs/proc/fd.cif (fd < 2) {
fd135fs/proc/fd.ci = j = fd+1;
fd136fs/proc/fd.cif (!fd)
fd137fs/proc/fd.cfd = inode->i_ino;
fd139fs/proc/fd.cfd = (inode->i_ino & 0xffff0000) | PROC_PID_INO;
fd140fs/proc/fd.cput_fs_long(fd, &dirent->d_ino);
fd147fs/proc/fd.cfd -= 2;
fd153fs/proc/fd.cif (fd >= NR_OPEN)
fd156fs/proc/fd.cif (!p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd161fs/proc/fd.cwhile (fd >= j) {
fd166fs/proc/fd.cino = (pid << 16) + (PROC_PID_FD_DIR << 8) + fd;
fd172fs/proc/fd.cput_fs_byte('0'+(fd % 10), i+dirent->d_name);
fd173fs/proc/fd.cfd /= 10;
fd239fs/proc/inode.cif (ino >= NR_OPEN || !p->files->fd[ino])
fd244fs/proc/inode.cif (p->files->fd[ino]->f_mode & 1)
fd246fs/proc/inode.cif (p->files->fd[ino]->f_mode & 2)
fd69fs/proc/link.cint  i, fd;
fd73fs/proc/link.cfor(fd=0 ; fd<NR_OPEN ; fd++)
fd74fs/proc/link.cif (current->files->fd[fd] == f)
fd76fs/proc/link.cif (fd>=NR_OPEN)
fd88fs/proc/link.c((ino >> 8) != 1) || !(new_f = p->files->fd[ino & 0x0ff]))
fd95fs/proc/link.ccurrent->files->fd[fd] = new_f;
fd151fs/proc/link.cif (ino < NR_OPEN && p->files->fd[ino]) {
fd158fs/proc/link.cnew_inode = p->files->fd[ino]->f_inode;
fd26fs/read_write.casmlinkage int sys_readdir(unsigned int fd, struct dirent * dirent, unsigned int count)
fd32fs/read_write.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]) ||
fd47fs/read_write.casmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin)
fd52fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd83fs/read_write.casmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high,
fd92fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd122fs/read_write.casmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count)
fd128fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd142fs/read_write.casmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count)
fd149fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd105fs/select.cif (!current->files->fd[i])
fd107fs/select.cif (!current->files->fd[i]->f_inode)
fd126fs/select.cif (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) {
fd131fs/select.cif (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) {
fd136fs/select.cif (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) {
fd161fs/stat.casmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf)
fd170fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd176fs/stat.casmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf)
fd185fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd79include/asm-alpha/unistd.hint fd;
fd81include/asm-alpha/unistd.hfd = sys_open(name, mode, flags);
fd82include/asm-alpha/unistd.hprintk("[%d]open(%s,%d,%d)=%d\n",current->pid, name, mode, flags, fd);
fd83include/asm-alpha/unistd.hreturn fd;
fd87include/asm-alpha/unistd.hstatic inline int dup(int fd)
fd89include/asm-alpha/unistd.hint newfd = sys_dup(fd);
fd90include/asm-alpha/unistd.hprintk("[%d]dup(%d)=%d\n",current->pid, fd, newfd);
fd94include/asm-alpha/unistd.hstatic inline int close(int fd)
fd96include/asm-alpha/unistd.hprintk("[%d]close(%d)\n",current->pid,fd);
fd97include/asm-alpha/unistd.hreturn sys_close(fd);
fd110include/asm-alpha/unistd.hstatic inline int write(int fd, const char * buf, int nr)
fd112include/asm-alpha/unistd.hreturn sys_write(fd, buf, nr);
fd116include/asm-alpha/unistd.hstatic inline int read(int fd, char * buf, int nr)
fd118include/asm-alpha/unistd.hint res = sys_read(fd, buf, nr);
fd119include/asm-alpha/unistd.hprintk("[%d]read(%d,%s,%d)=%d\n",current->pid, fd, buf, nr, res);
fd108include/asm-i386/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd109include/asm-i386/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd112include/asm-i386/unistd.hstatic inline _syscall1(int,close,int,fd)
fd148include/asm-sparc/unistd.hstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd149include/asm-sparc/unistd.hstatic inline _syscall1(int,dup,int,fd)
fd152include/asm-sparc/unistd.hstatic inline _syscall1(int,close,int,fd)
fd35include/linux/binfmts.hint (*load_shlib)(int fd);
fd24include/linux/nfs_mount.hint fd;        /* 1 */
fd93include/linux/sched.hstruct file * fd[NR_OPEN];
fd21include/linux/time.h#define FD_SET(fd,fdsetp)  set_bit(fd,fdsetp)
fd22include/linux/time.h#define FD_CLR(fd,fdsetp)  clear_bit(fd,fdsetp)
fd23include/linux/time.h#define FD_ISSET(fd,fdsetp)  (0 != test_bit(fd,fdsetp))
fd27include/linux/time.h#define FD_SET(fd,fdsetp)  __FD_SET(fd,fdsetp)
fd28include/linux/time.h#define FD_CLR(fd,fdsetp)  __FD_CLR(fd,fdsetp)
fd29include/linux/time.h#define FD_ISSET(fd,fdsetp)  __FD_ISSET(fd,fdsetp)
fd83include/linux/types.h#define __FD_SET(fd,fdsetp) \
fd85include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd88include/linux/types.h#define __FD_CLR(fd,fdsetp) \
fd90include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd93include/linux/types.h#define __FD_ISSET(fd,fdsetp) (__extension__ ({ \
fd96include/linux/types.h:"=q" (__result) :"r" ((int) (fd)), \
fd363kernel/exit.cif (current->files->fd[i])
fd126kernel/fork.cif ((f = p->files->fd[i]) != NULL)
fd127kernel/fork.cp->files->fd[i] = copy_fd(f);
fd130kernel/fork.cif ((f = p->files->fd[i]) != NULL)
fd10lib/close.c_syscall1(int,close,int,fd)
fd10lib/dup.c_syscall1(int,dup,int,fd)
fd11lib/write.c_syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd198mm/mmap.cunsigned long fd = get_fs_long(buffer+4);
fd199mm/mmap.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd161net/socket.cint fd;
fd172net/socket.cfor (fd = 0; fd < NR_OPEN; ++fd)
fd173net/socket.cif (!current->files->fd[fd]) 
fd175net/socket.cif (fd == NR_OPEN) 
fd181net/socket.cFD_CLR(fd, &current->files->close_on_exec);
fd182net/socket.ccurrent->files->fd[fd] = file;
fd191net/socket.creturn(fd);
fd210net/socket.cstatic inline struct socket *sockfd_lookup(int fd, struct file **pfile)
fd215net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) 
fd600net/socket.cint i, fd;
fd651net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
fd657net/socket.creturn(fd);
fd729net/socket.cstatic int sock_bind(int fd, struct sockaddr *umyaddr, int addrlen)
fd736net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd739net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd759net/socket.cstatic int sock_listen(int fd, int backlog)
fd763net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd765net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd788net/socket.cstatic int sock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
fd796net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd798net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
fd830net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
fd841net/socket.creturn(fd);
fd850net/socket.cstatic int sock_connect(int fd, struct sockaddr *uservaddr, int addrlen)
fd858net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL)
fd860net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
fd901net/socket.cstatic int sock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd908net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd910net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd926net/socket.cstatic int sock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd933net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd935net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd951net/socket.cstatic int sock_send(int fd, void * buff, int len, unsigned flags)
fd957net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd959net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd976net/socket.cstatic int sock_sendto(int fd, void * buff, int len, unsigned flags,
fd984net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd986net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1011net/socket.cstatic int sock_recv(int fd, void * buff, int len, unsigned flags)
fd1017net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1020net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1040net/socket.cstatic int sock_recvfrom(int fd, void * buff, int len, unsigned flags,
fd1048net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1050net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1077net/socket.cstatic int sock_setsockopt(int fd, int level, int optname, char *optval, int optlen)
fd1082net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1084net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1095net/socket.cstatic int sock_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
fd1100net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1102net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1115net/socket.cstatic int sock_shutdown(int fd, int how)
fd1120net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1122net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))