* 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.
This commit is contained in:
Danny Smith
2002-10-19 20:26:26 +00:00
parent 1fc4df5a69
commit bea966c0d9
7 changed files with 82 additions and 7 deletions

5
winsup/mingw/binmode.c Normal file
View File

@ -0,0 +1,5 @@
#include <fcntl.h>
/* Set default file mode to binary */
int _fmode = _O_BINARY;