Lines Matching defs:mode
80 filebuf* filebuf::open(const char *filename, ios::openmode mode, int prot)
86 if (mode & ios::app)
87 mode |= ios::out;
88 if ((mode & (ios::in|ios::out)) == (ios::in|ios::out)) {
92 else if (mode & ios::out)
94 else if (mode & (int)ios::in)
98 if (mode & ios::binary)
100 mode &= ~ios::binary;
106 if ((mode & (int)ios::trunc) || mode == (int)ios::out)
108 if (mode & ios::app)
110 if (!(mode & (int)ios::nocreate) && mode != ios::in)
112 if (mode & (int)ios::noreplace)
118 if (mode & ios::ate) {
131 if (mode & ios::ate) {
140 filebuf* filebuf::open(const char *filename, const char *mode)
143 return (filebuf*)_IO_file_fopen(this, filename, mode, 0);
145 return (filebuf*)_IO_file_fopen(this, filename, mode);
176 streampos filebuf::seekoff(streamoff offset, _seek_dir dir, int mode)
178 return _IO_file_seekoff (this, offset, dir, mode);