shadow/lib
Alejandro Colomar 4e1afcd662 Assume STDC_HEADERS will always be defined
We're in 2021.  C89 is everywhere; in fact, there are many other
assumptions in the code that wouldn't probably hold on
pre-standard C environments.  Let's simplify and assume that C89
is available.

The specific assumptions are that:
- <string.h>, and <stdlib.h> are available
- strchr(3), strrchr(3), and strtok(3) are available
- isalpha(3), isspace(3), isdigit(3), and isupper(3) are available

I think we can safely assume we have all of those.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2021-12-29 02:39:04 +01:00
..
.indent.pro
commonio.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
commonio.h struct commonio_db[selinux]: do not use deprecated type security_context_t 2021-05-06 16:58:10 +02:00
defines.h Assume STDC_HEADERS will always be defined 2021-12-29 02:39:04 +01:00
encrypt.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
exitcodes.h * lib/exitcodes.h: Define E_SUCCESS as EXIT_SUCCESS. Added FIXMEs. 2009-04-30 21:08:49 +00:00
faillog.h fix spelling 2021-09-13 15:11:40 +00:00
fields.c * lib/fields.c: Fixed typo from 2010-02-15. field insteadof cp 2011-07-08 19:56:18 +00:00
fputsx.c * lib/fputsx.c: Compare the result of fgets() with the provided 2009-06-12 20:20:45 +00:00
get_gid.c * libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c, 2009-04-30 21:12:33 +00:00
get_pid.c * libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c, 2009-04-30 21:12:33 +00:00
get_uid.c * libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c, 2009-04-30 21:12:33 +00:00
getdef.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
getdef.h add --prefix option 2017-03-01 22:51:09 +01:00
getlong.c * lib/getlong.c: Do not check for NULL string but empty string. 2009-04-24 23:27:12 +00:00
getulong.c Simplify getulong 2016-08-03 11:51:07 -05:00
groupio.c Use the lckpwdf() again if prefix is not set 2019-05-02 14:33:06 +02:00
groupio.h * lib/commonio.c, lib/commonio.h, lib/groupio.c, lib/groupio.h, 2009-04-23 21:19:02 +00:00
groupmem.c add -U option to groupadd and groupmod 2020-08-09 22:11:33 -05:00
gshadow_.h * lib/gshadow_.h: Fix typo in comment. 2011-08-14 13:16:54 +00:00
gshadow.c 2010-02-14 Michael Bunk <mb@computer-leipzig.com> 2010-03-10 22:30:03 +00:00
lockpw.c
Makefile.am Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
nscd.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
nscd.h
nss.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
pam_defs.h
port.c
port.h
prototypes.h Merge pull request #467 from alejandro-colomar/date_to_str 2021-12-27 09:53:00 -06:00
pwauth.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
pwauth.h * libmisc/find_new_gid.c, libmisc/find_new_uid.c, 2009-04-23 17:43:27 +00:00
pwio.c Use the lckpwdf() again if prefix is not set 2019-05-02 14:33:06 +02:00
pwio.h * lib/commonio.c, lib/commonio.h, lib/groupio.c, lib/groupio.h, 2009-04-23 21:19:02 +00:00
pwmem.c lib: check NULL before freeing passwd data 2021-11-19 12:09:59 +01:00
run_part.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
run_part.h Adding run-parts style for pre and post useradd/del 2020-06-10 00:26:55 -05:00
selinux.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
semanage.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
sgetgrent.c lib/sgetgrent.c: change to warn when data remains 2019-10-04 18:30:41 -05:00
sgetpwent.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
sgetspent.c Remove unused variable 'cpp' 2020-04-25 12:10:39 +02:00
sgroupio.c Use the lckpwdf() again if prefix is not set 2019-05-02 14:33:06 +02:00
sgroupio.h * lib/sgroupio.h: Harmonize splint annotations of sgr_locate() 2009-09-07 18:59:03 +00:00
shadow.c Remove unused 'buf' in shadow.c 2020-04-25 12:23:10 +02:00
shadowio.c Use the lckpwdf() again if prefix is not set 2019-05-02 14:33:06 +02:00
shadowio.h Update _COMMONIO_H and _SHADOWIO_H to drop leading underscore 2016-12-21 12:45:50 -06:00
shadowlog_internal.h lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
shadowlog.c lib: provide default values for shadow_progname/shadow_logfd 2021-12-27 16:28:23 +00:00
shadowlog.h Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
shadowmem.c lib: check NULL before freeing passwd data 2021-11-19 12:09:59 +01:00
spawn.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
sssd.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
sssd.h Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
subordinateio.c fix spelling 2021-09-13 15:11:40 +00:00
subordinateio.h fix newusers when nss provides subids 2021-05-23 08:16:16 -05:00
tcbfuncs.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
tcbfuncs.h * lib/tcbfuncs.h: Re-indent. 2010-03-18 19:23:00 +00:00
utent.c * lib/utent.c (getutline): Remove getutline(). This function is 2010-03-23 08:56:52 +00:00