syscall.sh / sh / utimensat
utimensat
change file timestamps with nanosecond precision
sys_utimensat_time32(unsigned int dfd, const char *filename, struct old_timespec32 *t, int flags)
| number | 320 (0x140) |
|---|---|
| abi | common |
| entry point | sys_utimensat_time32 |
| since | Linux 5.0 |
| man page | utimensat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 320, the syscall number |
r4 | unsigned int dfd |
r5 | const char *filename |
r6 | struct old_timespec32 *t |
r7 | int flags |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 280
- x86 320
- arm64 88
- arm 348
- riscv64 88
- x32 1073742104
- loongarch64 88
- ppc64 304
- ppc 304
- s390x 315
- mips64 5275
- mipsn32 6279
- mipso32 4316
- alpha 475
- arc 88
- csky 88
- hexagon 88
- m68k 316
- microblaze 320
- nios2 88
- openrisc 88
- parisc 301
- sparc 310
- sparc64 310
- xtensa 296
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/utimensat