tools_util.h revision 83bf46f4066e3d5e838a32357c201de9bd6ecdfd
/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Simo Sorce <ssorce@redhat.com>
Copyright (C) 2009 Red Hat
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 __TOOLS_UTIL_H__
#define __TOOLS_UTIL_H__
#include <popt.h>
#define MAX_PID_LENGTH 10
val = EXIT_FAILURE; \
goto label; \
} while(0)
if (val != 0) { \
val = EXIT_FAILURE; \
goto fini; \
} \
} while(0)
struct tools_ctx {
struct confdb_ctx *confdb;
struct sss_names_ctx *snctx;
struct sss_domain_info *local;
bool transaction_done;
int error;
};
int set_locale(void);
const char *fullname);
struct sss_domain_info *dom);
const char *optstr,
char ***_out);
char **groups);
char **grouplist,
char **badgroup);
int create_homedir(const char *skeldir,
const char *homedir,
const char *username,
const char *maildir,
const char *homedir,
const char *maildir,
const char *username,
/* tools_mc_util.c */
errno_t sss_memcache_clear_all(void);
char **groupnames);
/* from files.c */
int remove_tree(const char *root);
/* from selinux.c */
int selinux_file_context(const char *dst_name);
int reset_selinux_file_context(void);
int del_seuser(const char *login_name);
#endif /* __TOOLS_UTIL_H__ */