[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1624744725170.jpg (203 KB, 832x1200)
203 KB
203 KB JPG
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/
>>
>god, four fucking syscalls for this, lol. at this point it's honestly just comical.
When I do stuff like rsyncing my codebase, sometime the build system would sperg out when the timestamp of the of the sources was updated, triggering full rebuilds at every invocation.
Especially for big codebases, I see why you would want to update them all efficiently.
also, I usually set noatime for all my filesystems. I don't know why atime is useful, but I'm sure there's a usecase, so having options to set it only when needed seems useful to me
>>
bampu
>>
>>108515827
>the more i go through all of these syscalls, the more i have to question just what the fuck the linux devs were smoking
Is this specifically a linux thing or a posix thing?
>>
>>108517037
i guess posix, probably
>>
>>108515827
love u syscall anon
>>
>>108519905
l-love you too....
>>
What is a system call?
>>
>>108520569
lowest level of the operating system's user mode accessible API, how you delegate function calls between kernel mode and user mode
windows doesn't really call them in most documentation, it calls its syscalls the NT API, because they do things a bit different, especially with regards to access and interface stability as well as context switching since some of their system calls don't switch modes and are instead directly accessible, clones of the ones that do, meant for things like user mode drivers or NT API applications



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.