genode/repos/libports/src/lib/libc/errno.cc

22 lines
399 B
C++

/*
* \brief C-library back end
* \author Norman Feske
* \date 2008-11-11
*
* Note: this version not thread safe
*/
/*
* Copyright (C) 2008-2013 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.
*/
static int private_errno;
extern "C" int *__error(void)
{
return &private_errno;
}