Lines Matching refs:omode
1747 int omode = bitset(map->map_mflags, MF_WRITABLE) ? O_RDWR local
1755 if (map->map_class->map_open(map, omode))
1759 if ((omode & O_ACCMODE) == O_RDWR)
2048 int omode; variable
2079 omode = mode;
2116 omode |= O_CREAT|O_EXCL;
2122 omode |= O_TRUNC|O_EXLOCK;
2124 omode |= O_SHLOCK;
2132 fd = open(buf, omode, DBMMODE);
2167 omode |= O_TRUNC;
2168 omode &= ~(O_EXCL|O_CREAT);
2172 db = dbopen(buf, omode, DBMMODE, dbtype, openinfo);
2182 if (bitset(O_CREAT, omode))
2184 if (bitset(O_TRUNC, omode))
2396 int omode = bitset(map->map_mflags, MF_WRITABLE) ? O_RDWR local
2404 if (map->map_class->map_open(map, omode))
2408 if ((omode & O_ACCMODE) == O_RDWR)
2729 int fd, status, omode, smode; local
2741 omode = mode;
2807 omode |= O_CREAT|O_EXCL;
2810 omode |= O_TRUNC|O_EXLOCK;
2812 omode |= O_SHLOCK;
2815 omode |= O_TRUNC;
2818 fd = open(buf, omode, DBMMODE);