summaryrefslogtreecommitdiff
path: root/lib/libc/db
AgeCommit message (Collapse)Author
2022-04-19lib: remove CONSTCOND commentrillig
Since 2021-01-31, lint doesn't need it anymore for the common pattern of 'do ... while (0)'.
2021-12-10s/occured/occurred/ in comments, log messages and man pages.andvar
2020-02-21Avoid undefined behavior in *BIT macroskamil
hash_page.c:792:2, left shift of 1 by 31 places cannot be represented in type 'int' hash_page.c:855:2, left shift of 1 by 31 places cannot be represented in type 'int' hash_page.c:779:3, left shift of 1 by 31 places cannot be represented in type 'int'
2019-10-05__dberr: tweak signature to make gcc8 -Wbad-function-cast happy aboutuwe
casts in __dbpanic. Admittedly this is a bit too "cute".
2019-10-05__dbpanic: use the official DB typedef name in the casts. They wereuwe
copied from the declaration point where it's not yet available.
2019-05-26Fix typo: s/then/theabhinav
2019-03-08 s/ are are / are /msaitoh
s/ a a / a /
2018-01-04Add bunch of missing includes of namespace.h in libckamil
The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. This change eliminates usage of the global changes of the following symbols: - strlcat -> _strlcat - sysconf -> __sysconf - closedir -> _closedir - fparseln -> _fparseln - kill -> _kill - mkstemp -> _mkstemp - reallocarr -> _reallocarr - strcasecmp -> _strcasecmp - strncasecmp -> _strncasecmp - strptime -> _strptime - strtok_r -> _strtok_r - sysctl -> _sysctl - dlopen -> __dlopen - dlclose -> __dlclose - dlsym -> __dlsym Sponsored by <The NetBSD Foundation>
2016-10-09Fix syntax for currently not compiled in code. From Henning Petersen injoerg
PR lib/51538.
2016-09-24remove mpool_getfchristos
2016-09-24Merge the recursive tree traversal changes from the mit kerberos tree. Thischristos
Also make the tracefile customizable. Unfortunately we can't merge any of the hash changes because they have a different on-disk format. That does not matter really because we've fixed most of the problems...
2016-09-24When writing out pages in the "other endian" format, make a copy instead ofchristos
trashing the in-memory one.
2016-08-31don't shortcut closing if the metadata is dirty (from the krb5 tree)christos
2015-11-18Introduce a HASH_BSIZE macro to return the blocksize; in the 64K case thischristos
returns 0xffff to avoid overflow. This is used where sizes are stored.
2015-11-18Account for the -1 hack to fit 0x10000 in a short in hash_page.cchristos
2015-11-18If MAX_BSIZE == hashp->BSIZE (65536) then it does not fit in a short, andchristos
we end up storing 0... This means that every entry needs a page. We store MAX_BSIZE - 1 here, but it would be better to always store (avail - 1) here so that we don't waste a byte and be consistent.
2015-11-17PR/50441: Manuel Bouyer: hash seq enumeration skips keys on big data.christos
XXX: pullup-7
2015-06-22Fix hash iteration that deletes the current element under the cursor bychristos
adjusting the position of the iterator appropriately. XXX: pullup 7
2015-06-22Delay moving to the next key until the next iteration. This avoids returningchristos
invalid data to the user if the user deletes the current key, but it also fails to iterate over some keys as will be shown by a unit test. From FreeBSD.
2015-05-19Fix the build for ancient (rhel5) systems that don't have O_CLOEXECchristos
XXX: pullup-7
2014-12-22whitelist O_CLOEXEC flag, should fix lastlogin issue.christos
2013-12-25fix bug in previous change (sz should be the size of the newly allocatedchristos
buffer).
2013-12-14It's been many years since realloc(NULL, size) == malloc(size). Also don'tchristos
destroy pointers on allocation errors so someone can free them later.
2013-12-14knf, reduce pointer gymnasticschristos
2013-12-01- centralize opening of regular and temp files to avoid code duplicationchristos
- don't cast malloc - use malloc sizeof(*var) instead of sizeof(type)
2013-11-22switch from circleq to tailq, from FreeBSDchristos
2013-09-04Fix typos from FreeMiNT's db-1.86 patch.ryoon
2012-10-13Remove some more unneeded Pp macros.njoly
2012-03-13PR/45989: Martin Husemann: lint invocation does include -w only on i386christos
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds) approved by core@
2011-08-09libc passes the relaxed array boundary check in clang now.joerg
2011-07-17fix type punned warnings in debugging code.christos
2011-06-26put back some compat code for systems that don't have O_CLOEXEC.christos
2011-06-26- use sizeof(var) instead of sizeof(type)christos
- remove useless cast
2011-06-26- Fix bug copying only 1 byte instead of the whole page number. Broke nvichristos
joining lines that needed R_BIGDATA. - Fix from FreeBSD for nrec IAFTER. XXX: Should be pulled up to 5.x
2011-06-26use O_CLOEXECchristos
2011-06-20various build fixes for gcc 4.5. from chuq. XXX i'm not sure all ofmrg
these work properly wtf pointer aliasing, but there are no casts at least... the lib/libpuffs/puffs_priv.h is definately a real bug fix. from chuq.
2011-05-26Default to -Wno-sign-compare -Wno-pointer-sign for clang.joerg
Push -Wno-array-bounds down to the cases that depend on it. Selectively disable warnings for 3rd party software or non-trivial issues to be reviewed later to get clang -Werror to build most of the tree.
2011-04-17Correct check for snprintf() overflow via Maksymilian Arciemowicz from FreeBSD.christos
(the bt one was ok, but set errno and make it the same for consistency). [to be pulled up]
2010-12-16.Fn, offset indent, complete reference.jruoho
2010-12-16Fix the references and -offset indent.jruoho
2010-12-16Use .Fn.jruoho
2010-05-05Note the POSIX compliance (already since SUSv2, '97).jruoho
2010-03-22Use .In for header files instead of .Ar Pa and variations.joerg
2009-04-23correct cast to size_t.christos
2009-04-23Cast the arg to an unsigned value to let this compileagc
2009-04-22Include string.h for memset prototype.njoly
2009-04-22Avoid information leaks by zeroing memory, from FreeBSD (we had done somechristos
already)
2009-04-11-width needs an argument, so provide one.joerg
2009-02-12fix -Wsign-compare issueslukem
2009-02-12fix sign-compare issueslukem