pag@hao.ucar.edu (Peter Gross) (08/09/88)
I have been out of touch with Unix for a couple of years, so this may have already been discussed or accomplished..... The BSD ndbm database routines normally operate on disk files. I would like to use the same functionality, but have the database[s] be in the process virtual address space. It could be accomplished by a re-write of the routines, or by mapping the files into memory. Do any wizards out there have a suggestion on how to do this under a BSD-flavor Unix (SunOS, Ultrix, 4.[23], etc.)? --peter gross pag@hao.ucar.edu
pope@vatican (John Pope) (08/10/88)
In article <556@ncar.ucar.edu>, pag@hao (Peter Gross) writes: > >The BSD ndbm database routines normally operate on disk files. I would >like to use the same functionality, but have the database[s] be in the >process virtual address space. It could be accomplished by a re-write >of the routines, or by mapping the files into memory. Do any wizards >out there have a suggestion on how to do this under a BSD-flavor Unix >(SunOS, Ultrix, 4.[23], etc.)? On BSD and SunOS, check out mmap(2). Don't know about Ultrix... >--peter gross >pag@hao.ucar.edu -- John Pope Sun Microsystems, Inc. pope@sun.COM