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: mtx_init: drop glibc workaround
Date: Tue,  1 Sep 2020 10:53:10 +0000 (GMT)	[thread overview]
Message-ID: <20200901105310.BC056383F843@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=fc352c07ad4b4f51ae57a9797259cef0c5c015cc

commit fc352c07ad4b4f51ae57a9797259cef0c5c015cc
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Sep 1 12:46:12 2020 +0200

    Cygwin: mtx_init: drop glibc workaround
    
    GLibc will change this code in the forseeable future to align more
    with FreeBSD, so this hack is not actually desired.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/libc/mtx.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/winsup/cygwin/libc/mtx.c b/winsup/cygwin/libc/mtx.c
index dca0849cc..f009d19ed 100644
--- a/winsup/cygwin/libc/mtx.c
+++ b/winsup/cygwin/libc/mtx.c
@@ -54,13 +54,6 @@ mtx_init(mtx_t *mtx, int type)
 	case mtx_timed:
 		mt = PTHREAD_MUTEX_NORMAL;
 		break;
-#ifdef __CYGWIN__
-	/* This is a hack to support apps running under GLibc.  mtx_plain is
-	   defined as 0 in GLibc, so apps calling mtx_init with just the
-	   mtx_recursive flag don't fail, as they should.  Rather they run
-	   as if mtx_plain | mtx_recursive has been given as type. */
-	case mtx_recursive:
-#endif
 	case mtx_plain | mtx_recursive:
 	case mtx_timed | mtx_recursive:
 		mt = PTHREAD_MUTEX_RECURSIVE;


                 reply	other threads:[~2020-09-01 10:53 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=20200901105310.BC056383F843@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: link
Be 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).