]>
Commit | Line | Data |
---|---|---|
faeb1b64 KZ |
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 | */ | |
c82d9c97 KZ |
22 | #ifndef UTIL_LINUX_LOGINDEFS_H |
23 | #define UTIL_LINUX_LOGINDEFS_H | |
24 | ||
9c44ac50 | 25 | extern void logindefs_load_file(const char *filename); |
832f5cd5 | 26 | extern void logindefs_set_loader(void (*loader)(void *data), void *data); |
c82d9c97 | 27 | extern int getlogindefs_bool(const char *name, int dflt); |
62342745 | 28 | extern unsigned long getlogindefs_num(const char *name, unsigned long dflt); |
c82d9c97 KZ |
29 | extern const char *getlogindefs_str(const char *name, const char *dflt); |
30 | extern void free_getlogindefs_data(void); | |
607e6b7c | 31 | extern int logindefs_setenv(const char *name, const char *conf, const char *dflt); |
78dd7450 | 32 | extern int effective_access(const char *path, int mode); |
29cc2a55 | 33 | extern int get_hushlogin_status(struct passwd *pwd, int force_check); |
c82d9c97 KZ |
34 | |
35 | #endif /* UTIL_LINUX_LOGINDEFS_H */ |