2023-01-12 15:33:09 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2003, 2004, 2005 Thorsten Kukuk
|
|
|
|
* Author: Thorsten Kukuk <kukuk@suse.de>
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain any existing copyright
|
|
|
|
* notice, and this entire permission notice in its entirety,
|
|
|
|
* including the disclaimer of warranties.
|
|
|
|
*
|
|
|
|
* 2. Redistributions in binary form must reproduce all prior and current
|
|
|
|
* copyright notices, this list of conditions, and the following
|
|
|
|
* disclaimer in the documentation and/or other materials provided
|
|
|
|
* with the distribution.
|
|
|
|
*
|
|
|
|
* 3. The name of any author may not be used to endorse or promote
|
|
|
|
* products derived from this software without their specific prior
|
|
|
|
* written permission.
|
|
|
|
*/
|
2011-10-05 12:10:26 +02:00
|
|
|
#ifndef UTIL_LINUX_LOGINDEFS_H
|
|
|
|
#define UTIL_LINUX_LOGINDEFS_H
|
|
|
|
|
2012-05-25 10:54:23 +02:00
|
|
|
extern void logindefs_load_file(const char *filename);
|
2016-10-13 14:22:52 +02:00
|
|
|
extern void logindefs_set_loader(void (*loader)(void *data), void *data);
|
2011-10-05 12:10:26 +02:00
|
|
|
extern int getlogindefs_bool(const char *name, int dflt);
|
2019-01-11 12:15:00 +01:00
|
|
|
extern unsigned long getlogindefs_num(const char *name, unsigned long dflt);
|
2011-10-05 12:10:26 +02:00
|
|
|
extern const char *getlogindefs_str(const char *name, const char *dflt);
|
|
|
|
extern void free_getlogindefs_data(void);
|
2012-02-28 11:16:16 +01:00
|
|
|
extern int logindefs_setenv(const char *name, const char *conf, const char *dflt);
|
2014-04-08 13:26:33 +02:00
|
|
|
extern int effective_access(const char *path, int mode);
|
2014-04-07 18:24:19 +02:00
|
|
|
extern int get_hushlogin_status(struct passwd *pwd, int force_check);
|
2011-10-05 12:10:26 +02:00
|
|
|
|
|
|
|
#endif /* UTIL_LINUX_LOGINDEFS_H */
|