gcc/libstdc++-v3/config
Loren J. Rittle ddf1e65262 porting.texi: Add documentation about libstdc++-v3-specific macros that are currently...
libstdc++/2071
	* porting.texi: Add documentation about libstdc++-v3-specific
	macros that are currently included in os_defines.h files.

	* config/basic_file_stdio.h (sys_getc): New method.
	(sys_ungetc): New method.
	* include/bits/basic_file.h: (sys_getc): New method signature.
	(sys_ungetc): New method signature.

	* include/bits/fstream.tcc (underflow): Add conditional code
	paths which avoid using short seeks on streams (especially
	useful when the stream might be interactive or a pipe).  At
	the moment, this alternate path only avoids seeking when the
	``buffer size'' of underflow() is 1 since the C standard only
	guarantees buffer space for one ungetc (this technique could
	be extended since *-*-solaris* supports buffering for 4 calls
	to ungetc and *-*-*bsd* supports buffering limited only by
	memory resources).  Also, _GLIBCPP_AVOID_FSEEK must be defined
	in a port's os_defines.h file for this alternate path to even
	be considered.  As a bonus, the idiom of using getc/ungetc
	requires no system calls whereas fseek maps to one or two
	system call(s) on many platforms.

	* config/os/bsd/freebsd/bits/os_defines.h (_GLIBCPP_AVOID_FSEEK):
	Define it.
	* config/os/solaris/solaris2.5/bits/os_defines.h
	(_GLIBCPP_AVOID_FSEEK): Likewise.
	* config/os/solaris/solaris2.6/bits/os_defines.h
	(_GLIBCPP_AVOID_FSEEK): Likewise.
	* config/os/solaris/solaris2.7/bits/os_defines.h
	(_GLIBCPP_AVOID_FSEEK): Likewise.

From-SVN: r43278
2001-06-12 23:09:09 +00:00
..
cpu
os porting.texi: Add documentation about libstdc++-v3-specific macros that are currently... 2001-06-12 23:09:09 +00:00
basic_file_libio.cc basic_file.h: Include basic_file_model.h. 2001-02-28 03:20:36 +00:00
basic_file_libio.h basic_file.h (get_fileno): Remove. 2001-03-27 03:48:17 +00:00
basic_file_stdio.cc basic_file.h: Include basic_file_model.h. 2001-02-28 03:20:36 +00:00
basic_file_stdio.h porting.texi: Add documentation about libstdc++-v3-specific macros that are currently... 2001-06-12 23:09:09 +00:00
c_io_libio_codecvt.c
c_io_libio.h std_iosfwd.h: Remove string forward decls here. 2001-03-07 22:22:41 +00:00
c_io_stdio.h basic_string.h (string::compare): Adjust signatures as per DR 5. 2001-06-12 02:30:37 +00:00
c_locale_generic.cc
c_locale_generic.h
c_locale_gnu.cc
c_locale_gnu.h