9 #ifndef PCMK__PORTABILITY__H 10 # define PCMK__PORTABILITY__H 24 # ifndef PCMK__CONFIG_H 25 # define PCMK__CONFIG_H 34 int daemon(
int nochdir,
int noclose);
39 int setenv(
const char *
name,
const char *value,
int why);
42 # ifndef HAVE_STRERROR 47 # ifndef HAVE_STRCHRNUL 52 # ifndef HAVE_ALPHASORT 54 int alphasort(
const void *dirent1,
const void *dirent2);
58 size_t strnlen(
const char *s,
size_t maxlen);
64 char *
strndup(
const char *str,
size_t len);
70 # ifndef HAVE_DBUSBASICVALUE 72 # include <dbus/dbus.h> 95 unsigned char bytes[8];
101 # ifdef DBUS_HAVE_INT64 105 DBus8ByteStruct eight;
111 # endif // !defined(HAVE_DBUSBASICVALUE) 112 # endif // !defined(HAVE_DBUS) 119 # define PCMK__ENOTUNIQ 120 # define ENOTUNIQ 190 129 # define PCMK__ELIBACC 134 # define PCMK__EREMOTIO 135 # define EREMOTEIO 193 139 # define PCMK__ENOKEY 144 # define PCMK__ENODATA 153 # ifndef EKEYREJECTED 154 # define PCMK__EKEYREJECTED 155 # define EKEYREJECTED 200 158 #endif // PCMK__PORTABILITY__H
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)