O_SHLOCK
O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC | O_CLOEXEC)
fd = _open(file, O_WRONLY|O_APPEND|O_SHLOCK|O_CLOEXEC);
db = dbopen(fname, O_RDONLY|O_SHLOCK|O_CLOEXEC, 0, DB_HASH, NULL);
if ((oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK |
if ((flags & (O_EXLOCK | O_SHLOCK)) && fp->f_type == DTYPE_VNODE) {
if (fmode & (O_EXLOCK | O_SHLOCK)) {
fd = open(pp->status_file, O_RDONLY|O_SHLOCK);
fd = open(pp->status_file, O_RDONLY|O_SHLOCK);
fd = open(file, O_RDONLY|O_SHLOCK);
#ifdef O_SHLOCK
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644)) == -1) {
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644)) == -1)