Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: data base manager Message-ID: <7155@mimsy.UUCP> Date: Sat, 20-Jun-87 04:49:35 EDT Article-I.D.: mimsy.7155 Posted: Sat Jun 20 04:49:35 1987 Date-Received: Mon, 22-Jun-87 04:55:44 EDT References: <45000008@uicsrd> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 26 In article <45000008@uicsrd> gaur@uicsrd.CSRD.UIUC.EDU writes: >DBM(3X) ... we cannot close a database and open an another one >in a program. Is it true? This is indeed true. If you have dbm, you are probably running 4BSD; if you are running 4BSD, you are probably running either 4.2BSD or 4.3BSD. If the former, you can switch to 4.3BSD; if the latter, or after switching, see man 3x ndbm. Incidentally, with old dbm, this works after a fashion: dbmclose() { extern int dirf, pagf; extern long dblkno, pblkno; (void) close(dirf); (void) close(pagf); dirf = pagf = -1; dblkno = pblkno = -1; } if I got the names right (I am working entirely from memory). -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: seismo!mimsy!chris