From 22d381367c27910fe82f476a76b9f4ede555e35a Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Fri, 8 Mar 2013 14:26:42 +0100 Subject: Reuse sss_open_cloexec at other places in code. Functions open_cloexec and openat_cloexec were renamed with prefix "sss_" and moved to separete file. Replacing duplicated code of function sss_open_cloexec everywhere in the source code. https://fedorahosted.org/sssd/ticket/1794 --- src/util/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util/util.h') diff --git a/src/util/util.h b/src/util/util.h index 8afb3bc96..d5ff9bb07 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -584,6 +584,9 @@ errno_t sssd_domain_init(TALLOC_CTX *mem_ctx, /* from util_lock.c */ errno_t sss_br_lock_file(int fd, size_t start, size_t len, int num_tries, useconds_t wait); +/* from io.c */ +int sss_open_cloexec(const char *pathname, int flags, int *ret); +int sss_openat_cloexec(int dir_fd, const char *pathname, int flags, int *ret); /* Endianness-compatibility for systems running older versions of glibc */ -- cgit