freebsd-dev/lib/libc/gen
Mark Johnston 48a1868634 libc/nss: Ensure that setgroupent(3) actually works as advertised
Because the "files" and "compat" implementations failed to set the
"stayopen", keyed lookups would close the database handle, contrary to
the purpose of setgroupent(3).  setpassent(3)'s implementation does not
have this bug.

PR:		165527
Submitted by:	Andrey Simonenko
MFC after:	1 month
2021-01-21 14:30:19 -05:00
..
__getosreldate.c
__pthread_mutex_init_calloc_cb_stub.c
__xuname.c
_once_stub.c
_pthread_stubs.c libc: Add pthread_attr_get_np(3) stub, reporting ESRCH. 2020-11-28 12:19:20 +00:00
_rand48.c
_spinlock_stub.c
_thread_init.c
alarm.3
alarm.c
arc4random_uniform.c Sync with OpenBSD: 2020-04-13 08:42:13 +00:00
arc4random-compat.c
arc4random.3 arc4random(3): fix .Xr issues 2020-12-11 00:13:39 +00:00
arc4random.c Fix building on Linux/macOS after r366622 2020-10-12 10:42:14 +00:00
arc4random.h Fix building on Linux/macOS after r366622 2020-10-12 10:42:14 +00:00
assert.c
auxv.3 Document required size of buffer for elf_aux_info(3). 2019-11-17 14:11:08 +00:00
auxv.c random(4) FenestrasX: Push root seed version to arc4random(3) 2020-10-10 21:52:00 +00:00
basename_compat.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
basename.3
basename.c
cap_rights_get.3 libcasper(3): Document HISTORY within the manpages 2020-06-16 16:48:52 +00:00
cap_sandboxed.3 libcasper(3): Document HISTORY within the manpages 2020-06-16 16:48:52 +00:00
cap_sandboxed.c
check_utility_compat.3
check_utility_compat.c
clock_getcpuclockid.3
clock_getcpuclockid.c
clock.3
clock.c
closedir.c
confstr.3
confstr.c
crypt.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
ctermid.3
ctermid.c
daemon.3
daemon.c
devname-compat11.c
devname.3
devname.c
directory.3 directory(3): Add an ERRORS section 2020-08-04 08:46:28 +00:00
dirfd.c
dirname_compat.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
dirname.3
dirname.c
disklabel.c
dl_iterate_phdr.3
dladdr.3
dlfcn.c libc: implement rtld_get_stack_prot() for real 2021-01-10 08:25:43 +02:00
dlinfo.3 Implement Solaris-like link_map l_refname member. 2020-05-22 17:52:09 +00:00
dllockinit.3
dlopen.3 Implement RTLD_DEEPBIND. 2020-05-15 11:58:01 +00:00
drand48.c
dup3.3
dup3.c
elf_utils.c Don't assume objects in program sections have a size of a pointer. 2020-09-02 20:43:08 +00:00
erand48.c
err.3
err.c warnx: fix needless static 2020-10-24 00:03:11 +00:00
errlst.c
errno.c
eventfd.c Add eventfd(3) wrappers to libc. 2020-12-27 12:57:26 +02:00
exec.3 exec{l,v}{e,p} arrived in 7th Edition research Unix to support the Bourne Shell 2020-03-24 19:33:21 +00:00
exec.c execvPe: obviate the need for potentially large stack allocations 2020-06-10 01:32:13 +00:00
exect.c
fdevname.c
feature_present.3
feature_present.c
fmtcheck.3
fmtcheck.c
fmtmsg.3
fmtmsg.c
fnmatch.3
fnmatch.c
fpclassify.3
fpclassify.c
frexp.3
frexp.c
fstab.c
ftok.3
ftok.c
fts-compat11.c
fts-compat11.h
fts-compat.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
fts-compat.h
fts.3
fts.c
ftw-compat11.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
ftw.3 ftw.3: Follow style(9) in the example 2020-03-12 18:28:23 +00:00
ftw.c
gen-compat.h
gen-private.h
getbootfile.3
getbootfile.c
getbsize.3
getbsize.c
getcap.3
getcap.c
getcontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
getcwd.3
getcwd.c
getdiskbyname.3
getdomainname.3
getdomainname.c
getentropy.3 getentropy(3): sort SEE ALSO sections 2020-12-11 00:15:57 +00:00
getentropy.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
getfsent.3
getgrent.3
getgrent.c libc/nss: Ensure that setgroupent(3) actually works as advertised 2021-01-21 14:30:19 -05:00
getgrouplist.3
getgrouplist.c
gethostname.3 gethostname(3): Correct the reference of the undefined value HOST_NAME_MAX 2020-07-13 15:17:29 +00:00
gethostname.c
getloadavg.3
getloadavg.c
getlogin.c getlogin_r: fix the type of len 2020-09-09 18:07:13 +00:00
getmntinfo-compat11.c
getmntinfo.3
getmntinfo.c
getnetgrent.3
getnetgrent.c
getosreldate.3
getosreldate.c
getpagesize.3
getpagesize.c
getpagesizes.3
getpagesizes.c
getpass.3
getpeereid.3
getpeereid.c Add SOL_LOCAL symbolic constant for unix socket option level. 2020-08-03 22:13:02 +00:00
getprogname.3
getprogname.c
getpwent.3
getpwent.c libc/nss: Restore iterator state when doing passwd/group lookups 2021-01-21 14:30:19 -05:00
getttyent.3
getttyent.c
getusershell.3
getusershell.c
getutxent.3
getutxent.c
getvfsbyname.3
getvfsbyname.c
glob-compat11.c Remove trailing whitespace. 2020-12-03 05:49:59 +00:00
glob-compat11.h
glob.3
glob.c
initgroups.3
initgroups.c
isatty.c
isgreater.3
isinf.c
isnan.c Add __isnan()/__isnanf() aliases for compatibility with glibc and CUDA 2019-11-02 16:59:53 +00:00
jrand48.c
lcong48.c
ldexp.3
ldexp.c
libc_dlopen.c
lockf.3
lockf.c
lrand48.c
makecontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
Makefile.inc tcgetwinsize(3): provide man page 2021-01-02 04:43:32 +02:00
memalign.c Add memalign(3), mostly for glibc compatibility. 2020-05-14 21:12:08 +00:00
modf.3
modf.c
mrand48.c
nftw-compat11.c
nftw.c
nice.3
nice.c
nlist.3 nlist: retire long-obsolete aout support 2020-03-30 20:15:19 +00:00
nlist.c libc: unconditionalize _NLIST_DO_ELF 2020-03-30 21:25:00 +00:00
nrand48.c
opendir.c libc: remove forward compat added in r356830 for F_ISUNIONSTACK 2020-01-29 01:52:27 +00:00
pause.3
pause.c
pmadvise.c
popen.3
popen.c
posix_spawn_file_actions_addopen.3
posix_spawn_file_actions_init.3
posix_spawn.3 posix_spawn(3): fix section that references vfork 2020-12-11 00:20:04 +00:00
posix_spawn.c posix_spawn: fix for some custom allocator setups 2020-06-12 18:13:32 +00:00
posix_spawnattr_getflags.3
posix_spawnattr_getpgroup.3
posix_spawnattr_getschedparam.3
posix_spawnattr_getschedpolicy.3
posix_spawnattr_getsigdefault.3
posix_spawnattr_getsigmask.3
posix_spawnattr_init.3
psignal.3
psignal.c
pututxline.c
pw_scan.c
pw_scan.h
raise.3
raise.c
rand48.3
rand48.h
readdir-compat11.c
readdir.c
readpassphrase.3
readpassphrase.c
recvmmsg.c
rewinddir.c
rfork_thread.3
scandir_b.c
scandir-compat11.c scandir-compat11.c: Remove unused declaration for qsort_b(). 2020-08-17 19:14:09 +00:00
scandir.3
scandir.c Fix the build of scandir_b with GCC. 2020-08-31 21:55:25 +00:00
seed48.c
seekdir.c
sem_destroy.3
sem_getvalue.3
sem_init.3
sem_new.c
sem_open.3
sem_post.3
sem_timedwait.3
sem_wait.3
sem.c
semctl.c
sendmmsg.c
setdomainname.c
sethostname.c
setjmp.3
setjmperr.c
setmode.3
setmode.c Allow building setmode.c on Linux/macOS 2020-08-03 18:08:04 +00:00
setproctitle.3 Add a missing Nm macro 2020-11-13 14:56:34 +00:00
setproctitle.c Save on getpid in setproctitle by supporting -1 as curproc. 2021-01-16 09:36:54 +01:00
setprogname.c
siginterrupt.3
siginterrupt.c
siglist.c
signal.3
signal.c
sigsetops.3 Add sigsetop extensions commonly found in musl libc and glibc 2019-12-12 01:41:55 +00:00
sigsetops.c Add sigsetop extensions commonly found in musl libc and glibc 2019-12-12 01:41:55 +00:00
sleep.3
sleep.c
srand48.c
statvfs.3
statvfs.c
stringlist.3
stringlist.c
strtofflags.3
strtofflags.c
Symbol.map Add eventfd(3) wrappers to libc. 2020-12-27 12:57:26 +02:00
sysconf.3
sysconf.c
sysctl.3 Update man-pages to describe the user.localbase variable added in r367179. 2020-10-30 19:37:53 +00:00
sysctl.c Re-arrange some of the code to separate writable user tree variables from 2020-11-02 18:48:06 +00:00
sysctlbyname.c sysctlbyname(2): Remove temporary compatibility layer 2019-12-29 17:19:57 +00:00
sysctlnametomib.c sysctl: use names instead of magic numbers. 2019-09-18 16:13:10 +00:00
syslog.3
syslog.c syslog(3): Send proper NILVALUE if gethostname(3) fails. 2020-08-14 00:18:18 +00:00
tcgetpgrp.3
tcgetsid.3
tcgetwinsize.3 tcgetwinsize(3): provide man page 2021-01-02 04:43:32 +02:00
tcsendbreak.3
tcsetattr.3 Don't imply that all action values can be OR'd. 2020-07-15 17:05:37 +00:00
tcsetpgrp.3
tcsetsid.3
telldir.c
telldir.h
termios.c Add tcgetwinsize(3) and tcsetwinsize(3) to termios 2020-12-25 20:43:09 +02:00
time.3
time.c
times.3
times.c
timespec_get.3 timespec_get(3): sort SEE ALSO correctly 2020-12-11 02:22:42 +00:00
timespec_get.c
timezone.3
timezone.c
tls.c Remove sparc64 specific parts of libc. 2020-02-26 18:55:09 +00:00
trivial-getcontextx.c
ttyname.3
ttyname.c
ttyslot.c
tzset.3
ualarm.3
ualarm.c Correct a misleading indent. 2020-01-21 16:31:08 +00:00
ucontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
ulimit.3
ulimit.c
uname.3
uname.c
unvis-compat.c
usleep.3
usleep.c
utime.3
utime.c
utxdb.c
utxdb.h
valloc.3
valloc.c
wait3.c
wait.c
waitid.c
waitpid.c
wordexp.3
wordexp.c