STASIS
A pipeline delivery generator
Loading...
Searching...
No Matches
core.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <limits.h>
#include <unistd.h>
#include <time.h>
#include <sys/statvfs.h>
#include "version.h"
#include "config.h"
#include "core_mem.h"
#include "core_message.h"
Include dependency graph for core.h:

Go to the source code of this file.

Data Structures

struct  STASIS_GLOBAL
 
struct  STASIS_GLOBAL::Jfrog
 

Macros

#define STASIS_BANNER_HEADER   "------------------------------------------------------------------------"
 
#define STASIS_BUFSIZ   8192
 
#define STASIS_NAME_MAX   255
 
#define STASIS_DIRSTACK_MAX   1024
 
#define STASIS_TIME_STR_MAX   128
 
#define HTTP_ERROR(X)
 
#define COE_CHECK_ABORT(COND, MSG)
 

Functions

void globals_free ()
 

Variables

struct STASIS_GLOBAL globals
 
const char * VERSION
 
const char * AUTHOR
 
const char * BANNER
 

Macro Definition Documentation

◆ COE_CHECK_ABORT

#define COE_CHECK_ABORT ( COND,
MSG )
Value:
do {\
if (!globals.continue_on_error && (COND)) { \
msg(STASIS_MSG_ERROR, MSG ": Aborting execution (--continue-on-error/-C is not enabled)\n"); \
exit(1); \
} \
} while (0)
#define STASIS_MSG_ERROR
The message is an error.
Definition utils.h:230

◆ HTTP_ERROR

#define HTTP_ERROR ( X)
Value:
(X >= 400 || X < 0)

Function Documentation

◆ globals_free()

void globals_free ( )

Free memory allocated in global configuration structure