0c46c904d0639007053d63691ed200192b6ec356
1 #ifndef _LTTNG_UST_ERROR_H
2 #define _LTTNG_UST_ERROR_H
5 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
6 * Julien Desfossez <julien.desfossez@polymtl.ca>
7 * Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; only
12 * version 2.1 of the License.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 * This header is meant for liblttng and libust internal use ONLY.
26 * These declarations should NOT be considered stable API.
31 #include <lttng/ust-abi.h>
36 enum lttng_ust_error_code
{
37 LTTNG_UST_OK
= 0, /* Ok */
38 LTTNG_UST_ERR
= 1024, /* Unknown Error */
39 LTTNG_UST_ERR_NOENT
= 1025, /* No entry */
40 LTTNG_UST_ERR_EXIST
= 1026, /* Object exists */
41 LTTNG_UST_ERR_INVAL
= 1027, /* Invalid argument */
42 LTTNG_UST_ERR_PERM
= 1028, /* Permission denied */
43 LTTNG_UST_ERR_NOSYS
= 1029, /* Not implemented */
45 /* MUST be last element */
46 LTTNG_UST_ERR_NR
, /* Last element */
50 * Return a human-readable error message for an lttng-ust error code.
51 * code must be a positive value (or 0).
53 extern const char *lttng_ust_strerror(int code
);
55 #endif /* _LTTNG_UST_ERROR_H */
This page took 0.04571 seconds and 4 git commands to generate.