1 //===- llvm/Support/Unix/system_error.inc - Unix error_code ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides the Unix specific implementation of the error_code
11 // and error_condition classes.
13 //===----------------------------------------------------------------------===//
15 //===----------------------------------------------------------------------===//
16 //=== WARNING: Implementation here must contain only generic UNIX code that
17 //=== is guaranteed to work on *all* UNIX variants.
18 //===----------------------------------------------------------------------===//
23 _system_error_category::message(int ev) const {
24 return _do_message::message(ev);
28 _system_error_category::default_error_condition(int ev) const {
31 return error_condition(ev, system_category());
33 return error_condition(ev, generic_category());