10 # define PORTABILITY_H
19 # ifndef PCMK__CONFIG_H
20 # define PCMK__CONFIG_H
29 int daemon(
int nochdir,
int noclose);
34 int setenv(
const char *
name,
const char *value,
int why);
37 # ifndef HAVE_STRERROR
42 # ifndef HAVE_STRCHRNUL
47 # ifndef HAVE_ALPHASORT
50 alphasort(
const void *dirent1,
const void *dirent2);
54 size_t strnlen(
const char *s,
size_t maxlen);
60 char *
strndup(
const char *str,
size_t len);
66 # ifndef HAVE_DBUSBASICVALUE
68 # include <dbus/dbus.h>
91 unsigned char bytes[8];
97 # ifdef DBUS_HAVE_INT64
101 DBus8ByteStruct eight;
114 # define ENOTUNIQ 190
126 # define EREMOTEIO 193
153 # ifndef EKEYREJECTED
154 # define EKEYREJECTED 200
int alphasort(const void *dirent1, const void *dirent2)
char * strerror(int errnum)
char * strndup(const char *str, size_t len)
int daemon(int nochdir, int noclose)
int setenv(const char *name, const char *value, int why)
size_t strnlen(const char *s, size_t maxlen)
char * strchrnul(const char *s, int c_in)