newlib-cygwin/winsup/mingw/samples/fmode
Danny Smith bea966c0d9 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
(MINGW_OBJS): Add txtmode.o.
	(SRCDIST_FILES): Add txtmode.c binmode.c.
	crt1.c: Don't include fcntrl.h, stdlib.h.
	(_fmode): Declare, without dllimport attribute.
	(__p__fmode): Declare access function for dll's _fmode.
	(_mingw32_init_fmode): Sync dll _fmode with staticly linked
	_fmode for app.
	* txtmode.c: New file.
	* binmode.c: New file.
	* samples/fmode/test2.c: New file.
	* samples/fmode/jamfile: Add test2.exe target.
2002-10-19 20:26:26 +00:00
..
all.c * include/fcntl.h (_fmode): Remove declarations and 2002-10-03 00:49:21 +00:00
jamfile * Makefile.in (CRT0S): Add txtmode.o binmode.o. 2002-10-19 20:26:26 +00:00
readme.txt Merging MinGW changes 2002-05-28 13:13:45 +00:00
test.c * include/fcntl.h (_fmode): Remove declarations and 2002-10-03 00:49:21 +00:00
test2.c * Makefile.in (CRT0S): Add txtmode.o binmode.o. 2002-10-19 20:26:26 +00:00

readme.txt

These two demos show how _fmode and _CRT_fmode can be used to modify the
default file opening mode (text vs. binary) and/or the mode of the standard
file handles.