blob: 03af81d13d5304375e95001159040659d15da786 [file] [log] [blame]
/**CFile****************************************************************
FileName [utilSignal.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName []
Synopsis []
Author [Baruch Sterin]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - February 1, 2011.]
Revision [$Id: utilSignal.c,v 1.00 2011/02/01 00:00:00 alanmi Exp $]
***********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "abc_global.h"
#include "utilSignal.h"
#ifdef _MSC_VER
#define unlink _unlink
#else
#include <unistd.h>
#endif
ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
int Util_SignalSystem(const char* cmd)
{
return system(cmd);
}
int tmpFile(const char* prefix, const char* suffix, char** out_name);
int Util_SignalTmpFile(const char* prefix, const char* suffix, char** out_name)
{
return tmpFile(prefix, suffix, out_name);
}
void Util_SignalTmpFileRemove(const char* fname, int fLeave)
{
if (! fLeave)
{
unlink(fname);
}
}
ABC_NAMESPACE_IMPL_END
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////