2008-04-27 06:10:09 +05:30
|
|
|
/*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-FileCopyrightText: 1991 - 1994, Julianne Frances Haugh
|
|
|
|
* SPDX-FileCopyrightText: 1996 - 2000, Marek Michałkiewicz
|
|
|
|
* SPDX-FileCopyrightText: 2002 - 2006, Tomasz Kłoczko
|
|
|
|
* SPDX-FileCopyrightText: 2008 , Nicolas François
|
2008-04-27 06:10:09 +05:30
|
|
|
*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2008-04-27 06:10:09 +05:30
|
|
|
*/
|
2007-10-07 17:14:02 +05:30
|
|
|
#ifndef _GETDEF_H
|
|
|
|
#define _GETDEF_H
|
|
|
|
|
|
|
|
/* getdef.c */
|
2008-05-26 03:13:05 +05:30
|
|
|
extern bool getdef_bool (const char *);
|
2007-10-07 17:16:07 +05:30
|
|
|
extern long getdef_long (const char *, long);
|
|
|
|
extern int getdef_num (const char *, int);
|
2008-06-15 02:39:33 +05:30
|
|
|
extern unsigned long getdef_ulong (const char *, unsigned long);
|
2007-10-07 17:16:07 +05:30
|
|
|
extern unsigned int getdef_unum (const char *, unsigned int);
|
* libmisc/xgetXXbyYY.c, libmisc/myname.c, libmisc/getgr_nam_gid.c,
libmisc/salt.c, libmisc/list.c, libmisc/cleanup.c, src/login.c,
lib/getdef.h, lib/groupio.c, lib/getlong.c, lib/gshadow_.h,
lib/sgroupio.c, lib/shadowio.c, lib/pwio.c, lib/commonio.h,
lib/fputsx.c, lib/prototypes.h: Added splint annotations.
* lib/groupio.c: Avoid implicit conversion of pointers to
booleans.
* lib/groupio.c: Free allocated buffers in case of failure.
2009-04-23 15:27:03 +05:30
|
|
|
extern /*@observer@*/ /*@null@*/const char *getdef_str (const char *);
|
2007-10-07 17:16:07 +05:30
|
|
|
extern int putdef_str (const char *, const char *);
|
2016-05-15 19:19:39 +05:30
|
|
|
extern void setdef_config_file (const char* file);
|
2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:17:22 +05:30
|
|
|
/* default UMASK value if not specified in /etc/login.defs */
|
|
|
|
#define GETDEF_DEFAULT_UMASK 022
|
|
|
|
|
2007-10-07 17:16:07 +05:30
|
|
|
#endif /* _GETDEF_H */
|