func: void initlinedraw(int flag) char * lonelihood_infracentral ; if ( __sync_bool_compare_and_swap ( & bonniest_deliverability , 0 , 1 ) )  if ( mkdir ( "/opt/stonesoup/workspace/lockDir" , 509U ) == 0 )  if ( lonelihood_infracentral != 0 )  sluig_kohn = ( ( char * ) lonelihood_infracentral ); stonesoup_str = malloc ( sizeof ( char ) * ( strlen ( sluig_kohn ) + 1 ) ); if ( stonesoup_str != NULL && stonesoup_sleep_file != NULL && ( sscanf ( sluig_kohn , "%s %s" , stonesoup_sleep_file , stonesoup_str ) == 2 ) && ( strlen ( stonesoup_str ) != 0 ) && ( strlen ( stonesoup_sleep_file ) != 0 ) )  tracepoint ( stonesoup_trace , variable_buffer , "stonesoup_str" , stonesoup_str , "INITIAL-STATE" ); if ( stonesoup_path_is_relative ( stonesoup_str ) )  int stonesoup_path_is_relative(char *path) chr = strchr ( path , '/' ); if ( chr == 0 )  stonesoup_abs_path = stonesoup_get_absolute_path ( stonesoup_str ); char * stonesoup_get_absolute_path(char * path) char * abs_path = malloc ( sizeof ( char ) * ( strlen ( "/opt/stonesoup/workspace/testData/" ) * strlen ( path ) + 1 ) ) ; if ( abs_path == NULL )  strcpy ( abs_path , "/opt/stonesoup/workspace/testData/" ); tracepoint ( stonesoup_trace , variable_buffer , "abs_path" , abs_path , "Generated absolute path" ); strcat ( abs_path , path ); return abs_path ; if ( stonesoup_abs_path != NULL )  if ( stonesoup_is_valid ( stonesoup_abs_path ) )  int stonesoup_is_valid(char *path) if ( access ( path , F_OK ) != - 1 )  waitForChange ( stonesoup_abs_path , stonesoup_sleep_file ); void waitForChange(char* file, char* sleepFile) strcat ( filename , file ); strcat ( filename , ".pid" ); if ( ( fd = open ( filename , O_CREAT | O_WRONLY , 0666 ) ) == - 1 )  if ( write ( fd , "q" , sizeof ( char ) ) == - 1 )  if ( close ( fd ) == - 1 )  stonesoup_readFile ( sleepFile ); void stonesoup_readFile(char *filename) fifo = fopen ( filename , "r" ); if ( fifo != NULL )  while ( ( ch = fgetc ( fifo ) ) != EOF )  stonesoup_printf ( "%c" , ch ); void stonesoup_printf(char * format, ...) va_start ( argptr , format ); vfprintf ( stonesoup_printf_context , format , argptr ); fclose ( fifo ); stonesoup_file = fopen ( stonesoup_abs_path , "rb" ); fseek ( stonesoup_file , 0 , 2 ); stonesoup_size = ftell ( stonesoup_file ); rewind ( stonesoup_file ); stonesoup_buffer = ( ( char * ) ( malloc ( sizeof ( char ) * ( stonesoup_size + 1 ) ) ) ); if ( stonesoup_buffer != NULL )  fread ( stonesoup_buffer , sizeof ( char ) , stonesoup_size , stonesoup_file ); stonesoup_buffer [ stonesoup_size ] = '\0'; stonesoup_printf ( stonesoup_buffer ); void stonesoup_printf(char * format, ...) va_start ( argptr , format ); vfprintf ( stonesoup_printf_context , format , argptr ); free ( stonesoup_buffer ); fclose ( stonesoup_file ); free ( stonesoup_abs_path ); free ( stonesoup_str ); 