… | |
… | |
417 | utime(2). If called on a file descriptor, uses futimes(2) if available, |
417 | utime(2). If called on a file descriptor, uses futimes(2) if available, |
418 | otherwise returns ENOSYS, so this is not portable. |
418 | otherwise returns ENOSYS, so this is not portable. |
419 | |
419 | |
420 | Examples: |
420 | Examples: |
421 | |
421 | |
422 | # set atime and mtime to current time: |
422 | # set atime and mtime to current time (basically touch(1)): |
423 | aio_utime "path", undef, undef; |
423 | aio_utime "path", undef, undef; |
424 | # set atime to current time and mtime to beginning of the epoch: |
424 | # set atime to current time and mtime to beginning of the epoch: |
425 | aio_utime "path", time, undef; # undef==0 |
425 | aio_utime "path", time, undef; # undef==0 |
426 | |
426 | |
427 | |
427 | |