ndbm(3) does atomic operations?

See-Mong Tan stan at cory.Berkeley.EDU
Fri Jul 21 14:42:44 AEST 1989


Hi, I'd like to use the ndbm(3) package on a 4.3 system for some
record keeping.  The only problem is it involves a couple of processes
in parallel and I'm not sure if the routines in there do atomic 
operations, or if I'll have to resort to flock(2)s to make sure accesses
are atomic on a shared database.  Could someone please enlighten me?

Keeping in tune with IPC, are there semaphore or monitor level system
calls in 4.3?  I know of semops in Sys V, but I'd really like something
for BSD.

Thanks in advance, and please mail, since I don't usually read this group.

--
stan at cory.berkeley.edu
stan at lbl-csam.arpa



More information about the Comp.unix.questions mailing list