musl/include/errno.h

28 lines
369 B
C
Raw Normal View History

2011-02-12 05:22:29 +00:00
#ifndef _ERRNO_H
#define _ERRNO_H
#ifdef __cplusplus
extern "C" {
#endif
#include <features.h>
2011-02-12 05:22:29 +00:00
#include <bits/errno.h>
#ifdef __GNUC__
__attribute__((const))
#endif
int *__errno_location(void);
2011-02-12 05:22:29 +00:00
#define errno (*__errno_location())
#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