Luna/libs/libc/include/errno.h

19 lines
602 B
C
Raw Normal View History

#ifndef _ERRNO_H
#define _ERRNO_H
2022-10-12 10:01:07 +00:00
/* The last error encountered during a call to a library or system function. */
extern int errno;
2022-10-12 10:01:07 +00:00
#define EPERM 1 // Operation not permitted
#define ENOENT 2 // No such file or directory
#define ENOEXEC 8 // Exec format error
2022-10-12 10:01:07 +00:00
#define EBADF 9 // Bad file descriptor
#define ENOMEM 12 // Cannot allocate memory
2022-10-12 17:25:35 +00:00
#define EFAULT 14 // Bad address
2022-10-12 10:01:07 +00:00
#define EISDIR 21 // Is a directory
#define EINVAL 22 // Invalid argument
#define EMFILE 24 // Too many open files
#define EPIPE 32 // Broken pipe. Not implemented.
2022-10-12 10:01:07 +00:00
#define ENOSYS 38 // Function not implemented
#endif