summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-05-22 21:10:50 +0900
committerKay Sievers <kay@vrfy.org>2014-05-24 07:21:11 +0800
commitc38dfac9ed6c1c3beb3dd88ebf82a13d1e561ff8 (patch)
tree0c14052ca9717bdeb896fecfc4ca34908e597f8e /src/shared/util.h
parent24efb112451413c1013d5f7fe27d7e2cd407647a (diff)
shared: add touch_file() and let touch() always update timestamp
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 7a7d15c82c..62eb60402d 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -478,6 +478,7 @@ char *ellipsize(const char *s, size_t length, unsigned percent);
/* bytes columns */
char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned percent);
+int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode);
int touch(const char *path);
char *unquote(const char *s, const char *quotes);