previous: >>108507823
#define __NR_utime 132
#define __NR_utimes 235
#define __NR_futimesat 261
#define __NR_utimensat 280
https://man7.org/linux/man-pages/man2/utimes.2.html
https://man7.org/linux/man-pages/man2/futimesat.2.html
https://man7.org/linux/man-pages/man2/utimensat.2.html
tl;dr:
manage file timestamps
god, four fucking syscalls for this, lol. at this point it's honestly just comical.
this is interesting, at least
>Linux does not allow ... setting the timestamps to something other than the current time on an append-only file.
and this is just plain absurd
>If both tv_nsec fields are specified as UTIME_OMIT, then the Linux implementation of utimensat() succeeds even if the file referred to by dirfd and path does not exist.
like, lmfao
and all this for what? to change file access timestamps??? fucking why? who even wants to do this? the more i go through all of these syscalls, the more i have to question just what the fuck the linux devs were smoking
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/