O_SHLOCK
{ "shlock", O_SHLOCK, C_IFLAG|C_OFLAG },
#ifndef O_SHLOCK
#define IGNFLAGS (O_ACCMODE|O_RDONLY|O_WRONLY|O_RDWR|O_SHLOCK|O_EXLOCK| \
O_RDWR | O_SHLOCK | 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);
(oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC |
{ SUN_SHLOCK, O_SHLOCK },
nmode |= ((smode & 0x0080) ? O_SHLOCK : 0);
{ SUN_SHLOCK, O_SHLOCK },
r |= ((lf & 0x0080) ? O_SHLOCK : 0);
r |= ((q & 0x0080) ? O_SHLOCK : 0);
if (flags & (O_EXLOCK | O_SHLOCK)) {
#define O_MASK (O_ACCMODE|O_NONBLOCK|O_APPEND|O_SHLOCK|O_EXLOCK|\
O_SHLOCK, O_EXLOCK,
O_SHLOCK, O_EXLOCK,
#ifndef O_SHLOCK
oi.dbflags = O_RDONLY | O_SHLOCK;
lldb = dbopen(_PATH_LASTLOGX, O_RDONLY|O_SHLOCK, 0, DB_HASH, NULL);
DB *db = dbopen(logfile, O_RDONLY|O_SHLOCK, 0, DB_HASH, NULL);
fd = open(path, flags|O_SHLOCK, mode);
#if O_SHLOCK == 0
#ifndef O_SHLOCK