Lines Matching defs:openflags
132 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \
135 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \
138 static struct openflags global_openflags = OPEN_FLAGS;
161 struct openflags boot_openflags;
162 struct openflags openflags;
188 .openflags = OPEN_FLAGS, \
240 struct openflags flags = global_openflags;
624 static int open_ubd_file(char *file, struct openflags *openflags, int shared,
635 fd = os_open_file(file, *openflags, mode);
639 if (!openflags->w ||
642 openflags->w = 0;
643 fd = os_open_file(file, *openflags, mode);
651 err = os_lock_file(fd, openflags->w);
704 struct openflags flags,
742 struct openflags flags;
747 ubd_dev->openflags = ubd_dev->boot_openflags;
752 fd = open_ubd_file(ubd_dev->file, &ubd_dev->openflags, ubd_dev->shared,
759 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE,
793 flags = ubd_dev->openflags;
1172 set_disk_ro(disk, !ubd_dev->openflags.w);