Skip to content

Commit 0bba851

Browse files
committed
[libc] add reference for syscall numbers
Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent 3d60307 commit 0bba851

File tree

1 file changed

+10
-0
lines changed
  • libc/src/__support/OSUtil/darwin/aarch64

1 file changed

+10
-0
lines changed

libc/src/__support/OSUtil/darwin/aarch64/syscall.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ LIBC_INLINE long syscall_impl(long number, long arg1, long arg2, long arg3,
110110
#undef REGISTER_CONSTRAINT_5
111111
#undef REGISTER_CONSTRAINT_6
112112

113+
/* Following has been copied from MacOSX15.5 sdk
114+
* This has been referenced from and generated by the syscalls.master file
115+
* that can be found
116+
* https://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/bsd/kern/syscalls.master
117+
*/
118+
119+
/* SYSCALL NUMBERS START */
120+
113121
#define SYS_syscall 0
114122
#define SYS_exit 1
115123
#define SYS_fork 2
@@ -671,4 +679,6 @@ LIBC_INLINE long syscall_impl(long number, long arg1, long arg2, long arg3,
671679
#define SYS_MAXSYSCALL 558
672680
#define SYS_invalid 63
673681

682+
/* SYSCALL NUMBERS END */
683+
674684
#endif // LLVM_LIBC_SRC___SUPPORT_OSUTIL_DARWIN_ARM_SYSCALL_H

0 commit comments

Comments
 (0)