Lines Matching refs:mode
46 static ios_base::openmode flag_to_openmode(int mode) {
49 switch (mode & O_ACCMODE) {
58 if (mode & O_APPEND)
61 if (mode & O_BINARY)
134 //the file will be considered as open in binary mode with no append attribute
137 int mode = 0;
139 mode |= O_APPEND;
142 mode |= O_TEXT;
144 mode |= O_BINARY;
151 mode |= O_RDWR;
153 mode |= O_RDONLY;
155 mode |= O_WRONLY;
157 return flag_to_openmode(mode);
169 int mode = 0;
172 mode |= O_APPEND;
175 mode |= O_BINARY;
182 mode |= O_RDONLY;
184 mode |= O_WRONLY;
186 mode |= O_RDWR;
191 return flag_to_openmode(mode);
472 // In append mode, every write does an implicit seek to the end
478 // binary mode