From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 836273870890 for ; Tue, 1 Sep 2020 20:55:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 836273870890 Received: by mail-pl1-x630.google.com with SMTP id j11so1152109plk.9 for ; Tue, 01 Sep 2020 13:55:22 -0700 (PDT) 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: <1464bc69-4dd5-b63d-d1b9-048b52fe036e@towo.net> In-Reply-To: From: Stephen John Smoogen Date: Tue, 1 Sep 2020 16:55:10 -0400 Message-ID: Subject: Re: cygwin qsort erratic To: Kurt-Karen Carlson-Lougheed Cc: cygwin@cygwin.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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 20:55:24 -0000 On Tue, 1 Sep 2020 at 16:31, Kurt-Karen Carlson-Lougheed via Cygwin < cygwin@cygwin.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.