-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #946 from streaksu/master
sysdeps/ironclad: fold mlibc abi into ironclad abi
- Loading branch information
Showing
107 changed files
with
3,546 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef _ABIBITS_ACCESS_H | ||
#define _ABIBITS_ACCESS_H | ||
|
||
#define F_OK 1 | ||
#define R_OK 2 | ||
#define W_OK 4 | ||
#define X_OK 8 | ||
|
||
#endif // _ABIBITS_ACCESS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef _ABIBITS_BLKCNT_T_H | ||
#define _ABIBITS_BLKCNT_T_H | ||
|
||
// TODO: use int64_t? | ||
typedef long blkcnt_t; | ||
|
||
#endif // _ABIBITS_BLKCNT_T_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef _ABIBITS_BLKSIZE_T_H | ||
#define _ABIBITS_BLKSIZE_T_H | ||
|
||
// TODO: use int64_t? | ||
typedef long blksize_t; | ||
|
||
#endif // _ABIBITS_BLKSIZE_T_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef _ABIBITS_CLOCKID_T_H | ||
#define _ABIBITS_CLOCKID_T_H | ||
|
||
typedef long clockid_t; | ||
|
||
#endif /* _ABIBITS_CLOCKID_T_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef _ABIBITS_DEV_T_H | ||
#define _ABIBITS_DEV_T_H | ||
|
||
typedef unsigned long dev_t; | ||
|
||
#endif // _ABIBITS_DEV_T_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef _ABIBITS_EPOLL_H | ||
#define _ABIBITS_EPOLL_H | ||
|
||
#define EPOLL_CLOEXEC 1 | ||
|
||
#endif // _ABIBITS_EPOLL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
#ifndef _ABIBITS_ERRNO_H | ||
#define _ABIBITS_ERRNO_H | ||
|
||
#define EDOM 1 | ||
#define EILSEQ 2 | ||
#define ERANGE 3 | ||
|
||
#define E2BIG 1001 | ||
#define EACCES 1002 | ||
#define EADDRINUSE 1003 | ||
#define EADDRNOTAVAIL 1004 | ||
#define EAFNOSUPPORT 1005 | ||
#define EAGAIN 1006 | ||
#define EALREADY 1007 | ||
#define EBADF 1008 | ||
#define EBADMSG 1009 | ||
#define EBUSY 1010 | ||
#define ECANCELED 1011 | ||
#define ECHILD 1012 | ||
#define ECONNABORTED 1013 | ||
#define ECONNREFUSED 1014 | ||
#define ECONNRESET 1015 | ||
#define EDEADLK 1016 | ||
#define EDESTADDRREQ 1017 | ||
#define EDQUOT 1018 | ||
#define EEXIST 1019 | ||
#define EFAULT 1020 | ||
#define EFBIG 1021 | ||
#define EHOSTUNREACH 1022 | ||
#define EIDRM 1023 | ||
#define EINPROGRESS 1024 | ||
#define EINTR 1025 | ||
#define EINVAL 1026 | ||
#define EIO 1027 | ||
#define EISCONN 1028 | ||
#define EISDIR 1029 | ||
#define ELOOP 1030 | ||
#define EMFILE 1031 | ||
#define EMLINK 1032 | ||
#define EMSGSIZE 1034 | ||
#define EMULTIHOP 1035 | ||
#define ENAMETOOLONG 1036 | ||
#define ENETDOWN 1037 | ||
#define ENETRESET 1038 | ||
#define ENETUNREACH 1039 | ||
#define ENFILE 1040 | ||
#define ENOBUFS 1041 | ||
#define ENODEV 1042 | ||
#define ENOENT 1043 | ||
#define ENOEXEC 1044 | ||
#define ENOLCK 1045 | ||
#define ENOLINK 1046 | ||
#define ENOMEM 1047 | ||
#define ENOMSG 1048 | ||
#define ENOPROTOOPT 1049 | ||
#define ENOSPC 1050 | ||
#define ENOSYS 1051 | ||
#define ENOTCONN 1052 | ||
#define ENOTDIR 1053 | ||
#define ENOTEMPTY 1054 | ||
#define ENOTRECOVERABLE 1055 | ||
#define ENOTSOCK 1056 | ||
#define ENOTSUP 1057 | ||
#define ENOTTY 1058 | ||
#define ENXIO 1059 | ||
#define EOPNOTSUPP 1060 | ||
#define EOVERFLOW 1061 | ||
#define EOWNERDEAD 1062 | ||
#define EPERM 1063 | ||
#define EPIPE 1064 | ||
#define EPROTO 1065 | ||
#define EPROTONOSUPPORT 1066 | ||
#define EPROTOTYPE 1067 | ||
#define EROFS 1068 | ||
#define ESPIPE 1069 | ||
#define ESRCH 1070 | ||
#define ESTALE 1071 | ||
#define ETIMEDOUT 1072 | ||
#define ETXTBSY 1073 | ||
#define EWOULDBLOCK EAGAIN | ||
#define EXDEV 1075 | ||
#define ENODATA 1076 | ||
#define ETIME 1077 | ||
#define ENOKEY 1078 | ||
#define ESHUTDOWN 1079 | ||
#define EHOSTDOWN 1080 | ||
#define EBADFD 1081 | ||
#define ENOMEDIUM 1082 | ||
#define ENOTBLK 1083 | ||
#define ENONET 1084 | ||
#define EPFNOSUPPORT 1085 | ||
#define ESOCKTNOSUPPORT 1086 | ||
#define ESTRPIPE 1087 | ||
#define EREMOTEIO 1088 | ||
#define ERFKILL 1089 | ||
#define EBADR 1090 | ||
#define EUNATCH 1091 | ||
#define EMEDIUMTYPE 1092 | ||
#define EREMOTE 1093 | ||
#define EKEYREJECTED 1094 | ||
#define EUCLEAN 1095 | ||
#define EBADSLT 1096 | ||
#define ENOANO 1097 | ||
#define ENOCSI 1098 | ||
#define ENOSTR 1099 | ||
#define ETOOMANYREFS 1100 | ||
#define ENOPKG 1101 | ||
#define EKEYREVOKED 1102 | ||
#define EXFULL 1103 | ||
#define ELNRNG 1104 | ||
#define ENOTUNIQ 1105 | ||
#define ERESTART 1106 | ||
#define EUSERS 1107 | ||
#define ECHRNG 1108 | ||
#define ELIBBAD 1109 | ||
#define EL2HLT 1110 | ||
#define EL3HLT 1111 | ||
#define EKEYEXPIRED 1112 | ||
#define ECOMM 1113 | ||
#define EBADE 1114 | ||
#define EHWPOISON 1115 | ||
#define EBADRQC 1116 | ||
|
||
#define EIEIO 1524152434 | ||
|
||
#endif // _ABIBITS_ERRNO_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef _ABIBITS_FSBLKCNT_T_H | ||
#define _ABIBITS_FSBLKCNT_T_H | ||
|
||
#include <bits/types.h> | ||
|
||
typedef __mlibc_uint64 fsblkcnt_t; | ||
|
||
#endif /* _ABIBITS_FSBLKCNT_T_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef _ABIBITS_FSFILCNT_T_H | ||
#define _ABIBITS_FSFILCNT_T_H | ||
|
||
#include <bits/types.h> | ||
|
||
typedef __mlibc_uint64 fsfilcnt_t; | ||
|
||
#endif /* _ABIBITS_FSFILCNT_T_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef _ABIBITS_GID_T_H | ||
#define _ABIBITS_GID_T_H | ||
|
||
typedef unsigned int gid_t; | ||
|
||
#endif // _ABIBITS_GID_T_H |
Oops, something went wrong.