* environ.cc (known): Remove "binmode" option.
* fhandler.cc (binmode): Remove. (fhandler_base::set_flags): Accommodate binmode removal. * path.h (path_conv::set_binary): Remove. * pipe.cc (pipe): Create pipes always as binary pipes. * winsup.h (binmode): Remove declaration.
This commit is contained in:
parent
d2af9effc5
commit
fd8e5366aa
@ -1,3 +1,12 @@
|
||||
2008-07-18 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* environ.cc (known): Remove "binmode" option.
|
||||
* fhandler.cc (binmode): Remove.
|
||||
(fhandler_base::set_flags): Accommodate binmode removal.
|
||||
* path.h (path_conv::set_binary): Remove.
|
||||
* pipe.cc (pipe): Create pipes always as binary pipes.
|
||||
* winsup.h (binmode): Remove declaration.
|
||||
|
||||
2008-07-17 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* mount.cc (mount_info::from_fstab_line): Default to binary mount.
|
||||
|
@ -566,7 +566,6 @@ static struct parse_thing
|
||||
} values[2];
|
||||
} known[] NO_COPY =
|
||||
{
|
||||
{"binmode", {x: &binmode}, justset, NULL, {{O_TEXT}, {O_BINARY}}},
|
||||
{"codepage", {func: &codepage_init}, isfunc, NULL, {{0}, {0}}},
|
||||
{"dosfilewarning", {&dos_file_warning}, justset, NULL, {{false}, {true}}},
|
||||
{"envcache", {&envcache}, justset, NULL, {{true}, {false}}},
|
||||
|
@ -34,8 +34,6 @@ static NO_COPY const int CHUNK_SIZE = 1024; /* Used for crlf conversions */
|
||||
|
||||
struct __cygwin_perfile *perfile_table;
|
||||
|
||||
DWORD binmode;
|
||||
|
||||
inline fhandler_base&
|
||||
fhandler_base::operator =(fhandler_base& x)
|
||||
{
|
||||
@ -197,8 +195,7 @@ fhandler_base::set_flags (int flags, int supplied_bin)
|
||||
else if (supplied_bin)
|
||||
bin = supplied_bin;
|
||||
else
|
||||
bin = wbinary () || rbinary () || (binmode != O_TEXT)
|
||||
? O_BINARY : O_TEXT;
|
||||
bin = wbinary () || rbinary () ? O_BINARY : O_TEXT;
|
||||
|
||||
openflags = flags | bin;
|
||||
|
||||
|
@ -193,7 +193,6 @@ class path_conv
|
||||
return dont_know_if_executable;
|
||||
}
|
||||
|
||||
void set_binary () {path_flags |= PATH_BINARY;}
|
||||
void set_symlink (DWORD n) {path_flags |= PATH_SYMLINK; symlink_length = n;}
|
||||
void set_has_symlinks () {path_flags |= PATH_HAS_SYMLINKS;}
|
||||
void set_exec (int x = 1) {path_flags |= x ? PATH_EXEC : PATH_NOTEXEC;}
|
||||
|
@ -495,11 +495,8 @@ fhandler_pipe::fstatvfs (struct statvfs *sfs)
|
||||
extern "C" int
|
||||
pipe (int filedes[2])
|
||||
{
|
||||
extern DWORD binmode;
|
||||
fhandler_pipe *fhs[2];
|
||||
int res = fhandler_pipe::create (fhs, DEFAULT_PIPEBUFSIZE,
|
||||
(!binmode || binmode == O_BINARY)
|
||||
? O_BINARY : O_TEXT);
|
||||
int res = fhandler_pipe::create (fhs, DEFAULT_PIPEBUFSIZE, O_BINARY);
|
||||
if (res == 0)
|
||||
{
|
||||
cygheap_fdnew fdin;
|
||||
|
@ -337,7 +337,6 @@ int cygwin_select (int , fd_set *, fd_set *, fd_set *,
|
||||
struct timeval *to);
|
||||
int cygwin_gethostname (char *__name, size_t __len);
|
||||
|
||||
extern DWORD binmode;
|
||||
extern char _data_start__, _data_end__, _bss_start__, _bss_end__;
|
||||
extern void (*__CTOR_LIST__) (void);
|
||||
extern void (*__DTOR_LIST__) (void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user