X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=96b8c1bcc0fdafd9e6efeb0c690aedb64aafd269;hb=72648326ea6d3e68cdb0b5890df737047d031a41;hp=9a878ca1ac13a00a02a0dffe7b198b59160d4dd8;hpb=257224b0cdbb5ae1ac463a6a6645e033882b967e;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index 9a878ca1a..96b8c1bcc 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -1018,6 +1018,7 @@ int fflush_and_check(FILE *f); int tempfn_xxxxxx(const char *p, char **ret); int tempfn_random(const char *p, char **ret); +int tempfn_random_child(const char *p, char **ret); bool is_localhost(const char *hostname); @@ -1039,3 +1040,5 @@ int sethostname_idempotent(const char *s); for ((e) = (struct inotify_event*) (buffer); \ (uint8_t*) (e) < (uint8_t*) (buffer) + (sz); \ (e) = (struct inotify_event*) ((uint8_t*) (e) + sizeof(struct inotify_event) + (e)->len)) + +#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)