Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!spool.mu.edu!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul From: wpaul@ctr.columbia.edu (Bill Paul) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: dbm or ndbm for FreeBSD Date: 22 Nov 1995 17:27:44 GMT Organization: Columbia University Center for Telecommunications Research Lines: 42 Distribution: world Message-ID: <48vmig$t2u@sol.ctr.columbia.edu> References: <48quhh$lpp@ornews.intel.com> <48rmai$gk4@atlas.uniserve.com> NNTP-Posting-Host: startide.ctr.columbia.edu X-Newsreader: TIN [version 1.2 PL2] Daring to challenge the will of the almighty Leviam00se, Tom Samplonius (tom@uniserve.com) had the courage to say: : In article <48quhh$lpp@ornews.intel.com>, abcraig@orglobe.intel.com says... : > : >Has anyone ported either dbm or preferably ndbm for FreeBSD? : ndbm is included via a layer over top db. : Tom If anyone really, really, really wants the original ndbm code, they can FTP the following files from gatekeeper.dec.com: /rom/sri-tcpip/lib/include/ndbm.h /rom/sri-tcpip/src/lib/c/etc/ndbm.c /rom/sri-tcpip/src/lib/c/etc/ndbm.man (Note that the 'sri-tcpip' directory name is wrong: it should really say 'sprite'. It happens that gatekeeper has several symlinks under the /rom directory that point to mounted CD-ROMs, and the links for 'sri-tcpip' and 'sprite' somehow got reversed. Sprite is another alternative operating system; there's a good deal of interesting source code to be found here.) This is basically the same ndbm implementation found in SunOS and most other commercial OSes. It should compile on FreeBSD with only trivial modification. (I found that it declares lseek() as 'extern long', which conflicts with the declaration in the FreeBSD header files. If you comment this declaration out, everything works fine.) -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= License error: The license for this .sig file has expired. You must obtain a new license key before any more witty phrases will appear in this space. =============================================================================