Home
last modified time | relevance | path

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

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dio.c876 int sh_iomovefd(register int fdold) in sh_iomovefd() argument
880 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()