From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id 013F83858D3C for ; Mon, 25 Sep 2023 18:40:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 013F83858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38PBFZ3K024820 for ; Mon, 25 Sep 2023 20:40:00 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=selector1; bh=WUOOWR7SZ7RIa/B0zRMl CkgwnvkoKRXP1P0P8elw/Ak=; b=s3Pu8I9UjKKuOiqfgG/cvjqUnAOWzkIPJKax aIz9QSp8CCGn6XcQ/cQDcmd1b0acO/pu909L64a+zAA8JVwPrsoqo0M3cR2rMMoU CcR/mCLEO8AElMWcX8JLsacQXCzKaKM2YlLJxCsA5UyLaLno0HWO8yB+i26tddmP 8ofG0oUps4BJRblTniXbsKqQf5loX/s+9kEUa8qZI3+DGgkq72OqT5rZgEU6MjUZ cmQi72RcyvtyISDmlYZ9fw7NF8C3QJo5Pue82Gu8nGXF161uU+cAjkgAKKaAitcT jZKjKoywKUaUQmhOk3Poyms8wYSjPAySOQTcsjUxEB6ue3yKNA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3taayhet0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 25 Sep 2023 20:40:00 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1CD0610005C for ; Mon, 25 Sep 2023 20:39:59 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DD4D126A9C5 for ; Mon, 25 Sep 2023 20:39:59 +0200 (CEST) Received: from jkgcxl0004.jkg.st.com (10.74.22.255) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 25 Sep 2023 20:39:59 +0200 From: =?UTF-8?q?Torbj=C3=B6rn=20SVENSSON?= To: CC: =?UTF-8?q?Torbj=C3=B6rn=20SVENSSON?= Subject: [PATCH] newlib: Add missing prototype for _getentropy Date: Mon, 25 Sep 2023 20:37:45 +0200 Message-ID: <20230925183744.848448-1-torbjorn.svensson@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.74.22.255] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-25_16,2023-09-25_01,2023-05-22_02 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Ok for master? --- Fixes compile warnings like: .../newlib/libc/reent/getentropyr.c: In function '_getentropy_r': .../newlib/libc/reent/getentropyr.c:48:14: warning: implicit declaration of function '_getentropy'; did you mean 'getentropy'? [-Wimplicit-function-declaration] 48 | if ((ret = _getentropy (buf, buflen)) == -1 && errno != 0) | ^~~~~~~~~~~ | getentropy Contributed by STMicroelectronics Signed-off-by: Torbjörn SVENSSON --- newlib/libc/include/sys/unistd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 807407700..25532251c 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -262,6 +262,7 @@ void * _sbrk (ptrdiff_t __incr); int _unlink (const char *__path); _READ_WRITE_RETURN_TYPE _write (int __fd, const void *__buf, size_t __nbyte); int _execve (const char *__path, char * const __argv[], char * const __envp[]); +int _getentropy (void *, size_t); #endif #if !defined(__INSIDE_CYGWIN__) -- 2.25.1