Lines Matching defs:utime
394 # include <utime.h>
398 # include <sys/utime.h>
5429 return utime(path, time);
5432 return utime(path, time);
5467 os.utime
5476 # "utime(path, times=None, *[, ns], dir_fd=None, follow_symlinks=True)\n\
5489 If times is None and ns is unspecified, utime uses the current time.
5495 link, utime will modify the symbolic link itself instead of the file the
5516 utime_t utime;
5518 memset(&utime, 0, sizeof(utime_t));
5522 "utime: you may specify either 'times'"
5532 "utime: 'times' must be either"
5536 utime.now = 0;
5543 utime.atime_s = a_sec;
5544 utime.atime_ns = a_nsec;
5545 utime.mtime_s = m_sec;
5546 utime.mtime_ns = m_nsec;
5551 "utime: 'ns' must be a tuple of two ints");
5554 utime.now = 0;
5556 &utime.atime_s, &utime.atime_ns) ||
5558 &utime.mtime_s, &utime.mtime_ns)) {
5564 utime.now = 1;
5568 if (follow_symlinks_specified("utime", follow_symlinks))
5572 if (path_and_dir_fd_invalid("utime", path, dir_fd) ||
5573 dir_fd_and_fd_invalid("utime", dir_fd, path->fd) ||
5574 fd_and_follow_symlinks_invalid("utime", path->fd, follow_symlinks))
5580 "utime: cannot use dir_fd and follow_symlinks "
5586 if (PySys_Audit("os.utime", "OOOi", path->object, times, ns ? ns : Py_None,
5602 if (utime.now) {
5607 _Py_time_t_to_FILE_TIME(utime.atime_s, utime.atime_ns, &atime);
5608 _Py_time_t_to_FILE_TIME(utime.mtime_s, utime.mtime_ns, &mtime);
5625 result = utime_nofollow_symlinks(&utime, path->narrow);
5631 result = utime_dir_fd(&utime, dir_fd, path->narrow, follow_symlinks);
5638 result = utime_fd(&utime, path->fd);
5642 result = utime_default(&utime, path->narrow);
9100 (utime, stime, cutime, cstime, elapsed_time)