Home | History | Annotate | Download | only in seccomp-bpf

Lines Matching defs:ErrorCode

18 // We can either wrap a symbolic ErrorCode (i.e. ERR_XXX enum values), an
22 // that is using the ErrorCode class typically operates on a single 32bit
24 class SANDBOX_EXPORT ErrorCode {
117 // We allow the default constructor, as it makes the ErrorCode class
118 // much easier to use. But if we ever encounter an invalid ErrorCode
122 ErrorCode() : error_type_(ET_INVALID), err_(SECCOMP_RET_INVALID) {}
123 explicit ErrorCode(int err);
133 ~ErrorCode() {}
135 bool Equals(const ErrorCode& err) const;
136 bool LessThan(const ErrorCode& err) const;
147 const ErrorCode* passed() const { return passed_; }
148 const ErrorCode* failed() const { return failed_; }
151 bool operator()(const ErrorCode& a, const ErrorCode& b) const {
164 ErrorCode(Trap::TrapFnc fnc, const void* aux, bool safe, uint16_t id);
168 ErrorCode(int argno,
172 const ErrorCode* passed,
173 const ErrorCode* failed);
191 const ErrorCode* passed_; // Value to be returned if comparison passed,
192 const ErrorCode* failed_; // or if it failed.
196 // 32bit field used for all possible types of ErrorCode values. This is
197 // the value that uniquely identifies any ErrorCode and it (typically) can