From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33638 invoked by alias); 26 Jun 2017 18:45:48 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 32471 invoked by uid 89); 26 Jun 2017 18:45:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=fantastic, her, she X-HELO: mail-it0-f48.google.com Received: from mail-it0-f48.google.com (HELO mail-it0-f48.google.com) (209.85.214.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Jun 2017 18:45:21 +0000 Received: by mail-it0-f48.google.com with SMTP id b205so3657423itg.1 for ; Mon, 26 Jun 2017 11:45:10 -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:from:date:message-id:subject:to; bh=jOlVDrNEDIkoN7WeBL/ORAzk+qNbc1qI9tF1HKmmTdw=; b=cdYUUgDwrRD/y1wxXL7wVSUSf1APARwnPA6NZsfOJrpAXzswhoGEYSsnSvpktRjFvi S7RVBK3hSojhIMNMOAoUcNC4qZ3W6AHkj3ht9i5CDamHVh3tYDDERZSR8pD7X6mVeuwI /yWGku8ATN10183BT1Iw2uJpGyHsGHzSTyAskgYwuRSxArlgCrFjetB1IcyAxw0yV+JQ uaDKziCv2s60bUFPu5ZJK85NL8Cv2w6Kny04XlOUjFBgeoxPBxocPKtcJLJNs/DTBbWc G8lPiC+H8LchK8FlBGCoYryrHVGo1fK34gTv3s/2c9hWPrAchPhkBEcZWH/Rj4xjhtRF 1uvg== X-Gm-Message-State: AKS2vOxcIaGDR10HzSRfYVA/zak26twRiLnZvAzn5hsP26OfYZNYtvTN F59RxlRpyqTwL/a8a7IOVDXqI6D2Yv8vteZpxA== X-Received: by 10.36.150.133 with SMTP id z127mr1545381itd.104.1498502708768; Mon, 26 Jun 2017 11:45:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.10.89 with HTTP; Mon, 26 Jun 2017 11:45:08 -0700 (PDT) From: "Dionna Amalie Glaze via newlib" Reply-To: Dionna Amalie Glaze Date: Mon, 26 Jun 2017 18:45:00 -0000 Message-ID: Subject: New contributor o/ hello, and small diff. To: newlib@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00483.txt.bz2 Hi y'all! Thank you so much for your work on newlib. It's a fantastic platform to work with :) I am looking at getting access to the gethostname symbol in sys/unistd.h outside of __CYGWIN__ or __rtems__. The following platforms by C preprocessor symbol would be a helpful addition: __USE_BSD, __USE_UNIX98, __USE_XOPEN2K In diff form, ==== /home/dionnaglaze/newlib-cygwin/newlib/src/newlib/libc/include/sys/unistd.h ==== 247c247,253 < #if !(defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS)) --- > char * _EXFUN(mktemp, (char *)); > #endif > > #if defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K || \ > ((defined(__CYGWIN__) || defined(__rtems__)) && \ > !(defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || \ > defined (__USE_W32_SOCKETS))) 250,251d255 < #endif < char * _EXFUN(mktemp, (char *)); What is y'all's preferred way to submit such a change? Thanks! -- -Dionna Glaze, PhD (she/her)