Files
freebsd/lib/libc/tests
Bojan Novković 3a686b851f dbm_nextkey: Always return an error if we've reached the end of the database
POSIX.1 states that `dbm_nextkey` must return an invalid key
(i.e., `key.dptr == NULL`) after the end of the database was reached.
The current implementation of `hash_seq` will incorrectly restart
the key sequence after the end of the database is reached.

Fix this by checking the "current bucket" index when R_NEXT is passed.

Sponsored by:   Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D51635
Reviewed by:	markj
2025-07-31 17:27:24 +02:00
..
…
2025-07-11 22:43:32 +02:00
…
…
2025-04-20 13:29:45 -05:00
…
…
2025-06-11 17:16:22 -06:00
…
2025-05-16 17:44:10 +02:00
2025-07-13 14:00:56 -04:00
…
…
…