syscall.sh / m68k / access
access
check user's permissions for a file
sys_access(const char *filename, int mode)
| number | 33 (0x21) |
|---|---|
| abi | common |
| entry point | sys_access |
| since | Linux 5.0 |
| man page | access(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 33, the syscall number |
d1 | const char *filename |
d2 | int mode |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
- x64 21
- x86 33
- arm 33
- x32 1073741845
- ppc64 33
- ppc 33
- s390x 33
- mips64 5020
- mipsn32 6020
- mipso32 4033
- alpha 33
- microblaze 33
- parisc 33
- sh 33
- sparc 33
- sparc64 33
- xtensa 57
Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/access