Skip to main content
added 15 characters in body
Source Link
cuonglm
  • 158.1k
  • 41
  • 342
  • 420

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.

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

Using strace touch t yields:

open("t", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 3

It is in touch's code and I wouldn't call it a check though. The timestamp is updated by opening the file for writing and then just closing it.

Source Link
VaTo
  • 3.3k
  • 5
  • 24
  • 49

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