include/libcgroup/error.h File Reference

#include <features.h>

Error handling

Unless states otherwise in documentation of a function, all functions return int, which is zero (0) when the function succeeds, and positive number if the function fails.

The returned integer is one of the ECG* values described below. Value ECGOTHER means that the error was caused by underlying OS and the real cause can be found by calling cgroup_get_last_errno().



#define ECGRULESPARSEFAIL   ECGROUPPARSEFAIL
 Legacy definition of ECGRULESPARSEFAIL error code.
enum  {
  ECGROUPNOTCOMPILED = 50000, ECGROUPNOTMOUNTED, ECGROUPNOTEXIST, ECGROUPNOTCREATED,
  ECGROUPSUBSYSNOTMOUNTED, ECGROUPNOTOWNER, ECGROUPMULTIMOUNTED, ECGROUPNOTALLOWED,
  ECGMAXVALUESEXCEEDED, ECGCONTROLLEREXISTS, ECGVALUEEXISTS, ECGINVAL,
  ECGCONTROLLERCREATEFAILED, ECGFAIL, ECGROUPNOTINITIALIZED, ECGROUPVALUENOTEXIST,
  ECGOTHER, ECGROUPNOTEQUAL, ECGCONTROLLERNOTEQUAL, ECGROUPPARSEFAIL,
  ECGROUPNORULES, ECGMOUNTFAIL, ECGSENTINEL, ECGEOF,
  ECGCONFIGPARSEFAIL, ECGNAMESPACEPATHS, ECGNAMESPACECONTROLLER, ECGMOUNTNAMESPACE
}
const char * cgroup_strerror (int code)
 Format error code to a human-readable English string.
int cgroup_get_last_errno (void)
 Return last errno, which caused ECGOTHER error.

Generated on 31 Mar 2010 for libcgroup by  doxygen 1.6.1