FreeBSD/tests/sys/aio/aio_test.c
/*
 * Each tester can register a callback to clean up in the event the test
 * fails.  Preserve the value of errno so that subsequent calls to errx()
 * work properly.
 */
Each tester can register a callback to clean up in the event the test
fails.  Preserve the value of errno so that subsequent calls to errx()
work properly.
Each tester can register a callback to clean up in the event the test fails . Preserve the value of errno so that subsequent calls to errx () work properly .
static void
aio_cleanup(struct aio_context *ac)
{
	int error;
	if (ac->ac_cleanup == NULL)
		return;
	error = errno;
	(ac->ac_cleanup)(ac->ac_cleanup_arg);
	errno = error;
}
static void aio_cleanup ( struct aio_context * ac ) { int error ; if ( ac -> ac_cleanup == NULL ) return ; error = errno ; ( ac -> ac_cleanup ) ( ac -> ac_cleanup_arg ) ; errno = error ; }
Each tester can register a callback to clean up in the event the test
 fails.
Each tester can register a callback to clean up in the event the test fails .