Lines Matching defs:mode
12 int mode;
79 if (c->mode == 'a') c->pos = c->len;
97 FILE *fmemopen(void *restrict buf, size_t size, const char *restrict mode)
100 int plus = !!strchr(mode, '+');
102 if (!strchr("rwa", *mode)) {
127 f->c.mode = *mode;
129 if (!plus) f->f.flags = (*mode == 'r') ? F_NOWR : F_NORD;
130 if (*mode == 'r') f->c.len = size;
131 else if (*mode == 'a') f->c.len = f->c.pos = strnlen(buf, size);