Expand/Shrink

ARM swi numbers

I’ve tried to keep this down to a semi-reasonable length, rather than just dump all 377+ here...
#ilASM {mov r7, sys_exit} and #ilASM {swi sys_exit} should be recognised, even though there is no matching hll sys_exit constant.
(The latter having 0x900000 added that the former does not, other attempted uses of sys_exit, and similar, may or may not work.)
Of course it may often be easier and simply all-round better to use libc routines, but there is a limit to what I can document...
As an [untested] example, #ilASM{call "libc", "dlsym"} is likely to get you much further than anything here possibly can.
In general, it is usually much better to try using libc, like that, before resorting to any of these...

Name Registers
r7 r0 r1 r2 r3 r4 r5
restart_syscall 0x900000------
exit 0x900001int error_code-----
fork 0x900002------
read 0x900003unsigned int fdchar *bufsize_t count---
write 0x900004unsigned int fdconst char *bufsize_t count---
open 0x900005const char *filenameint flagsumode_t mode---
close 0x900006unsigned int fd-----
execve 0x90000bconst char *filenameiconst char *const *argvconst char *const *envp---
chdir 0x90000cconst char *filename-----
time 0x90000dtime_t *tloc-----
pipe 0x90002aint *fildes-----
brk 0x90002dunsigned long brk-----
ioctl 0x900036unsigned int fdunsigned int cmdunsigned long arg---
sigaction 0x900043int sigconst struct old_sigaction *actstruct old_sigaction *oact---
gettimeofday 0x90004estruct timeval *tvstruct timezone *tz----
select 0x900052int nfd_set *inpfd_set *outpfd_set *expstruct timeval *tvp-
mmap 0x90005astruct mmap_arg_struct *arg-----
munmap 0x90005bunsigned long addrsize_t len----
flock 0x90008funsigned int fdunsigned int cmd----
nanosleep 0x9000a2struct timespec *rqtpstruct timespec *rmtp----
mremap 0x9000a3unsigned long addrunsigned long old_lenunsigned long new_lenunsigned long flagsunsigned long new_addr-
pread64 0x9000b4char *buf size_t countloff_t pos----
pwrite64 0x9000b5const char *buf size_t countloff_t pos----
chown 0x9000b6const char *filenameuid_t usergid_t group---
getcwd 0x9000b7char *bufunsigned long size----
mmap2 0x9000c0unsigned long addrunsigned long lenunsigned long protunsigned long flagsunsigned long fdunsigned long pgoff
stat64 0x9000c3const char *filenamestruct stat64 *statbuf----
lstat64 0x9000c4const char *filenamestruct stat64 *statbuf----
fstat64 0x9000c5unsigned long fdstruct stat64 *statbuf----
fcntl64 0x9000ddunsigned int fdunsigned int cmdunsigned long arg---
gettid 0x9000e0------
futex 0x9000f0u32 *uaddrint opu32 valstruct timespec *utimeu32 *uaddr2u32 val3
exit_group 0x9000f8int error_code-----
clock_settime 0x900106const clockid_t which_clockconst struct timespec *tp----
clock_gettime 0x900107const clockid_t which_clockstruct timespec *tp----
clock_getres 0x900108const clockid_t which_clockstruct timespec *tp----
clock_nanosleep 0x900109const clockid_t which_clockint flagsconst struct timespec *rqtpstruct timespec *rmtp--
statfs64 0x90010aconst char *pathnamesize_t szstruct statfs64 *buf---
fstatfs64 0x90010bunsigned int fdsize_t szstruct statfs64 *buf---
waitid 0x900118int whichpid_t upidstruct siginfo *infopint optionsstruct rusage *ru-
socket 0x900119int familyint typeint protocol---
bind 0x90011aint fdstruct sockaddr *umyaddrint addrlen---
connect 0x90011bint fdstruct sockaddr *uservaddrint addrlen---
listen 0x90011cint fdint backlog----
accept 0x90011dint fdstruct sockaddr *upeer_sockaddrint *upeer_addrlen---
getsockname 0x90011eint fdstruct sockaddr *usockaddrint *usockaddr_len---
getpeername 0x90011fint fdstruct sockaddr *usockaddrint *usockaddr_len---
socketpair 0x900120int familyint typeint protocolint *usockvec--
send 0x900121int fdvoid *buffsize_t lenunsigned int flags--
sendto 0x900122int fdvoid *buffsize_t lenunsigned int flagsstruct sockaddr *addrint addr_len
recv 0x900123int fdvoid *ubufsize_t sizeunsigned int flags--
recvfrom 0x900124int fdvoid *ubufsize_t sizeunsigned int flagsstruct sockaddr *addrint *addr_len
shutdown 0x900125int fdint how----
setsockopt 0x900126int fdint levelint optnamechar *optvalint optlen-
getsockopt 0x900127int fdint levelint optnamechar *optvalint *optlen-
sendmsg 0x900128int fdstruct msghdr *msgunsigned int flags---
recvmsg 0x900129int fdstruct msghdr *msgunsigned int flags---