]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/logindefs.h
2 * Copyright (C) 2003, 2004, 2005 Thorsten Kukuk
3 * Author: Thorsten Kukuk <kukuk@suse.de>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
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.
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.
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
22 #ifndef UTIL_LINUX_LOGINDEFS_H
23 #define UTIL_LINUX_LOGINDEFS_H
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
);
35 #endif /* UTIL_LINUX_LOGINDEFS_H */