diff options
author | obrien <obrien@FreeBSD.org> | 2002-06-18 18:13:14 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-06-18 18:13:14 +0000 |
commit | 85a92e54f0b53c90b688f1f877c7c38a4d7e6f86 (patch) | |
tree | 73dad42ab84d2e1f7ae89fca2652ee78b01649af /contrib/libio/osform.cc | |
parent | 275daea3378736e5c39a04f758055711c12273a2 (diff) | |
download | FreeBSD-src-85a92e54f0b53c90b688f1f877c7c38a4d7e6f86.zip FreeBSD-src-85a92e54f0b53c90b688f1f877c7c38a4d7e6f86.tar.gz |
FreeBSD is one of the OS's that does not require the use of libio with Gcc 3.1.
Diffstat (limited to 'contrib/libio/osform.cc')
-rw-r--r-- | contrib/libio/osform.cc | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/contrib/libio/osform.cc b/contrib/libio/osform.cc deleted file mode 100644 index f08f2ef..0000000 --- a/contrib/libio/osform.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* -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 -terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) -any later version. - -This library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this library; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -As a special exception, if you link this library with files -compiled with a GNU compiler to produce an executable, this does not cause -the resulting executable to be covered by the GNU General Public License. -This exception does not however invalidate any other reasons why -the executable file might be covered by the GNU General Public License. */ - -#include "libioP.h" -#include <iostream.h> -#include <stdarg.h> - -ostream& ostream::form(const char *format ...) -{ - if (opfx()) { - _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, - _strbuf); - va_list ap; - va_start(ap, format); - _IO_vfprintf(rdbuf(), format, ap); - va_end(ap); - osfx(); - _IO_cleanup_region_end (0); - } - return *this; -} - -ostream& ostream::vform(const char *format, _IO_va_list args) -{ - if (opfx()) { - _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, - _strbuf); - _IO_vfprintf(rdbuf(), format, args); - osfx(); - _IO_cleanup_region_end (0); - } - return *this; -} - -ostream& ostream::operator<<(const void *p) -{ - if (opfx()) { - _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, - _strbuf); - form("%p", p); - osfx(); - _IO_cleanup_region_end (0); - } - return *this; -} |