Searched refs:fdold (Results 1 – 1 of 1) sorted by relevance
788 int sh_iomovefd(register int fdold) in sh_iomovefd() argument791 if(fdold<0 || fdold>2) in sh_iomovefd()792 return(fdold); in sh_iomovefd()793 fdnew = sh_iomovefd(dup(fdold)); in sh_iomovefd()794 sh.fdstatus[fdnew] = (sh.fdstatus[fdold]&~IOCLEX); in sh_iomovefd()795 close(fdold); in sh_iomovefd()796 sh.fdstatus[fdold] = IOCLOSE; in sh_iomovefd()