1 /* Copyright (c) 2016. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #include <system_error>
15 const std::error_category& errno_category() noexcept
17 return std::generic_category();
21 std::system_error errno_error(int errnum)
23 return std::system_error(errnum, errno_category());
27 std::system_error errno_error(int errnum, const char* what)
29 return std::system_error(errnum, errno_category(), what);