summaryrefslogtreecommitdiffstats
path: root/libcgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcgroup.h')
-rw-r--r--libcgroup.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcgroup.h b/libcgroup.h
index 2a93022..4fb99ff 100644
--- a/libcgroup.h
+++ b/libcgroup.h
@@ -94,6 +94,7 @@ enum cgroup_errors {
ECGROUPPARSEFAIL, /* Failed to parse rules configuration file. */
ECGROUPNORULES, /* Rules list does not exist. */
ECGMOUNTFAIL,
+ ECGSENTINEL, /* Please insert further error codes above this */
};
#define CG_NV_MAX 100
@@ -187,6 +188,12 @@ int cgroup_init_rules_cache(void);
*/
int cgroup_get_current_controller_path(pid_t pid, const char *controller,
char **current_path);
+/**
+ * Return error corresponding to @code in human readable format.
+ * @code: error code for which the corresponding error string is to be
+ * returned
+ */
+char *cgroup_strerror(int code);
/* The wrappers for filling libcg structures */