10 # define PORTABILITY_H 13 # define DIMOF(a) ((int) (sizeof(a)/sizeof(a[0])) ) 22 # ifndef PCMK__CONFIG_H 23 # define PCMK__CONFIG_H 32 int daemon(
int nochdir,
int noclose);
37 int setenv(
const char *
name,
const char *value,
int why);
40 # ifndef HAVE_STRERROR 45 # ifndef HAVE_STRCHRNUL 50 # ifndef HAVE_ALPHASORT 53 alphasort(
const void *dirent1,
const void *dirent2);
57 size_t strnlen(
const char *s,
size_t maxlen);
63 char *
strndup(
const char *str,
size_t len);
69 # if defined(ON_BSD) || defined(ON_SOLARIS) 70 # define SUPPORT_PROCFS 0 72 # define SUPPORT_PROCFS 1 77 # if !GLIB_CHECK_VERSION(2,28,0) 81 g_list_free_full(GList * list, GDestroyNotify free_func)
83 g_list_foreach(list, (GFunc) free_func, NULL);
89 # ifndef HAVE_DBUSBASICVALUE 91 # include <dbus/dbus.h> 114 unsigned char bytes[8];
120 # ifdef DBUS_HAVE_INT64 124 DBus8ByteStruct eight;
137 # define ENOTUNIQ 190 149 # define EREMOTEIO 193 176 # ifndef EKEYREJECTED 177 # 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)