mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-10 06:52:56 +00:00
93b82c14ac
Fixes #1931
32 lines
578 B
C++
32 lines
578 B
C++
/*
|
|
* \brief C++ wrapper over errno
|
|
* \author Christian Helmuth
|
|
* \date 2016-04-26
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2016 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _LIBC_ERRNO_H_
|
|
#define _LIBC_ERRNO_H_
|
|
|
|
/* libc includes */
|
|
#include <errno.h>
|
|
|
|
namespace Libc { struct Errno; }
|
|
|
|
struct Libc::Errno
|
|
{
|
|
int const error;
|
|
|
|
explicit Errno(int error) : error(error) { errno = error; }
|
|
|
|
operator int() const { return -1; }
|
|
};
|
|
|
|
#endif /* _LIBC_ERRNO_H_ */
|