bus-errors.c revision 5f86c1f4c43ee9caa120d130e9b89d3fd25124c0
1N/A/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
1N/A
1N/A/***
1N/A This file is part of systemd.
1N/A
1N/A Copyright 2014 Zbigniew Jędrzejewski-Szmek
1N/A
1N/A systemd is free software; you can redistribute it and/or modify it
1N/A under the terms of the GNU Lesser General Public License as published by
1N/A the Free Software Foundation; either version 2.1 of the License, or
1N/A (at your option) any later version.
1N/A
1N/A systemd is distributed in the hope that it will be useful, but
1N/A WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1N/A Lesser General Public License for more details.
1N/A
1N/A You should have received a copy of the GNU Lesser General Public License
1N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
1N/A***/
1N/A
1N/A#include <errno.h>
1N/A
1N/A#include "sd-bus.h"
1N/A#include "bus-error.h"
1N/A#include "bus-errors.h"
1N/A
1N/ABUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map shared_errors[] = {
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_UNIT, ENOENT),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_UNIT_FOR_PID, ESRCH),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_EXISTS, EEXIST),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_LOAD_FAILED, EIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_JOB_FAILED, EREMOTEIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_JOB, ENOENT),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NOT_SUBSCRIBED, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_ALREADY_SUBSCRIBED, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_ONLY_BY_DEPENDENCY, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_TRANSACTION_JOBS_CONFLICTING, EDEADLOCK),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_TRANSACTION_ORDER_IS_CYCLIC, EDEADLOCK),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_TRANSACTION_IS_DESTRUCTIVE, EDEADLOCK),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_MASKED, ENOSYS),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_JOB_TYPE_NOT_APPLICABLE, EBADR),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_ISOLATION, EPERM),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_SHUTTING_DOWN, ECANCELED),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_SCOPE_NOT_RUNNING, EHOSTDOWN),
1N/A
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_MACHINE, ENXIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_MACHINE_FOR_PID, ENXIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_MACHINE_EXISTS, EEXIST),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_PRIVATE_NETWORKING, ENOSYS),
1N/A
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_SESSION, ENXIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SESSION_FOR_PID, ENXIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_USER, ENXIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_USER_FOR_PID, ENXIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_SEAT, ENXIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_SESSION_NOT_ON_SEAT, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NOT_IN_CONTROL, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_DEVICE_IS_TAKEN, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_DEVICE_NOT_TAKEN, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_OPERATION_IN_PROGRESS, EINPROGRESS),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_SLEEP_VERB_NOT_SUPPORTED, ENOSYS),
1N/A
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_AUTOMATIC_TIME_SYNC_ENABLED, EALREADY),
1N/A
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_PROCESS, ESRCH),
1N/A
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_NAME_SERVERS, EIO),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_INVALID_REPLY, EINVAL),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_RR, ENOENT),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_NO_RESOURCES, ENOMEM),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_CNAME_LOOP, EDEADLOCK),
1N/A SD_BUS_ERROR_MAP(BUS_ERROR_ABORTED, ECANCELED),
1N/A
1N/A SD_BUS_ERROR_MAP_END
1N/A};
1N/A