ARPDAS_QNX6 1.0
Classes | Defines | Functions | Variables
tma.h File Reference
#include <time.h>
#include "tmctime.h"
Include dependency graph for tma.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tma_state
struct  tma_ifile
struct  slurp_val
struct  tma_prtn

Defines

#define HOLDING_COL   18
#define STATE_COL   42
#define RUN_COL   59
#define SNAME_COL   0
#define NEXTTIME_COL   34
#define STATETIME_COL   51
#define RUNTIME_COL   66
#define RUNTIME_STRING   " "
#define HOLDING_ATTR   0x70
#define TMA_ATTR   0x70
#define CMD_ATTR   7

Functions

void tma_new_state (unsigned int partition, const char *name)
void tma_init_options (int argc, char **argv)
void tma_hold (int hold)
void tma_time (tma_prtn *p, unsigned int col, long int t)
void tma_next_cmd (unsigned int partition, const char *cmd)
void tma_init_state (int partno, tma_state *cmds, const char *name)
void tma_read_file (tma_ifile *ifilespec)
int tma_process (long int it)
void tma_succeed (int partno, int statecase)

Variables

slurp_val slurp_vals []
tma_prtntma_partitions
long int tma_runbasetime
int tma_is_holding
const int tma_n_partitions

Define Documentation

#define CMD_ATTR   7

Definition at line 60 of file tma.h.

Referenced by tma_next_cmd().

#define HOLDING_ATTR   0x70

Definition at line 58 of file tma.h.

Referenced by update_holding().

#define HOLDING_COL   18

Definition at line 50 of file tma.h.

Referenced by update_holding().

#define NEXTTIME_COL   34

Definition at line 54 of file tma.h.

Referenced by tma_process().

#define RUN_COL   59

Definition at line 52 of file tma.h.

Referenced by tma_new_state().

#define RUNTIME_COL   66

Definition at line 56 of file tma.h.

Referenced by tma_new_state(), and tma_process().

#define RUNTIME_STRING   " "

Definition at line 57 of file tma.h.

Referenced by tma_new_state().

#define SNAME_COL   0

Definition at line 53 of file tma.h.

Referenced by tma_new_state().

#define STATE_COL   42

Definition at line 51 of file tma.h.

Referenced by tma_new_state().

#define STATETIME_COL   51

Definition at line 55 of file tma.h.

Referenced by tma_new_state(), and tma_process().

#define TMA_ATTR   0x70

Definition at line 59 of file tma.h.

Referenced by tma_new_state(), tma_next_cmd(), and tma_time().


Function Documentation

void tma_hold ( int  hold)

Definition at line 62 of file tma.c.

References tma_is_holding, tma_n_partitions, and update_holding().

Here is the call graph for this function:

void tma_init_options ( int  argc,
char **  argv 
)
void tma_init_state ( int  partno,
tma_state cmds,
const char *  name 
)

Definition at line 7 of file tmaR2.c.

References tma_prtn::basetime, ci_sendcmd(), tma_state::cmd, tma_prtn::cmds, tma_state::dt, tma_prtn::lastcheck, tma_prtn::next_cmd, tma_n_partitions, tma_new_state(), tma_partitions, and tma_prtn::waiting.

Referenced by tma_read_file().

Here is the call graph for this function:

Here is the caller graph for this function:

void tma_new_state ( unsigned int  partition,
const char *  name 
)
void tma_next_cmd ( unsigned int  partition,
const char *  cmd 
)

Definition at line 117 of file tma.c.

References CMD_ATTR, tma_prtn::console, tma_prtn::row, TMA_ATTR, and tma_n_partitions.

Referenced by tma_process().

Here is the caller graph for this function:

int tma_process ( long int  it)
void tma_read_file ( tma_ifile ifilespec)
void tma_succeed ( int  partno,
int  statecase 
)

Definition at line 170 of file tmaR2.c.

References tma_state::cmd, tma_prtn::cmds, tma_prtn::next_cmd, nl_error, tma_n_partitions, tma_partitions, and tma_prtn::waiting.

Referenced by tma_process().

Here is the caller graph for this function:

void tma_time ( tma_prtn p,
unsigned int  col,
long int  t 
)

Definition at line 26 of file tma.c.

References tma_prtn::console, tma_prtn::row, and TMA_ATTR.

Referenced by tma_new_state(), and tma_process().

Here is the caller graph for this function:


Variable Documentation

Definition at line 5 of file tma_stubs.c.

Referenced by find_slurp().

Definition at line 18 of file tma.c.

Referenced by tma_hold(), tma_process(), and update_holding().

const int tma_n_partitions

Definition at line 16 of file tma.c.

Referenced by tma_init_state(), tma_process(), and tma_succeed().

long int tma_runbasetime

Definition at line 17 of file tma.c.

Referenced by tma_new_state(), and tma_process().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines