diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-03-08 14:26:42 +0100 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-03-13 14:41:33 -0400 |
commit | 22d381367c27910fe82f476a76b9f4ede555e35a (patch) | |
tree | 4c9c2d12bae688e4f94a9864f3069018bf171ca1 /src/util/util.h | |
parent | 8359bf07a2e6c0181251ce8d5d9160dc57546c55 (diff) | |
download | sssd-22d381367c27910fe82f476a76b9f4ede555e35a.tar.gz sssd-22d381367c27910fe82f476a76b9f4ede555e35a.tar.xz sssd-22d381367c27910fe82f476a76b9f4ede555e35a.zip |
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
Diffstat (limited to 'src/util/util.h')
-rw-r--r-- | src/util/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |