Read in text mode, write in binary mode on OS/2

This enables to convert CR+LF to LF when reading, but disables to
convert LF to CR+LF when writing.

Instead, however, CR+LF are not passed into mksh as is.
This commit is contained in:
KO Myung-Hun
2015-05-16 13:20:53 +09:00
parent a3fdbc6802
commit 5127457319
5 changed files with 20 additions and 0 deletions

3
sh.h
View File

@@ -64,6 +64,9 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#if HAVE_IO_H
#include <io.h>
#endif
#if HAVE_LIBGEN_H
#include <libgen.h>
#endif