]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/logindefs.h
Merge branch 'PR/libsmartcols-filter' of github.com:karelzak/util-linux-work
[thirdparty/util-linux.git] / include / logindefs.h
1 /*
2 * Copyright (C) 2003, 2004, 2005 Thorsten Kukuk
3 * Author: Thorsten Kukuk <kukuk@suse.de>
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain any existing copyright
10 * notice, and this entire permission notice in its entirety,
11 * including the disclaimer of warranties.
12 *
13 * 2. Redistributions in binary form must reproduce all prior and current
14 * copyright notices, this list of conditions, and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
17 *
18 * 3. The name of any author may not be used to endorse or promote
19 * products derived from this software without their specific prior
20 * written permission.
21 */
22 #ifndef UTIL_LINUX_LOGINDEFS_H
23 #define UTIL_LINUX_LOGINDEFS_H
24
25 extern void logindefs_load_file(const char *filename);
26 extern void logindefs_set_loader(void (*loader)(void *data), void *data);
27 extern int getlogindefs_bool(const char *name, int dflt);
28 extern unsigned long getlogindefs_num(const char *name, unsigned long dflt);
29 extern const char *getlogindefs_str(const char *name, const char *dflt);
30 extern void free_getlogindefs_data(void);
31 extern int logindefs_setenv(const char *name, const char *conf, const char *dflt);
32 extern int effective_access(const char *path, int mode);
33 extern int get_hushlogin_status(struct passwd *pwd, int force_check);
34
35 #endif /* UTIL_LINUX_LOGINDEFS_H */