openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus/1.12.16-r0/dbus-1.12.16/dbus/dbus-sysdeps-unix.c
dbus_bool_t _dbus_delete_directory(const DBusString* filename, DBusError* error)
{
    const char* filename_c;

    _DBUS_ASSERT_ERROR_IS_CLEAR(error);

    filename_c = _dbus_string_get_const_data(filename);

    if (rmdir(filename_c) != 0)
    {
        dbus_set_error(error, DBUS_ERROR_FAILED,
                       "Failed to remove directory %s: %s\n", filename_c,
                       _dbus_strerror(errno));
        return FALSE;
    }

    return TRUE;
}
/**
 * Removes a directory; Directory must be empty
 *
 * @param filename directory filename
 * @param error initialized error object
 * @returns #TRUE on success
 */
Removes a directory; Directory must be empty
@param filename directory filename
@param error initialized error object
@returns #TRUE on success
Removes a directory ; Directory must be empty @param filename directory filename @param error initialized error object @returns #TRUE on success
dbus_bool_t _dbus_delete_directory(const DBusString* filename, DBusError* error)
{
    const char* filename_c;
    _DBUS_ASSERT_ERROR_IS_CLEAR(error);
    filename_c = _dbus_string_get_const_data(filename);
    if (rmdir(filename_c) != 0)
    {
        dbus_set_error(error, DBUS_ERROR_FAILED,
                       "Failed to remove directory %s: %s\n", filename_c,
                       _dbus_strerror(errno));
        return FALSE;
    }
    return TRUE;
}
dbus_bool_t _dbus_delete_directory ( const DBusString * filename , DBusError * error ) { const char * filename_c ; _DBUS_ASSERT_ERROR_IS_CLEAR ( error ) ; filename_c = _dbus_string_get_const_data ( filename ) ; if ( rmdir ( filename_c ) != 0 ) { dbus_set_error ( error , DBUS_ERROR_FAILED , " \n " , filename_c , _dbus_strerror ( errno ) ) ; return FALSE ; } return TRUE ; }
Removes a directory; Directory must be empty
 @param filename directory filename
 @param error initialized error object
 @returns #TRUE on success
Removes a directory ; Directory must be empty @param filename directory filename @param error initialized error object @returns #TRUE on success