Lines Matching defs:path
30 static int apply_timestamp(const char *path, struct timespec *ts) {
37 assert(path);
40 if (stat(path, &st) >= 0) {
53 if (utimensat(AT_FDCWD, path, twice, AT_SYMLINK_NOFOLLOW) < 0) {
56 return log_debug("Can't update timestamp file %s, file system is read-only.", path);
58 return log_error_errno(errno, "Failed to update timestamp on %s: %m", path);
67 r = mac_selinux_create_file_prepare(path, S_IFREG);
69 return log_error_errno(r, "Failed to set SELinux context for %s: %m", path);
71 fd = open(path, O_CREAT|O_EXCL|O_WRONLY|O_TRUNC|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0644);
76 return log_debug("Can't create timestamp file %s, file system is read-only.", path);
78 return log_error_errno(errno, "Failed to create timestamp file %s: %m", path);
84 return log_error_errno(errno, "Failed to update timestamp on %s: %m", path);
86 log_error_errno(errno, "Failed to stat() timestamp file %s: %m", path);