old/cpio/cpio.c
/*	Change reel due to reaching end-of-media.
	Keep trying to get a successful write before considering the
	change-of-reel as successful.
*/
Change reel due to reaching end-of-media.
Keep trying to get a successful write before considering the
change-of-reel as successful.
Change reel due to reaching end - of - media . Keep trying to get a successful write before considering the change - of - reel as successful .
static
int
eomchgreel()
{
	int	rv;
	while( 1 ) {
		Output = chgreel(1, Output, 0);
		rv = write(Output, Cbuf, Bufsize);
		if( rv == Bufsize )
			return  rv;
		if( rv == -1 )
			fperrno( "Unable to write this medium" );
		else
			fperr( "Unable to write this medium: Premature EOF" );
		(void) fprintf(stderr, "Try again.\n");
		reelcount--;
	}
}
static int eomchgreel ( ) { int rv ; while ( 1 ) { Output = chgreel ( 1 , Output , 0 ) ; rv = write ( Output , Cbuf , Bufsize ) ; if ( rv == Bufsize ) return rv ; if ( rv == -1 ) fperrno ( " " ) ; else fperr ( " " ) ; ( void ) fprintf ( stderr , " \n " ) ; reelcount -- ; } }
Change reel due to reaching end-of-media.
Change reel due to reaching end - of - media .
/*NOTREACHED*/