Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pfalcon/berkeley-db-1.xx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: micropython/berkeley-db-1.xx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 13 commits
  • 209 files changed
  • 3 contributors

Commits on Jul 29, 2016

  1. mpool: Refactor to call file operation via vtable.

    Don't assume there's a POSIX system with read()/write(), etc., instead
    accept function pointers to such routines via FILEVTABLE structure.
    
    Other changes, like avoiding fstat() usage, using bundled version of BSD
    sys/queue.h, etc.
    pfalcon committed Jul 29, 2016
    Copy the full SHA
    e487a1b View commit details
  2. Copy the full SHA
    65ae6f4 View commit details
  3. mpool: Avoid using fprintf(), use mpool_error() for error reporting.

    It can be defined to system-specific function with -Dmpool_error=<something>.
    pfalcon committed Jul 29, 2016
    Copy the full SHA
    a6d0ace View commit details
  4. Copy the full SHA
    2328ab2 View commit details

Commits on Aug 8, 2016

  1. btree: Introduce default page size param, set to 4096.

    This is kind of workaround for issues found with handling overflow pages.
    Setting default page size will make a less chance for user to hit them.
    pfalcon committed Aug 8, 2016
    Copy the full SHA
    78a4787 View commit details

Commits on Aug 25, 2016

  1. PORT/include/compat.h: Guard memmove (re)define with ifndef.

    Fixes build on MacOSX (otherwise there's warning-as-error about
    redifinition of it).
    pfalcon committed Aug 25, 2016
    Copy the full SHA
    dab957d View commit details

Commits on Sep 10, 2017

  1. Copy the full SHA
    35aaec4 View commit details

Commits on Mar 15, 2024

  1. all: Move headers to library-specific directory include/berkeley-db.

    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Mar 15, 2024
    Copy the full SHA
    7eff5dd View commit details
  2. PORT: Remove the PORT directory.

    None of these port directories work anymore, with the move to the new
    include/berkeley-db directory layout for header files.
    
    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Mar 15, 2024
    Copy the full SHA
    b352d0b View commit details
  3. all: Remove "tags" files.

    They can be generated as needed by editors.
    
    This also removes the last remaining symlinks.
    
    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Mar 15, 2024
    Copy the full SHA
    69a39c9 View commit details
  4. include: Allow injecting a configuration header.

    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Mar 15, 2024
    Copy the full SHA
    120a135 View commit details
  5. all: Remove advertising clause in BSD 4-clause license.

    As per the included README.Impt.License.Change, this advertising clause
    does not need to be met and can be removed:
    
        Accordingly, the foregoing paragraph of those BSD Unix files containing
        it is hereby deleted in its entirety.
    
    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Mar 15, 2024
    Copy the full SHA
    85373b5 View commit details

Commits on Jun 1, 2025

  1. mpool: Avoid leak in the case that lseek fails.

    I noticed while running the micropython testsuite under
    -fsanitize=address and valgrind that a memory leaks was reported
    with a stack trace like
    ```
    2,128 bytes in 1 blocks are definitely lost in loss record 1 of 1
       at 0x48465EF: calloc (vg_replace_malloc.c:1328)
       by 0x62D6D2: mpool_open (mpool.c:67)
       by 0x614233: __bt_open (bt_open.c:300)
       by 0x450A1C: mod_btree_open (modbtree.c:416)
    ```
    specifically in the case where lseek failed.
    
    By moving the lseek call to before the allocation of the MPOOL
    object, no new "free mp during error exit" code needed to be
    added.
    Signed-off-by: Jeff Epler <jepler@gmail.com>
    jepler committed Jun 1, 2025
    Copy the full SHA
    0f3bb69 View commit details
Showing with 269 additions and 6,550 deletions.
  1. +0 −102 PORT/Makefile
  2. +0 −131 PORT/README
  3. +0 −102 PORT/aix.3.2/Makefile
  4. +0 −1 PORT/aix.3.2/clib
  5. +0 −1 PORT/aix.3.2/include/cdefs.h
  6. +0 −1 PORT/aix.3.2/include/db.h
  7. +0 −1 PORT/aix.3.2/include/mpool.h
  8. +0 −1 PORT/aix.3.2/include/ndbm.h
  9. +0 −1 PORT/aix.3.2/include/queue.h
  10. +0 −1 PORT/aix.3.2/sys
  11. +0 −1 PORT/bsd.4.4/Makefile
  12. +0 −1 PORT/bsd.4.4/clib
  13. +0 −1 PORT/bsd.4.4/include/cdefs.h
  14. +0 −1 PORT/bsd.4.4/include/compat.h
  15. +0 −222 PORT/bsd.4.4/include/db.h
  16. +0 −1 PORT/bsd.4.4/include/mpool.h
  17. +0 −1 PORT/bsd.4.4/include/ndbm.h
  18. +0 −1 PORT/bsd.4.4/include/queue.h
  19. +0 −1 PORT/bsd.4.4/sys
  20. +0 −1 PORT/bsdi.1.0/Makefile
  21. +0 −19 PORT/bsdi.1.0/OTHER_PATCHES
  22. +0 −1 PORT/bsdi.1.0/clib
  23. +0 −54 PORT/bsdi.1.0/include/assert.h
  24. +0 −1 PORT/bsdi.1.0/include/cdefs.h
  25. +0 −231 PORT/bsdi.1.0/include/compat.h
  26. +0 −1 PORT/bsdi.1.0/include/db.h
  27. +0 −1 PORT/bsdi.1.0/include/mpool.h
  28. +0 −1 PORT/bsdi.1.0/include/ndbm.h
  29. +0 −1 PORT/bsdi.1.0/include/queue.h
  30. +0 −87 PORT/bsdi.1.0/local/local.h
  31. +0 −118 PORT/bsdi.1.0/local/makebuf.c
  32. +0 −148 PORT/bsdi.1.0/local/setvbuf.c
  33. +0 −1 PORT/bsdi.1.0/sys
  34. +0 −139 PORT/clib/memmove.c
  35. +0 −126 PORT/clib/mktemp.c
  36. +0 −54 PORT/clib/snprintf.c
  37. +0 −67 PORT/clib/strerror.c
  38. +0 −103 PORT/dgux.5.4/Makefile
  39. +0 −1 PORT/dgux.5.4/clib
  40. +0 −1 PORT/dgux.5.4/include/cdefs.h
  41. +0 −231 PORT/dgux.5.4/include/compat.h
  42. +0 −1 PORT/dgux.5.4/include/db.h
  43. +0 −1 PORT/dgux.5.4/include/mpool.h
  44. +0 −1 PORT/dgux.5.4/include/ndbm.h
  45. +0 −1 PORT/dgux.5.4/include/queue.h
  46. +0 −1 PORT/dgux.5.4/sys
  47. +0 −1 PORT/hpux.8.07
  48. +0 −102 PORT/hpux.9.01/Makefile
  49. +0 −1 PORT/hpux.9.01/clib
  50. +0 −1 PORT/hpux.9.01/include/cdefs.h
  51. +0 −231 PORT/hpux.9.01/include/compat.h
  52. +0 −1 PORT/hpux.9.01/include/db.h
  53. +0 −1 PORT/hpux.9.01/include/mpool.h
  54. +0 −1 PORT/hpux.9.01/include/ndbm.h
  55. +0 −1 PORT/hpux.9.01/include/queue.h
  56. +0 −75 PORT/hpux.9.01/local/hp_siglist.c
  57. +0 −1 PORT/hpux.9.01/sys
  58. +0 −122 PORT/include/cdefs.h
  59. +0 −231 PORT/include/compat.h
  60. +0 −1 PORT/include/db.h
  61. +0 −1 PORT/include/mpool.h
  62. +0 −103 PORT/irix.4.05F/Makefile
  63. +0 −32 PORT/irix.4.05F/OTHER_PATCHES
  64. +0 −1 PORT/irix.4.05F/clib
  65. +0 −1 PORT/irix.4.05F/include/cdefs.h
  66. +0 −231 PORT/irix.4.05F/include/compat.h
  67. +0 −1 PORT/irix.4.05F/include/db.h
  68. +0 −1 PORT/irix.4.05F/include/mpool.h
  69. +0 −1 PORT/irix.4.05F/include/ndbm.h
  70. +0 −1 PORT/irix.4.05F/include/queue.h
  71. +0 −1 PORT/irix.4.05F/sys
  72. +0 −102 PORT/linux/Makefile
  73. +0 −29 PORT/linux/OTHER_PATCHES
  74. +0 −1 PORT/linux/clib
  75. +0 −231 PORT/linux/include/compat.h
  76. +0 −1 PORT/linux/include/db.h
  77. +0 −1 PORT/linux/include/mpool.h
  78. +0 −1 PORT/linux/include/ndbm.h
  79. +0 −1 PORT/linux/sys
  80. +0 −102 PORT/osf.1.0.2/Makefile
  81. +0 −1 PORT/osf.1.0.2/clib
  82. +0 −1 PORT/osf.1.0.2/include/cdefs.h
  83. +0 −231 PORT/osf.1.0.2/include/compat.h
  84. +0 −1 PORT/osf.1.0.2/include/db.h
  85. +0 −1 PORT/osf.1.0.2/include/mpool.h
  86. +0 −1 PORT/osf.1.0.2/include/ndbm.h
  87. +0 −1 PORT/osf.1.0.2/include/queue.h
  88. +0 −1 PORT/osf.1.0.2/sys
  89. +0 −1 PORT/osf.1.3
  90. +0 −1 PORT/osf.2.0
  91. +0 −104 PORT/ptx.2.0/Makefile
  92. +0 −95 PORT/ptx.2.0/OTHER_PATCHES
  93. +0 −1 PORT/ptx.2.0/clib
  94. +0 −1 PORT/ptx.2.0/include/cdefs.h
  95. +0 −232 PORT/ptx.2.0/include/compat.h
  96. +0 −1 PORT/ptx.2.0/include/db.h
  97. +0 −1 PORT/ptx.2.0/include/mpool.h
  98. +0 −1 PORT/ptx.2.0/include/ndbm.h
  99. +0 −1 PORT/ptx.2.0/include/queue.h
  100. +0 −1 PORT/ptx.2.0/sys
  101. +0 −102 PORT/sinix.5.41/Makefile
  102. +0 −1 PORT/sinix.5.41/clib
  103. +0 −1 PORT/sinix.5.41/include/cdefs.h
  104. +0 −231 PORT/sinix.5.41/include/compat.h
  105. +0 −1 PORT/sinix.5.41/include/db.h
  106. +0 −1 PORT/sinix.5.41/include/mpool.h
  107. +0 −1 PORT/sinix.5.41/include/ndbm.h
  108. +0 −1 PORT/sinix.5.41/include/queue.h
  109. +0 −1 PORT/sinix.5.41/sys
  110. +0 −1 PORT/solaris.2.2
  111. +0 −102 PORT/sunos.4.1.1/Makefile
  112. +0 −1 PORT/sunos.4.1.1/clib
  113. +0 −1 PORT/sunos.4.1.1/include/cdefs.h
  114. +0 −231 PORT/sunos.4.1.1/include/compat.h
  115. +0 −1 PORT/sunos.4.1.1/include/db.h
  116. +0 −1 PORT/sunos.4.1.1/include/mpool.h
  117. +0 −1 PORT/sunos.4.1.1/include/ndbm.h
  118. +0 −45 PORT/sunos.4.1.1/include/pathnames.h
  119. +0 −1 PORT/sunos.4.1.1/include/queue.h
  120. +0 −1 PORT/sunos.4.1.1/sys
  121. +0 −1 PORT/sunos.4.1.2
  122. +0 −1 PORT/sunos.4.1.3
  123. +0 −102 PORT/sunos.5.2/Makefile
  124. +0 −1 PORT/sunos.5.2/clib
  125. +0 −1 PORT/sunos.5.2/include/cdefs.h
  126. +0 −236 PORT/sunos.5.2/include/compat.h
  127. +0 −1 PORT/sunos.5.2/include/db.h
  128. +0 −1 PORT/sunos.5.2/include/mpool.h
  129. +0 −1 PORT/sunos.5.2/include/ndbm.h
  130. +0 −1 PORT/sunos.5.2/include/queue.h
  131. +0 −1 PORT/sunos.5.2/sys
  132. +0 −102 PORT/ultrix.4.2/Makefile
  133. +0 −1 PORT/ultrix.4.2/clib
  134. +0 −1 PORT/ultrix.4.2/include/cdefs.h
  135. +0 −231 PORT/ultrix.4.2/include/compat.h
  136. +0 −230 PORT/ultrix.4.2/include/db.h
  137. +0 −1 PORT/ultrix.4.2/include/mpool.h
  138. +0 −1 PORT/ultrix.4.2/include/ndbm.h
  139. +0 −1 PORT/ultrix.4.2/include/queue.h
  140. +0 −1 PORT/ultrix.4.2/sys
  141. +0 −1 PORT/ultrix.4.3
  142. +1 −6 README
  143. +27 −0 README.Impt.License.Change
  144. +4 −10 btree/bt_close.c
  145. +3 −6 btree/bt_conv.c
  146. +3 −6 btree/bt_debug.c
  147. +3 −6 btree/bt_delete.c
  148. +3 −6 btree/bt_get.c
  149. +51 −86 btree/bt_open.c
  150. +3 −6 btree/bt_overflow.c
  151. +3 −6 btree/bt_page.c
  152. +3 −6 btree/bt_put.c
  153. +3 −6 btree/bt_search.c
  154. +3 −6 btree/bt_seq.c
  155. +3 −6 btree/bt_split.c
  156. +3 −6 btree/bt_utils.c
  157. +0 −1 btree/tags
  158. +1 −4 db/db.c
  159. +0 −205 db/tags
  160. +5 −8 hash/hash.c
  161. +5 −8 hash/hash_bigkey.c
  162. +5 −8 hash/hash_buf.c
  163. +5 −8 hash/hash_func.c
  164. +2 −5 hash/hash_log2.c
  165. +5 −8 hash/hash_page.c
  166. +3 −6 hash/hsearch.c
  167. +3 −6 hash/ndbm.c
  168. +0 −1 hash/tags
  169. +1 −4 PORT/include/queue.h → include/berkeley-db/bsd-queue.h
  170. +10 −7 {btree → include/berkeley-db}/btree.h
  171. +1 −4 btree/extern.h → include/berkeley-db/btree_extern.h
  172. +3 −4 {PORT/aix.3.2/include → include/berkeley-db}/compat.h
  173. +6 −0 include/berkeley-db/config.h
  174. +5 −6 include/{ → berkeley-db}/db.h
  175. +22 −17 PORT/ptx.2.0/include/pathnames.h → include/berkeley-db/filevtable.h
  176. +1 −4 {hash → include/berkeley-db}/hash.h
  177. +1 −4 hash/extern.h → include/berkeley-db/hash_extern.h
  178. +7 −7 include/{ → berkeley-db}/mpool.h
  179. +1 −4 {PORT/include → include/berkeley-db}/ndbm.h
  180. +1 −4 {hash → include/berkeley-db}/page.h
  181. +1 −4 {recno → include/berkeley-db}/recno.h
  182. +1 −4 recno/extern.h → include/berkeley-db/recno_extern.h
  183. +1 −4 {hash → include/berkeley-db}/search.h
  184. +0 −1 include/tags
  185. +1 −4 man/btree.3
  186. +1 −4 man/dbopen.3
  187. +1 −4 man/hash.3
  188. +1 −4 man/mpool.3
  189. +1 −4 man/recno.3
  190. +19 −32 mpool/mpool.c
  191. +0 −1 mpool/tags
  192. +3 −6 recno/rec_close.c
  193. +3 −6 recno/rec_delete.c
  194. +3 −6 recno/rec_get.c
  195. +3 −6 recno/rec_open.c
  196. +3 −6 recno/rec_put.c
  197. +3 −6 recno/rec_search.c
  198. +3 −6 recno/rec_seq.c
  199. +3 −6 recno/rec_utils.c
  200. +0 −1 recno/tags
  201. +1 −4 test/btree.tests/main.c
  202. +1 −4 test/dbtest.c
  203. +1 −4 test/hash.tests/driver2.c
  204. +1 −4 test/hash.tests/tcreat3.c
  205. +1 −4 test/hash.tests/tdel.c
  206. +1 −4 test/hash.tests/thash4.c
  207. +1 −4 test/hash.tests/tread2.c
  208. +1 −4 test/hash.tests/tseq.c
  209. +1 −4 test/hash.tests/tverify.c
102 changes: 0 additions & 102 deletions PORT/Makefile

This file was deleted.

131 changes: 0 additions & 131 deletions PORT/README

This file was deleted.

102 changes: 0 additions & 102 deletions PORT/aix.3.2/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion PORT/aix.3.2/clib

This file was deleted.

1 change: 0 additions & 1 deletion PORT/aix.3.2/include/cdefs.h

This file was deleted.

1 change: 0 additions & 1 deletion PORT/aix.3.2/include/db.h

This file was deleted.

1 change: 0 additions & 1 deletion PORT/aix.3.2/include/mpool.h

This file was deleted.

1 change: 0 additions & 1 deletion PORT/aix.3.2/include/ndbm.h

This file was deleted.

1 change: 0 additions & 1 deletion PORT/aix.3.2/include/queue.h

This file was deleted.

1 change: 0 additions & 1 deletion PORT/aix.3.2/sys

This file was deleted.

1 change: 0 additions & 1 deletion PORT/bsd.4.4/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion PORT/bsd.4.4/clib

This file was deleted.

1 change: 0 additions & 1 deletion PORT/bsd.4.4/include/cdefs.h

This file was deleted.

1 change: 0 additions & 1 deletion PORT/bsd.4.4/include/compat.h

This file was deleted.

Loading