Home
last modified time | relevance | path

Searched refs:fdold (Results 1 – 1 of 1) sorted by relevance

/titanic_50/usr/src/lib/libshell/common/sh/
H A Dio.c788 int sh_iomovefd(register int fdold) in sh_iomovefd() argument
791 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()