source: mainline/uspace/lib/c/include/errno.h@ 9bfa8c8

Last change on this file since 9bfa8c8 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 492 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2006 Ondrej Palkovsky
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
13#ifndef _LIBC_ERRNO_H_
14#define _LIBC_ERRNO_H_
15
16#include <_bits/errno.h>
17#include <abi/errno.h>
18#include <_bits/decls.h>
19
20__HELENOS_DECLS_BEGIN;
21
22extern errno_t *__errno(void) __attribute__((const));
23
24__HELENOS_DECLS_END;
25
26#ifdef __cplusplus
27#define errno (*(::helenos::__errno()))
28#else
29#define errno (*(__errno()))
30#endif
31
32#endif
33
34/** @}
35 */
Note: See TracBrowser for help on using the repository browser.