diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-03-16 15:11:10 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-18 14:20:33 +0100 |
commit | 3a4186ae40d0c3b7be46a4c973166f6048fcfe38 (patch) | |
tree | 686c814a96a259ca22f58448bbdcd869cc8f62c5 /src/util/io.h | |
parent | 57a6554d8863363c041905607e44459f792225c7 (diff) | |
download | sssd-3a4186ae40d0c3b7be46a4c973166f6048fcfe38.tar.gz sssd-3a4186ae40d0c3b7be46a4c973166f6048fcfe38.tar.xz sssd-3a4186ae40d0c3b7be46a4c973166f6048fcfe38.zip |
Fix sss_client breakage.
Adding missing dependencies for linker. Missing dependency was
introduced by commit 22d381367c27910fe82f476a76b9f4ede555e35a
in changed file src/sss_client/nss_mc_common.c
All function declaration for io.c was moved from util.h to separate file io.h,
https://fedorahosted.org/sssd/ticket/1838
Diffstat (limited to 'src/util/io.h')
-rw-r--r-- | src/util/io.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/util/io.h b/src/util/io.h new file mode 100644 index 000000000..8d10ed9c2 --- /dev/null +++ b/src/util/io.h @@ -0,0 +1,33 @@ +/* + SSSD + + SSSD Utility functions + + Copyright (C) Lukas Slebodnik 2013 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef _UTIL_IO_H_ +#define _UTIL_IO_H_ + +/* CAUTION: + * This file is also used in sss_client (pam, nss). Therefore it have to be + * minimalist and cannot include DEBUG macros or header file util.h. + */ + +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); + +#endif /* _UTIL_IO_H_ */ |