libmetal
353
errno.h
Go to the documentation of this file.
1
/*-
2
* Copyright (c) 2020 STMicroelectronics. All rights reserved.
3
*
4
* Copyright (c) 1982, 1986, 1989, 1993
5
* The Regents of the University of California. All rights reserved.
6
* (c) UNIX System Laboratories, Inc.
7
*
8
* SPDX-License-Identifier: BSD-3-Clause
9
*/
10
16
#ifndef __METAL_IAR_ERRNO__H__
17
#define __METAL_IAR_ERRNO__H__
18
19
#include <
errno.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#define LIBMETAL_ERR_BASE 100
26
27
#define EPERM (LIBMETAL_ERR_BASE + 1)
/* Operation not permitted */
28
#define ENOENT (LIBMETAL_ERR_BASE + 2)
/* No such file or directory */
29
#define ESRCH (LIBMETAL_ERR_BASE + 3)
/* No such process */
30
#define EINTR (LIBMETAL_ERR_BASE + 4)
/* Interrupted system call */
31
#define EIO (LIBMETAL_ERR_BASE + 5)
/* Input/output error */
32
#define ENXIO (LIBMETAL_ERR_BASE + 6)
/* Device not configured */
33
#define E2BIG (LIBMETAL_ERR_BASE + 7)
/* Argument list too long */
34
#define ENOEXEC (LIBMETAL_ERR_BASE + 8)
/* Exec format error */
35
#define EBADF (LIBMETAL_ERR_BASE + 9)
/* Bad file descriptor */
36
#define ECHILD (LIBMETAL_ERR_BASE + 10)
/* No child processes */
37
#define EDEADLK (LIBMETAL_ERR_BASE + 11)
/* Resource deadlock avoided */
38
#define ENOMEM (LIBMETAL_ERR_BASE + 12)
/* Cannot allocate memory */
39
#define EACCES (LIBMETAL_ERR_BASE + 13)
/* Permission denied */
40
#define EFAULT (LIBMETAL_ERR_BASE + 14)
/* Bad address */
41
#define ENOTBLK (LIBMETAL_ERR_BASE + 15)
/* Block device required */
42
#define EBUSY (LIBMETAL_ERR_BASE + 16)
/* Device busy */
43
#define EEXIST (LIBMETAL_ERR_BASE + 17)
/* File exists */
44
#define EXDEV (LIBMETAL_ERR_BASE + 18)
/* Cross-device link */
45
#define ENODEV (LIBMETAL_ERR_BASE + 19)
/* Operation not supported by device */
46
#define ENOTDIR (LIBMETAL_ERR_BASE + 20)
/* Not a directory */
47
#define EISDIR (LIBMETAL_ERR_BASE + 21)
/* Is a directory */
48
#define EINVAL (LIBMETAL_ERR_BASE + 22)
/* Invalid argument */
49
#define ENFILE (LIBMETAL_ERR_BASE + 23)
/* Too many open files in system */
50
#define EMFILE (LIBMETAL_ERR_BASE + 24)
/* Too many open files */
51
#define ENOTTY (LIBMETAL_ERR_BASE + 25)
/* Inappropriate ioctl for device */
52
#define ETXTBSY (LIBMETAL_ERR_BASE + 26)
/* Text file busy */
53
#define EFBIG (LIBMETAL_ERR_BASE + 27)
/* File too large */
54
#define ENOSPC (LIBMETAL_ERR_BASE + 28)
/* No space left on device */
55
#define ESPIPE (LIBMETAL_ERR_BASE + 29)
/* Illegal seek */
56
#define EROFS (LIBMETAL_ERR_BASE + 30)
/* Read-only filesystem */
57
#define EMLINK (LIBMETAL_ERR_BASE + 31)
/* Too many links */
58
#define EPIPE (LIBMETAL_ERR_BASE + 32)
/* Broken pipe */
59
#define EAGAIN (LIBMETAL_ERR_BASE + 35)
/* Resource temporarily unavailable */
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif
/* __METAL_IAR_ERRNO__H__ */
errno.h
Error specific primitives for libmetal.
lib
compiler
iar
errno.h
Generated on Tue Dec 23 2025 14:41:34 for libmetal by
1.9.1