Lines Matching defs:openflags
126 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \
129 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \
132 static struct openflags global_openflags = OPEN_FLAGS;
155 struct openflags boot_openflags;
156 struct openflags openflags;
183 .openflags = OPEN_FLAGS, \
282 struct openflags flags = global_openflags;
600 static int open_ubd_file(char *file, struct openflags *openflags, int shared,
611 fd = os_open_file(file, *openflags, mode);
615 if (!openflags->w ||
618 openflags->w = 0;
619 fd = os_open_file(file, *openflags, mode);
627 err = os_lock_file(fd, openflags->w);
680 struct openflags flags,
718 struct openflags flags;
723 ubd_dev->openflags = ubd_dev->boot_openflags;
728 fd = open_ubd_file(ubd_dev->file, &ubd_dev->openflags, ubd_dev->shared,
735 ubd_dev->openflags, 1 << 9, PAGE_SIZE,
769 flags = ubd_dev->openflags;
1113 set_disk_ro(disk, !ubd_dev->openflags.w);
1117 /*if((mode & FMODE_WRITE) && !ubd_dev->openflags.w){