delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/01/16:56:10

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CC96393C845
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1598993725;
bh=4a68XXS3t9z99kA6FU9uClD/R/IVwYXoskmjDAn5RT4=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=sN04DD0n5NPiq/M1V/oUrMkt+2+ngxe48+HSfE6vDJ8MRXLJBbyaBGdvhNQ9NxKlj
8/UBDVxKgeyU6k+cYhFrgOh2nDJqppirBSv+jeXHZfxAVNdqEoa4Jecewm3YFDzvqF
8LhJdNexy0qhr22A/FYPHFKVoLh2bB3B8Hr7r5tY=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 836273870890
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=LCbK/cGGzcWb98P1QXbRxW2qqvNsdbx3LwcgLHh1Mu0=;
b=npV/TquSoPp4B2c2lr5UYWHKS+UgOczwzKXvvP2u5zMXsvVYFHjxm8o384SQawZrlV
7BhLz3ze8fDodVEosV87GtCQZD36+4K732DS/KXyq5yz8X6Jx2/U6hElFAEGG/OkP5+Q
xN5xK+m/ZHsRJr2gNmRJp0MFoH7tgtAPW5lbhvkZnJ0Yg3yUpijF/Pw6oArIa7fkrmRA
8A229cJfmBlkduoFic6Z3ivCirT8fTUR3sItnXVkLC1dqCdXpIJH9Mzi3R4u8ECxJnCh
VavHsZkOsUt/oCBMBqCswAai4/I3zw/YRagm99P/b26vMcaY32a06WOw1TGZYqbZ5ogw
u10g==
X-Gm-Message-State: AOAM533bTkr5cALdvXiBJUz4S14yo9D8xAwXy+YLy+yhsDZC8t1F7ssz
4LmaoedGvZqgJKaPVn5P0GYA2dgqhCv13tTLahI=
X-Google-Smtp-Source: ABdhPJxfEn634GSB/AXskH+7yN+xpfp0DGavuUMN1mMG3fCtIsfb4PeTcMXmr3lGcP5r7BGQX1fmFBezixAKVrNLFYY=
X-Received: by 2002:a17:90a:8c84:: with SMTP id
b4mr3410255pjo.82.1598993721467;
Tue, 01 Sep 2020 13:55:21 -0700 (PDT)
MIME-Version: 1.0
References: <CAHybJinLYpcviSFiJ=V-EZqoatEzjFfr9DOUzxzmofUmtwMS+w AT mail DOT gmail DOT com>
<c9792fdc-aedc-6934-e11f-732f841b533b AT SystematicSw DOT ab DOT ca>
<CAHybJi=+uKitmwhWfuc564xz6qxZF+H=rA87LaB1NBJPkBAsUA AT mail DOT gmail DOT com>
<1464bc69-4dd5-b63d-d1b9-048b52fe036e AT towo DOT net>
<dd9d0748-4113-1b88-866c-abcb123e7f27 AT SystematicSw DOT ab DOT ca>
<CAHybJikqf2HdOMAfyN0fgNXcNMLWR=5UX_A5yv7cd-mXDgKwCQ AT mail DOT gmail DOT com>
In-Reply-To: <CAHybJikqf2HdOMAfyN0fgNXcNMLWR=5UX_A5yv7cd-mXDgKwCQ@mail.gmail.com>
Date: Tue, 1 Sep 2020 16:55:10 -0400
Message-ID: <CANnLRdi2UyGeyi7SND1qgsX2hecFF7H7LqQ01--0WO1t0oNp9A@mail.gmail.com>
Subject: Re: cygwin qsort erratic
To: Kurt-Karen Carlson-Lougheed <denalisun907 AT gmail DOT com>
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Stephen John Smoogen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Stephen John Smoogen <smooge AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Tue, 1 Sep 2020 at 16:31, Kurt-Karen Carlson-Lougheed via Cygwin <
cygwin AT cygwin DOT com> wrote:

>
> B. If you could kindly provide me or point me to the cygwin qsort() source
> I'll check it out myself.
>


The source code is availble at
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git and with the git
command can be cloned using

git clone https://sourceware.org/git/newlib-cygwin.git

this will create a directory called newlib-cygwin you can cd into . The
qsort source code is in the directory newlib-cygwin/newlib/libc/search and
looks to be based off the BSD qsort from around 2002. To see the changes to
this over time one can do a

git blame newlib-cygwin/newlib/libc/search/qsort.c

and

git log newlib-cygwin/newlib/libc/search/qsort.c

The git log is clear on the changes done in 2018 to reduce stack size.

-- 
Stephen J Smoogen.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019