public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: drop macro and code for CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING Date: Wed, 3 Aug 2022 14:05:39 +0000 (GMT) [thread overview] Message-ID: <20220803140539.F2F0B3857371@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8883f0ea394d204b33d86eee88e198047d3b5400 commit 8883f0ea394d204b33d86eee88e198047d3b5400 Author: Corinna Vinschen <corinna@vinschen.de> Date: Wed Aug 3 15:38:11 2022 +0200 Cygwin: drop macro and code for CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/include/cygwin/version.h | 5 ----- winsup/cygwin/syscalls.cc | 6 ------ 2 files changed, 11 deletions(-) diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index ae1ab83d4..393c96c30 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -34,11 +34,6 @@ details. */ #define CYGWIN_VERSION_USER_API_VERSION_COMBINED \ CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (user_data) -/* Old APIs had getc/putc macros that conflict with new CR/LF handling in the - stdio buffers */ -#define CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING \ - (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 20) - #define CYGWIN_VERSION_CHECK_FOR_S_IEXEC \ (CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 36) diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index a92948fba..e6d68cc07 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -2898,12 +2898,6 @@ ctermid (char *str) extern "C" int _cygwin_istext_for_stdio (int fd) { - if (CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING) - { - syscall_printf ("fd %d: old API", fd); - return 0; /* we do it for old apps, due to getc/putc macros */ - } - cygheap_fdget cfd (fd, false, false); if (cfd < 0) {
reply other threads:[~2022-08-03 14:05 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220803140539.F2F0B3857371@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).