• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--- /home/chris/oh_patchlibc_0803/openharmony/third_party/musl/arch/generic/bits/errno.h	2023-08-07 15:19:23.150403358 +0800
2+++ topatch/arch/generic/bits/errno.h	2023-08-07 16:24:49.173781279 +0800
3@@ -1,12 +1,24 @@
4-#define EPERM            1
5-#define ENOENT           2
6-#define ESRCH            3
7-#define EINTR            4
8-#define EIO              5
9-#define ENXIO            6
10-#define E2BIG            7
11-#define ENOEXEC          8
12-#define EBADF            9
13+/*
14+ * Copyright (c) 2023 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU)
15+ * Licensed under the Mulan PSL v2.
16+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
17+ * You may obtain a copy of Mulan PSL v2 at:
18+ *     http://license.coscl.org.cn/MulanPSL2
19+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
20+ * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
21+ * PURPOSE.
22+ * See the Mulan PSL v2 for more details.
23+ */
24+
25+#define EPERM           1
26+#define ENOENT          2
27+#define ESRCH           3
28+#define EINTR           4
29+#define EIO             5
30+#define ENXIO           6
31+#define E2BIG           7
32+#define ENOEXEC         8
33+#define EBADF           9
34 #define ECHILD          10
35 #define EAGAIN          11
36 #define ENOMEM          12
37@@ -132,3 +144,13 @@
38 #define ENOTRECOVERABLE 131
39 #define ERFKILL         132
40 #define EHWPOISON       133
41+
42+/* ChCore Specific */
43+#define EIPCRETRY   199 /* Retry the IPC call */
44+#define ECAPBILITY  200 /* Invalid capability */
45+#define ESUPPORT    201 /* Not supported */
46+#define EBADSYSCALL 202 /* Bad syscall number */
47+#define ENOMAPPING  203 /* No memory mapping in pgtbl */
48+#define ESIGBUS     204 /* Bus error */
49+
50+#define EMAX 205
51