diff options
author | obrien <obrien@FreeBSD.org> | 2000-03-09 09:21:46 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-03-09 09:21:46 +0000 |
commit | f75cfb157effa1b026b094dc10bab22d145437c4 (patch) | |
tree | e14ed3f6b711d11719fc560a99405d097b27ff65 /contrib/libio | |
parent | d47a055da58c56e545bd71522d31a65928dc6c3f (diff) | |
parent | 922a45e8c80d9c15acdba0eee3d03681cc7cb8d6 (diff) | |
download | FreeBSD-src-f75cfb157effa1b026b094dc10bab22d145437c4.zip FreeBSD-src-f75cfb157effa1b026b094dc10bab22d145437c4.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r57844,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/libio')
-rw-r--r-- | contrib/libio/ChangeLog | 7 | ||||
-rw-r--r-- | contrib/libio/fstream.h | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/contrib/libio/ChangeLog b/contrib/libio/ChangeLog index 8151dc2..d78e505 100644 --- a/contrib/libio/ChangeLog +++ b/contrib/libio/ChangeLog @@ -1,3 +1,10 @@ +2000-01-28 Martin v. Löwis <loewis@informatik.hu-berlin.de> + + * fstream.h (ifstream::ifstream): Add ios::in to mode. + (ifstream::open): Likewise. + (ofstream::ofstream): Add ios::out to mode. + (ofstream::open): Likewise. + 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de> * filebuf.cc (open): Support ios::ate if _G_HAVE_IO_FILE_OPEN. diff --git a/contrib/libio/fstream.h b/contrib/libio/fstream.h index ea98f5c..b5f6598 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 Free Software Foundation +Copyright (C) 1993, 2000 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, prot) { } + : fstreambase(name, mode | ios::in, prot) { } void open(const char *name, int mode=ios::in, int prot=0664) - { fstreambase::open(name, mode, prot); } + { fstreambase::open(name, mode | ios::in, 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, prot) { } + : fstreambase(name, mode | ios::out, prot) { } void open(const char *name, int mode=ios::out, int prot=0664) - { fstreambase::open(name, mode, prot); } + { fstreambase::open(name, mode | ios::out, prot); } }; class fstream : public fstreambase, public iostream { |