2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _ERRNO_H
|
|
|
|
#define _ERRNO_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-04-06 21:50:37 +00:00
|
|
|
#include <features.h>
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#include <bits/errno.h>
|
|
|
|
|
2011-06-07 00:12:42 +00:00
|
|
|
#ifdef __GNUC__
|
|
|
|
__attribute__((const))
|
|
|
|
#endif
|
2012-01-26 15:53:37 +00:00
|
|
|
int *__errno_location(void);
|
2011-02-12 05:22:29 +00:00
|
|
|
#define errno (*__errno_location())
|
|
|
|
|
2013-04-06 21:50:37 +00:00
|
|
|
#ifdef _GNU_SOURCE
|
|
|
|
extern char *program_invocation_short_name, *program_invocation_name;
|
|
|
|
#endif
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|