summaryrefslogtreecommitdiff
path: root/lib/libc/db/hash
AgeCommit message (Expand)Author
2025-08-01db/hash.c: Fix flag check in hash_seqBojan Novković
2025-07-31dbm_nextkey: Always return an error if we've reached the end of the databaseBojan Novković
2025-07-30db/hash.c: Allow O_WRONLY in dbm_openBojan Novković
2025-07-25db/hash.c: Do not return an error when opening a missing database with O_CREATBojan Novković
2024-07-15Remove residual blank line at start of MakefileWarner Losh
2023-11-26lib: Remove ancient SCCS tags.Warner Losh
2023-11-01libc: Purge unneeded cdefs.hWarner Losh
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2023-08-16Remove $FreeBSD$: one-line .h patternWarner Losh
2023-03-27libc: Use secure_getenv(3) where appropriateMark Johnston
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-02-28Renumber copyright clause 4Warner Losh
2016-09-26hash(3): protect in-memory page when using cross-endianness.Pedro F. Giffuni
2016-05-31Fix prototype of dbm_open().Ed Schouten
2016-04-26libc: make more use of the howmany() macro when available.Pedro F. Giffuni
2016-04-20libc: use our roundup2/rounddown2() macros when param.h is available.Pedro F. Giffuni
2016-04-10libc: replace 0 with NULL for pointers.Pedro F. Giffuni
2016-04-06Follow-up r295924: Only sync hash-based db files open for writing when closing.Bryan Drewery
2016-02-23If we close or sync a hash-based db file, make sure to call fsync toDavid Malone
2016-01-29Use intptr_t note ptrdiff_t when storing flags in the bottom bits ofBrooks Davis
2015-09-20Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.Craig Rodrigues
2015-08-29Switch libc from using _sig{procmask,action,suspend} symbols, whichKonstantin Belousov
2015-05-18Drop some unnecessary casts.Pedro F. Giffuni
2014-03-04Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar
2013-08-13db: Use O_CLOEXEC instead of separate fcntl() call.Jilles Tjoelker
2013-08-11db/hash: Use O_CLOEXEC instead of separate fcntl() call.Jilles Tjoelker
2010-04-05libc/db/hash: cap auto-tuned block size with a value that actually worksAndriy Gapon
2009-08-24Consider flag == 0 as the same of flag == R_NEXT. This change will restoreXin LI
2009-03-28Add some casts to silence compiler warning about signedness.Xin LI
2009-03-28Minor changes from Berkeley DB 1.86 and further improvements from OpenBSD.Xin LI
2009-03-28Plug memory leaks and a potential NULL dereference.Xin LI
2009-03-28Simplify the logic when determining whether to zero out a db file to afterXin LI
2009-03-28 - If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would causeXin LI
2009-03-28Avoid NULL deference which causes DEBUG1 to crash, not to print usefulXin LI
2009-03-28 - Avoid overwriting the cursor page when the cursor page becomes theXin LI
2009-03-28Fix a crash when iterating over a hash and removing its elements.Xin LI
2009-03-28Only squeeze a short key/value pair onto a page with other complete key/valueXin LI
2009-03-28Diff reduce against OpenBSD, no functional change.Xin LI
2009-03-28Return meaningful errno in overflow case; print error message to stderrXin LI
2009-03-28Use pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2).Xin LI
2009-03-28db/btree/bt_open.c: check return value of snprintf() and return valueXin LI
2009-03-28Several signed/unsigned warning fixes.Xin LI
2009-03-28When allocating memory, zero out them if we don't intend to overwrite themXin LI
2009-03-04Explicitly specify bit width for on-disk data structure.Xin LI
2009-03-04Style changes (including additional casts to shut up warnings). ThisXin LI
2009-03-02Diff reduction against OpenBSD: ANSI'fy prototypes.Xin LI
2007-05-25The usage of "info" in init_hash() is read-only, so constifyXin LI
2007-01-09Per Regents of the University of Calfornia letter, remove advertisingWarner Losh
2004-09-10Fix format strings to unbreak with -DDEBUG option.Jun Kuriyama