summaryrefslogtreecommitdiff
path: root/contrib/libio/fstream.h
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2000-03-27 03:00:06 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2000-03-27 03:00:06 +0000
commit3e26bdf09c5e0a4e9b015a5f02b9c948454010e1 (patch)
tree36f3f9a09138cd7071d3de64269ad734e9d9c50b /contrib/libio/fstream.h
parent536abd52d2bd3b3830d8ac369f03865f32e4d496 (diff)
Diffstat (limited to 'contrib/libio/fstream.h')
-rw-r--r--contrib/libio/fstream.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libio/fstream.h b/contrib/libio/fstream.h
index b5f6598538f21..ea98f5caed054 100644
--- a/contrib/libio/fstream.h
+++ b/contrib/libio/fstream.h
@@ -1,5 +1,5 @@
/* This is part of libio/iostream, providing -*- C++ -*- input/output.
-Copyright (C) 1993, 2000 Free Software Foundation
+Copyright (C) 1993 Free Software Foundation
This file is part of the GNU IO Library. This library is free
software; you can redistribute it and/or modify it under the
@@ -62,9 +62,9 @@ class ifstream : public fstreambase, public istream {
ifstream(int fd) : fstreambase(fd) { }
ifstream(int fd, char *p, int l) : fstreambase(fd, p, l) { } /*Deprecated*/
ifstream(const char *name, int mode=ios::in, int prot=0664)
- : fstreambase(name, mode | ios::in, prot) { }
+ : fstreambase(name, mode, prot) { }
void open(const char *name, int mode=ios::in, int prot=0664)
- { fstreambase::open(name, mode | ios::in, prot); }
+ { fstreambase::open(name, mode, prot); }
};
class ofstream : public fstreambase, public ostream {
@@ -73,9 +73,9 @@ class ofstream : public fstreambase, public ostream {
ofstream(int fd) : fstreambase(fd) { }
ofstream(int fd, char *p, int l) : fstreambase(fd, p, l) { } /*Deprecated*/
ofstream(const char *name, int mode=ios::out, int prot=0664)
- : fstreambase(name, mode | ios::out, prot) { }
+ : fstreambase(name, mode, prot) { }
void open(const char *name, int mode=ios::out, int prot=0664)
- { fstreambase::open(name, mode | ios::out, prot); }
+ { fstreambase::open(name, mode, prot); }
};
class fstream : public fstreambase, public iostream {