stracing 'touch t'Using strace touch t yields: open("t", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 3
it
open("t", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 3
It is in touch'stouch's code and I wouldn't call it a 'check'check though.
The timestamp is updated by opening the file for writing and then just closing it.