((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/gdbm" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg")) (section 2 "gdbm" (toc) (section 3 "Description" (p (link "https://www.gnu.org/software/gdbm" "GNU DBM") " bindings for Chicken.")) (section 3 "Author" (p (int-link "Alex Shinn"))) (section 3 "Requirements" (p "None")) (section 3 "Documentation" (p "The following flags and procedures are defined. For more information, consult the " (tt "gdbm(3)") " manual pages.") (section 4 "gdbm-open" (def (sig (procedure "(gdbm-open FILE [BLOCK-SIZE FLAGS MODE])" (id gdbm-open))) (p "Returns a " (tt "DBF") " object.  FLAGS is one of the following:")) (def (sig (constant "GDBM_READER" (id GDBM_READER)) (constant "GDBM_WRITER" (id GDBM_WRITER)) (constant "GDBM_WRCREAT" (id GDBM_WRCREAT)) (constant "GDBM_NEWDB" (id GDBM_NEWDB)) (constant "GDBM_SYNC" (id GDBM_SYNC)) (constant "GDBM_NOLOCK" (id GDBM_NOLOCK))))) (section 4 "gdbm-close" (def (sig (procedure "(gdbm-close DBF)" (id gdbm-close))))) (section 4 "gdbm-store" (def (sig (procedure "(gdbm-store DBF KEY VALUE FLAG)" (id gdbm-store))) (p "Returns an " (tt "INT") ".  " (tt "FLAG") " is one of the following:")) (def (sig (constant "GDBM_INSERT" (id GDBM_INSERT)) (constant "GDBM_REPLACE" (id GDBM_REPLACE))))) (section 4 "gdbm-delete" (def (sig (procedure "(gdbm-delete DBF KEY)" (id gdbm-delete))))) (section 4 "gdbm-fetch" (def (sig (procedure "(gdbm-fetch DBF KEY)" (id gdbm-fetch))) (p "Returns a " (tt "STRING")))) (section 4 "gdbm-exists" (def (sig (procedure "(gdbm-exists DBF KEY)" (id gdbm-exists))) (p "Returns a " (tt "BOOL")))) (section 4 "gdbm-first-key" (def (sig (procedure "(gdbm-first-key DBF)" (id gdbm-first-key))) (p "Returns a " (tt "STRING")))) (section 4 "gdbm-next-key" (def (sig (procedure "(gdbm-next-key DBF STRING)" (id gdbm-next-key))) (p "Returns a " (tt "STRING")))) (section 4 "gdbm-fold" (def (sig (procedure "(gdbm-fold DBF KONS KNIL)" (id gdbm-fold))) (p "Returns the accumulated result.")))) (section 3 "Changelog" (ul (li "1.2 Daishi Kato provided another bugfix (null-pointer check for undefined results)") (li "1.1 Supports keys and values with embedded " (tt "#\\nul") " characters [Contributed by Daishi Kato]; some fixes and optimizations by felix") (li "1.0 Initial release"))) (section 3 "License" (pre " Copyright (c) 2005, Alex Shinn\n All rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n \n Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.") (pre " Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.") (pre " Neither the name of the author nor the names of its contributors may\n be used to endorse or promote products derived from this software\n without specific prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n OF THE POSSIBILITY OF SUCH DAMAGE."))))