Remove 'grp' and merge into 'nss' and 'posix'
authorArjun Shankar <arjun@redhat.com>
Mon, 2 Oct 2023 12:55:15 +0000 (14:55 +0200)
committerArjun Shankar <arjun@redhat.com>
Tue, 24 Oct 2023 10:30:59 +0000 (12:30 +0200)
commitb121fdc552f392cd86b21f159dd3e3b998de91a3
treeeee235f1a10c6ce5d1b4d5a760c4a00d1d86e24d
parent83d13972f23546758b600ba940e0d53248dd0339
Remove 'grp' and merge into 'nss' and 'posix'

The majority of grp routines are entry points for nss functionality.
This commit removes the 'grp' subdirectory and moves all nss-relevant
functionality and all tests to 'nss', and the 'setgroups' stub into
'posix' (alongside the 'getgroups' stub).  References to grp/ are
accordingly changed.  In addition, compat-initgroups.c, a fallback
implementation of initgroups is renamed to initgroups-fallback.c so that
the build system does not confuse it for nss_compat/compat-initgroups.c.

Build time improves very slightly; e.g. down from an average of 45.5s to
44.5s on an 8-thread mobile x86_64 CPU.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
38 files changed:
Makeconfig
grp/Makefile [deleted file]
grp/Versions [deleted file]
include/grp-merge.h
include/grp.h
nscd/initgrcache.c
nss/Makefile
nss/Versions
nss/fgetgrent.c [moved from grp/fgetgrent.c with 100% similarity]
nss/fgetgrent_r.c [moved from grp/fgetgrent_r.c with 100% similarity]
nss/getgrent.c [moved from grp/getgrent.c with 100% similarity]
nss/getgrent_r.c [moved from grp/getgrent_r.c with 100% similarity]
nss/getgrgid.c [moved from grp/getgrgid.c with 100% similarity]
nss/getgrgid_r.c [moved from grp/getgrgid_r.c with 100% similarity]
nss/getgrnam.c [moved from grp/getgrnam.c with 100% similarity]
nss/getgrnam_r.c [moved from grp/getgrnam_r.c with 100% similarity]
nss/grp-merge.c [moved from grp/grp-merge.c with 100% similarity]
nss/grp-merge.h [moved from grp/grp-merge.h with 100% similarity]
nss/grp.h [moved from grp/grp.h with 100% similarity]
nss/initgroups-fallback.c [moved from grp/compat-initgroups.c with 100% similarity]
nss/initgroups.c [moved from grp/initgroups.c with 99% similarity]
nss/putgrent.c [moved from grp/putgrent.c with 100% similarity]
nss/testgrp.c [moved from grp/testgrp.c with 100% similarity]
nss/tst-initgroups1.c [moved from grp/tst-initgroups1.c with 100% similarity]
nss/tst-initgroups1.root/etc/group [moved from grp/tst-initgroups2.root/etc/group with 100% similarity]
nss/tst-initgroups1.root/etc/nsswitch.conf [moved from grp/tst-initgroups1.root/etc/nsswitch.conf with 100% similarity]
nss/tst-initgroups1.root/etc/passwd [moved from grp/tst-initgroups2.root/etc/passwd with 100% similarity]
nss/tst-initgroups2.c [moved from grp/tst-initgroups2.c with 100% similarity]
nss/tst-initgroups2.root/etc/group [moved from grp/tst-initgroups1.root/etc/group with 100% similarity]
nss/tst-initgroups2.root/etc/nsswitch.conf [moved from grp/tst-initgroups2.root/etc/nsswitch.conf with 100% similarity]
nss/tst-initgroups2.root/etc/passwd [moved from grp/tst-initgroups1.root/etc/passwd with 100% similarity]
nss/tst-putgrent.c [moved from grp/tst-putgrent.c with 100% similarity]
nss/tst_fgetgrent.c [moved from grp/tst_fgetgrent.c with 100% similarity]
nss/tst_fgetgrent.sh [moved from grp/tst_fgetgrent.sh with 76% similarity]
posix/Makefile
posix/Versions
posix/setgroups.c [moved from grp/setgroups.c with 100% similarity]
scripts/update-copyrights