pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
portability.h File Reference
#include <dirent.h>
#include <glib.h>
#include <string.h>
#include <errno.h>
Include dependency graph for portability.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EOS   '\0'
 
#define DIMOF(a)   ((int) (sizeof(a)/sizeof(a[0])) )
 
#define _GNU_SOURCE
 
#define SUPPORT_PROCFS   1
 
#define ENOTUNIQ   190
 
#define ECOMM   191
 
#define ELIBACC   192
 
#define EREMOTEIO   193
 
#define EUNATCH   194
 
#define ENOKEY   195
 
#define ENODATA   196
 
#define ETIME   197
 
#define ENOSR   198
 
#define ENOSTR   199
 
#define EKEYREJECTED   200
 

Functions

int daemon (int nochdir, int noclose)
 
int setenv (const char *name, const char *value, int why)
 
char * strerror (int errnum)
 
char * strchrnul (const char *s, int c_in)
 
int alphasort (const void *dirent1, const void *dirent2)
 
size_t strnlen (const char *s, size_t maxlen)
 
char * strndup (const char *str, size_t len)
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 18 of file portability.h.

#define DIMOF (   a)    ((int) (sizeof(a)/sizeof(a[0])) )

Definition at line 13 of file portability.h.

#define ECOMM   191

Definition at line 138 of file portability.h.

#define EKEYREJECTED   200

Definition at line 174 of file portability.h.

#define ELIBACC   192

Definition at line 142 of file portability.h.

#define ENODATA   196

Definition at line 158 of file portability.h.

#define ENOKEY   195

Definition at line 154 of file portability.h.

#define ENOSR   198

Definition at line 166 of file portability.h.

#define ENOSTR   199

Definition at line 170 of file portability.h.

#define ENOTUNIQ   190

Definition at line 134 of file portability.h.

#define EOS   '\0'

Definition at line 12 of file portability.h.

#define EREMOTEIO   193

Definition at line 146 of file portability.h.

#define ETIME   197

Definition at line 162 of file portability.h.

#define EUNATCH   194

Definition at line 150 of file portability.h.

#define SUPPORT_PROCFS   1

Definition at line 69 of file portability.h.

Function Documentation

int alphasort ( const void *  dirent1,
const void *  dirent2 
)
int daemon ( int  nochdir,
int  noclose 
)
int setenv ( const char *  name,
const char *  value,
int  why 
)
char* strchrnul ( const char *  s,
int  c_in 
)
char* strerror ( int  errnum)
char* strndup ( const char *  str,
size_t  len 
)
size_t strnlen ( const char *  s,
size_t  maxlen 
)