Searched refs:fdold (Results 1 – 1 of 1) sorted by relevance
876 int sh_iomovefd(register int fdold) in sh_iomovefd() argument880 VALIDATE_FD(shp, fdold); in sh_iomovefd()881 if(fdold<0 || fdold>2) in sh_iomovefd()882 return(fdold); in sh_iomovefd()883 fdnew = sh_iomovefd(dup(fdold)); in sh_iomovefd()884 VALIDATE_FD(shp, fdold); in sh_iomovefd()886 shp->fdstatus[fdnew] = (shp->fdstatus[fdold]&~IOCLEX); in sh_iomovefd()887 close(fdold); in sh_iomovefd()888 shp->fdstatus[fdold] = IOCLOSE; in sh_iomovefd()