osprey/driver/run.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/times.h>
#include <sys/procfs.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include <malloc.h>
#include <sys/param.h>
#include <limits.h>
#include <alloca.h>
#include <cmplrs/rcodes.h>
#include "run.h"
#include "string_utils.h"
#include "errors.h"
#include "file_names.h"
#include "phases.h"
#include "opt_actions.h"
#include "file_utils.h"
#include "pathscale_defs.h"
#include "option_names.h"
#include "lib_phase_dir.h"

Include dependency graph for run.c:

Go to the source code of this file.

Defines

#define LOGFILE   "/var/log/messages"

Functions/Subroutines

static void init_time (void)
static void print_time (char *phase)
static void my_psema (void)
static void my_vsema (void)
static void my_execv (const char *name, char *const argv[])
void run_simple_program (char *name, char **argv, char *output)
static void my_putenv (const char *name, const char *fmt,...) __attribute__((format(printf
char * get_binutils_lib_path (void)
void run_phase (phases_t phase, char *name, string_list_t *args)
void handler (int sig)
void catch_signals (void)

Variables

boolean show_flag = FALSE
boolean show_but_not_run = FALSE
boolean execute_flag = TRUE
boolean time_flag = FALSE
boolean prelink_flag = TRUE
boolean quiet_flag = TRUE
boolean run_m4 = FALSE
static boolean ran_twice = FALSE
static int f90_fe_status = RC_OKAY
static char * f90_fe_name = NULL
clock_t time0
struct tms tm0


Define Documentation

#define LOGFILE   "/var/log/messages"

Definition at line 100 of file run.c.

Referenced by run_phase(), and run_simple_program().


Function Documentation

void catch_signals ( void   ) 

Definition at line 964 of file run.c.

References handler(), SIGBUS, signal(), SIGPIPE, SIGQUIT, and SIGTRAP.

char* get_binutils_lib_path ( void   ) 

Definition at line 253 of file run.c.

References asprintf(), and get_executable_dir().

Referenced by init_phase_info(), and run_phase().

static void handler ( int  sig  ) 

static void init_time ( void   )  [static]

Definition at line 1000 of file run.c.

References time0, times, and tm0.

Referenced by run_phase().

static void my_execv ( const char *  name,
char *const   argv[] 
) [static]

static void my_psema ( void   )  [static]

static void static void my_putenv ( const char *  name,
const char *  fmt,
  ... 
) [static]

static void my_vsema ( void   )  [static]

static void print_time ( char *  phase  )  [static]

void run_phase ( phases_t  phase,
char *  name,
string_list_t args 
)

void run_simple_program ( char *  name,
char **  argv,
char *  output 
)


Variable Documentation

Definition at line 86 of file run.c.

Referenced by add_command_line_arg(), for(), if(), run_compiler(), and run_phase().

char* f90_fe_name = NULL [static]

Definition at line 93 of file run.c.

Referenced by run_phase().

int f90_fe_status = RC_OKAY [static]

Definition at line 92 of file run.c.

Referenced by run_phase().

Definition at line 88 of file run.c.

Referenced by run_compiler().

boolean ran_twice = FALSE [static]

Definition at line 91 of file run.c.

Referenced by run_phase().

boolean run_m4 = FALSE

Definition at line 90 of file run.c.

Referenced by add_file_args(), and determine_phase_order().

Definition at line 85 of file run.c.

Referenced by add_file_args(), my_execv(), and my_putenv().

boolean show_flag = FALSE

Definition at line 84 of file run.c.

Referenced by for(), run_phase(), and update_instantiation_info_file().

Definition at line 996 of file run.c.

Referenced by init_time(), Perform_SWP(), and print_time().

boolean time_flag = FALSE

Definition at line 87 of file run.c.

Referenced by gen_automata_option(), initiate_automaton_gen(), run_phase(), and write_automata().

Definition at line 997 of file run.c.

Referenced by init_time(), and print_time().


Generated on Wed Apr 8 15:07:28 2009 for Open64 by  doxygen 1.5.6