From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18691 invoked by alias); 8 Feb 2020 22:34:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18681 invoked by uid 89); 8 Feb 2020 22:34:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-ed1-f51.google.com Received: from mail-ed1-f51.google.com (HELO mail-ed1-f51.google.com) (209.85.208.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 08 Feb 2020 22:34:01 +0000 Received: by mail-ed1-f51.google.com with SMTP id cy15so3959210edb.4 for ; Sat, 08 Feb 2020 14:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=zmWIAXiHnNZfPl1h3DxrV39rkS9i+uiGHTAGjT5LB+Y=; b=SJMGiys3sNZ9h5ieROXPEFPjpNogs16InoFv4Nrkm14Bm0HmOQ3CeMfIrOQZs+sDzH ILI5Qja7gpuFqldvL3a8c9esawr1d/JOxjmmSFhEsxD9sV2R8kKUERHdMRGIMNA4GNYr BjHx9E7wTu21w15I1KU2/qcUymtTS9HbrxFDDlHfxEOmwxSj5lDOi0bLjohh9MkBMttS LqNgZ6S+lP/G6Rk6QeTa/So9aQYFGDzCmwcDCnl2ik8ujUnx9mJ6ODlI1Ea1XvXfChyb Wyhqpb7ca+1ktJP1n4/j2U5q+qPSY/huCzCM+wJcTPjqrRjR4QDKFdBEiN3pNhbIgTl1 6zyg== MIME-Version: 1.0 From: Keith Thompson Date: Sat, 08 Feb 2020 22:34:00 -0000 Message-ID: Subject: Library man pages don't mention "-D_GNU_SOURCE" (newlib) To: cygwin@cygwin.com Cc: Keith Thompson Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2020-02/txt/msg00069.txt.bz2 The exp10 function is a GNU extension, as the man page acknowledges. The exp10(3) man page (available if you install the "cygwin-doc" package) doesn't mention that you need to compile with "-D_GNU_SOURCE" to use it. It seems to be inordinately difficult to find this information. The corresponding GNU man page, for example exp10(3) on Ubuntu, says: SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include I suggest adding similar wording to the Cygwin/newlib man pages for functions that require it. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple