Lines Matching defs:openflags
133 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \
136 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \
139 static struct openflags global_openflags = OPEN_FLAGS;
161 struct openflags boot_openflags;
162 struct openflags openflags;
187 .openflags = OPEN_FLAGS, \
274 struct openflags flags = global_openflags;
672 static int open_ubd_file(char *file, struct openflags *openflags, int shared,
683 fd = os_open_file(file, *openflags, mode);
687 if (!openflags->w ||
690 openflags->w = 0;
691 fd = os_open_file(file, *openflags, mode);
699 err = os_lock_file(fd, openflags->w);
752 struct openflags flags,
790 struct openflags flags;
795 ubd_dev->openflags = ubd_dev->boot_openflags;
800 fd = open_ubd_file(ubd_dev->file, &ubd_dev->openflags, ubd_dev->shared,
807 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE,
841 flags = ubd_dev->openflags;
1233 set_disk_ro(disk, !ubd_dev->openflags.w);
1237 /*if((mode & FMODE_WRITE) && !ubd_dev->openflags.w){