diff options
author | Tom Gundersen <teg@jklm.no> | 2015-03-18 19:38:08 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-03-18 19:56:01 -0400 |
commit | 5c3965d1a89539ad6042bbfdcc844fc9ed8aa379 (patch) | |
tree | 07ea294763228c5a0ae10b16568ca65b48811a65 /src/shared/util.h | |
parent | ced0d2419e3fc88e29f8076363deb4214b87f0f2 (diff) |
libudev: udev_device_add_property - implicitly mark properties for saving to db
Note: We also ported touch() and touch_file() from upstream. -AGB.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 55701cf7a5..fc4f9f2e22 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -282,6 +282,9 @@ char* dirname_malloc(const char *path); int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid); +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); + bool null_or_empty(struct stat *st) _pure_; int null_or_empty_path(const char *fn); int null_or_empty_fd(int fd); |