MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
macsio_main.c File Reference
#include <errno.h>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <macsio_clargs.h>
#include <macsio_data.h>
#include <macsio_iface.h>
#include <macsio_log.h>
#include <macsio_main.h>
#include <macsio_timing.h>
#include <macsio_utils.h>
#include <json-c/json.h>
#include <mpi.h>

Go to the source code of this file.

Macros

#define MAX(A, B)   (((A)>(B))?(A):(B))
 

Functions

static void handle_help_request_and_exit (int argi, int argc, char **argv)
 
static void handle_list_request_and_exit ()
 
static json_objectProcessCommandLine (int argc, char *argv[], int *plugin_argi)
 
static int write_timings_file (char const *filename)
 
static int main_write (int argi, int argc, char **argv, json_object *main_obj)
 
static int main_read (int argi, int argc, char **argv, json_object *main_obj)
 
int main (int argc, char *argv[])
 

Variables

char ** enviornp
 
MPI_Comm MACSIO_MAIN_Comm = MPI_COMM_WORLD
 
int MACSIO_MAIN_Size = 1
 
int MACSIO_MAIN_Rank = 0
 

Macro Definition Documentation

#define MAX (   A,
 
)    (((A)>(B))?(A):(B))

Definition at line 274 of file macsio_main.c.

Function Documentation

static void handle_help_request_and_exit ( int  argi,
int  argc,
char **  argv 
)
static

Definition at line 287 of file macsio_main.c.

static void handle_list_request_and_exit ( )
static

Definition at line 311 of file macsio_main.c.

static json_object* ProcessCommandLine ( int  argc,
char *  argv[],
int *  plugin_argi 
)
static

Definition at line 338 of file macsio_main.c.

static int write_timings_file ( char const *  filename)
static

Definition at line 535 of file macsio_main.c.

static int main_write ( int  argi,
int  argc,
char **  argv,
json_object main_obj 
)
static

Definition at line 581 of file macsio_main.c.

static int main_read ( int  argi,
int  argc,
char **  argv,
json_object main_obj 
)
static

Definition at line 711 of file macsio_main.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 756 of file macsio_main.c.

Variable Documentation

char** enviornp
MPI_Comm MACSIO_MAIN_Comm = MPI_COMM_WORLD

Definition at line 279 of file macsio_main.c.

int MACSIO_MAIN_Size = 1

Definition at line 284 of file macsio_main.c.

int MACSIO_MAIN_Rank = 0

Definition at line 285 of file macsio_main.c.