ARB
Functions
arb_sync.cxx File Reference
#include <algorithm>
#include <arbdbt.h>
#include <arb_sleep.h>
Include dependency graph for arb_sync.cxx:

Go to the source code of this file.

Functions

static void report_error (GB_ERROR err)
 
static int exitcodeFrom (GB_ERROR error)
 
static int arb_sync_write (const char *ID, const char *value)
 
static int arb_sync_wait (const char *ID, const char *wantedValue)
 
static int show_usage (const char *error)
 
static bool requests_help (const char *arg)
 
int ARB_main (int argc, char *argv[])
 

Function Documentation

static void report_error ( GB_ERROR  err)
static

Definition at line 16 of file arb_sync.cxx.

Referenced by exitcodeFrom().

static int exitcodeFrom ( GB_ERROR  error)
static

Definition at line 20 of file arb_sync.cxx.

References EXIT_FAILURE, EXIT_SUCCESS, and report_error().

Referenced by arb_sync_wait(), and arb_sync_write().

static int arb_sync_write ( const char ID,
const char value 
)
static
static int arb_sync_wait ( const char ID,
const char wantedValue 
)
static

Definition at line 46 of file arb_sync.cxx.

References ARB_sleep(), error(), exitcodeFrom(), GB_await_error(), GB_close(), gb_main, GB_open(), GB_read_sync_value(), min, MS, NULp, and ta.

Referenced by ARB_main().

static int show_usage ( const char error)
static

Definition at line 97 of file arb_sync.cxx.

References EXIT_FAILURE, EXIT_SUCCESS, fputs(), and usage().

Referenced by ARB_main().

static bool requests_help ( const char arg)
static

Definition at line 117 of file arb_sync.cxx.

Referenced by ARB_main().

int ARB_main ( int  argc,
char argv[] 
)