17 lines
298 B
C
17 lines
298 B
C
#ifndef _ERRNO_H
|
|
#define _ERRNO_H
|
|
|
|
extern int errno;
|
|
int *__errno_location(void);
|
|
|
|
// Standard error codes (subset; matches glibc numbering).
|
|
#define EPERM 1
|
|
#define ENOENT 2
|
|
#define EIO 5
|
|
#define EBADF 9
|
|
#define ENOMEM 12
|
|
#define EACCES 13
|
|
#define EINVAL 22
|
|
#define ENOSPC 28
|
|
|
|
#endif
|