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: <1464bc69-4dd5-b63d-d1b9-048b52fe036e AT towo DOT net> In-Reply-To: Date: Tue, 1 Sep 2020 16:55:10 -0400 Message-ID: Subject: Re: cygwin qsort erratic To: Kurt-Karen Carlson-Lougheed 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Stephen John Smoogen via Cygwin Reply-To: Stephen John Smoogen Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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