bin/csh/csh.c
/*
 * Move the initial descriptors to their eventual
 * resting places, closin all other units.
 */
Move the initial descriptors to their eventual
resting places, closin all other units.
Move the initial descriptors to their eventual resting places closin all other units .
void
initdesc()
{
    didfds = 0;			
    (void) ioctl(SHIN = dcopy(0, FSHIN), FIOCLEX, NULL);
    (void) ioctl(SHOUT = dcopy(1, FSHOUT), FIOCLEX, NULL);
    (void) ioctl(SHERR = dcopy(2, FSHERR), FIOCLEX, NULL);
    (void) ioctl(OLDSTD = dcopy(SHIN, FOLDSTD), FIOCLEX, NULL);
    closem();
}
void initdesc ( ) { didfds = 0 ; ( void ) ioctl ( SHIN = dcopy ( 0 , FSHIN ) , FIOCLEX , NULL ) ; ( void ) ioctl ( SHOUT = dcopy ( 1 , FSHOUT ) , FIOCLEX , NULL ) ; ( void ) ioctl ( SHERR = dcopy ( 2 , FSHERR ) , FIOCLEX , NULL ) ; ( void ) ioctl ( OLDSTD = dcopy ( SHIN , FOLDSTD ) , FIOCLEX , NULL ) ; closem ( ) ; }
Move the initial descriptors to their eventual
 resting places, closin all other units.
Move the initial descriptors to their eventual resting places closin all other units .
/* 0, 1, 2 aren't set up */