lib/libutil/gr_util.c
void
gr_fini(void)
{
	int serrno;

	if (!initialized)
		return;
	initialized = 0;
	serrno = errno;
	if (*tempname != '\0') {
		unlink(tempname);
		*tempname = '\0';
	}
	if (lockfd != -1)
		close(lockfd);
	errno = serrno;
}
/*
 * Clean up. Preserver errno for the caller's convenience.
 */
Clean up. Preserver errno for the caller's convenience.
Clean up . Preserver errno for the caller ' s convenience .
void
gr_fini(void)
{
	int serrno;
	if (!initialized)
		return;
	initialized = 0;
	serrno = errno;
	if (*tempname != '\0') {
		unlink(tempname);
		*tempname = '\0';
	}
	if (lockfd != -1)
		close(lockfd);
	errno = serrno;
}
void gr_fini ( void ) { int serrno ; if ( ! initialized ) return ; initialized = 0 ; serrno = errno ; if ( * tempname != ' \0 ' ) { unlink ( tempname ) ; * tempname = ' \0 ' ; } if ( lockfd != -1 ) close ( lockfd ) ; errno = serrno ; }
Clean up.
Clean up .