From 360fa62aea0c70b9c1df241e646fbe82cfb060f6 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sun, 28 Jun 2009 19:59:21 -0400 Subject: [PATCH] Now that O_BINARY is being explicitly asserted everywhere it should be, we can remove the last _set_fmode() calls. SVN-Revision: 1204 --- cpio/test/main.c | 6 ------ libarchive/test/main.c | 5 ----- tar/test/main.c | 5 ----- 3 files changed, 16 deletions(-) diff --git a/cpio/test/main.c b/cpio/test/main.c index 5c84e89a4..442c93f09 100644 --- a/cpio/test/main.c +++ b/cpio/test/main.c @@ -994,12 +994,6 @@ int main(int argc, char **argv) (void)argc; /* UNUSED */ -#if defined(_WIN32) && !defined(__CYGWIN__) - /* Make sure open() function will be used with a binary mode. */ - /* on cygwin, we need something similar, but instead link against */ - /* a special startup object, binmode.o */ - _set_fmode(_O_BINARY); -#endif /* * Name of this program, used to build root of our temp directory * tree. diff --git a/libarchive/test/main.c b/libarchive/test/main.c index 83aea6bb4..f8e66d667 100644 --- a/libarchive/test/main.c +++ b/libarchive/test/main.c @@ -1064,11 +1064,6 @@ int main(int argc, char **argv) #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__GNUC__) /* To stop to run the default invalid parameter handler. */ _set_invalid_parameter_handler(invalid_parameter_handler); - /* for open() to a binary mode. */ - /* This shouldn't be needed, because all tests should - * explicitly use O_BINARY flag to open() and "b" to - * fopen(): */ - /* _set_fmode(_O_BINARY); */ /* Disable annoying assertion message box. */ _CrtSetReportMode(_CRT_ASSERT, 0); #endif diff --git a/tar/test/main.c b/tar/test/main.c index 06a78d8c0..2d2e8dd15 100644 --- a/tar/test/main.c +++ b/tar/test/main.c @@ -1039,11 +1039,6 @@ int main(int argc, char **argv) #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__GNUC__) /* To stop to run the default invalid parameter handler. */ _set_invalid_parameter_handler(invalid_parameter_handler); - /* for open() to a binary mode. */ - /* This shouldn't be needed, because all tests should - * explicitly use O_BINARY flag to open() and "b" to - * fopen(): */ - /* _set_fmode(_O_BINARY); */ /* Disable annoying assertion message box. */ _CrtSetReportMode(_CRT_ASSERT, 0); #endif -- 2.47.3