31#include "dbus-sysdeps.h"
32#include "dbus-internals.h"
33#include "dbus-string.h"
39#elif (defined __APPLE__)
40# include <crt_externs.h>
41# define environ (*_NSGetEnviron())
42#elif HAVE_DECL_ENVIRON && defined(HAVE_UNISTD_H)
62 for (length = 0; environ[length] !=
NULL; length++);
69 if (environment ==
NULL)
72 for (i = 0; environ[i] !=
NULL; i++)
76 if (environment[i] ==
NULL)
80 if (environ[i] !=
NULL)
#define _dbus_assert(condition)
Aborts with an error message if the condition is false.
char * _dbus_strdup(const char *str)
Duplicates a string.
#define NULL
A null pointer, defined appropriately for C or C++.
#define dbus_new0(type, count)
Safe macro for using dbus_malloc0().
void dbus_free_string_array(char **str_array)
Frees a NULL-terminated array of strings.
char ** _dbus_get_environment(void)
Gets a NULL-terminated list of key=value pairs from the environment.