Back to index

nagios-plugins  1.4.16
Defines | Enumerations
common.h File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <limits.h>
#include <time.h>
#include <getopt.h>
#include "dirname.h"
#include "gettext.h"

Go to the source code of this file.

Defines

#define UINTMAX_MAX   ((uintmax_t) -1)
#define GET_NUMBER_OF_CPUS()   -1
#define strtol(a, b, c)   atol((a))
#define strtoul(a, b, c)   (unsigned long)atol((a))
#define _(String)   gettext (String)
#define textdomain(Domainname)   /* empty */
#define bindtextdomain(Domainname, Dirname)   /* empty */
#define __attribute__(x)   /* do nothing */

Enumerations

enum  { OK = 0, ERROR = -1 }
enum  { FALSE, TRUE }
enum  {
  STATE_OK, STATE_WARNING, STATE_CRITICAL, STATE_UNKNOWN,
  STATE_DEPENDENT
}
enum  { DEFAULT_SOCKET_TIMEOUT = 10, MAX_INPUT_BUFFER = 8192, MAX_HOST_ADDRESS_LENGTH = 256 }

Define Documentation

#define _ (   String)    gettext (String)

Definition at line 202 of file common.h.

#define __attribute__ (   x)    /* do nothing */

Definition at line 212 of file common.h.

#define bindtextdomain (   Domainname,
  Dirname 
)    /* empty */

Definition at line 207 of file common.h.

#define GET_NUMBER_OF_CPUS ( )    -1

Definition at line 88 of file common.h.

#define strtol (   a,
  b,
 
)    atol((a))

Definition at line 133 of file common.h.

#define strtoul (   a,
  b,
 
)    (unsigned long)atol((a))

Definition at line 137 of file common.h.

#define textdomain (   Domainname)    /* empty */

Definition at line 205 of file common.h.

#define UINTMAX_MAX   ((uintmax_t) -1)

Definition at line 53 of file common.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
OK 
ERROR 

Definition at line 169 of file common.h.

     {
       OK = 0,
       ERROR = -1
};
anonymous enum
Enumerator:
FALSE 
TRUE 

Definition at line 176 of file common.h.

     {
       FALSE,
       TRUE
};
anonymous enum
Enumerator:
STATE_OK 
STATE_WARNING 
STATE_CRITICAL 
STATE_UNKNOWN 
STATE_DEPENDENT 

Definition at line 182 of file common.h.

anonymous enum
Enumerator:
DEFAULT_SOCKET_TIMEOUT 
MAX_INPUT_BUFFER 
MAX_HOST_ADDRESS_LENGTH 

Definition at line 190 of file common.h.

     {
       DEFAULT_SOCKET_TIMEOUT = 10,        /* timeout after 10 seconds */
       MAX_INPUT_BUFFER = 8192,         /* max size of most buffers we use */
       MAX_HOST_ADDRESS_LENGTH = 256       /* max size of a host address */
};