From patchwork Tue Feb 6 12:10:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 1895671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.a=rsa-sha256 header.s=mail header.b=VX5yTnnk; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TTj374RV0z23gb for ; Tue, 6 Feb 2024 23:18:59 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 006583521105; Tue, 6 Feb 2024 13:18:45 +0100 (CET) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.a=rsa-sha256 header.s=mail header.b=VX5yTnnk; dkim-atps=neutral Received: from aposti.net (aposti.net [89.234.176.197]) by helium.openadk.org (Postfix) with ESMTPS id 7231535206AC for ; Tue, 6 Feb 2024 13:11:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1707221460; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SvcoIYqUr0xXp6S3wHoQHR33udRgyBsqpr6yhi1uGeM=; b=VX5yTnnkaY0Qo+fkBx4bwe1cQ2en7+gqY/8vzeD4ee6HcSIsY50q6cun1KHjhyJ9qfgMlM tT8V0hVH8VqgupAXBkCLiNIWjVTv7D4FaVyYxxd1HdzCkk5KN4+t8dpCPF5m30lSPi8Eyi /1iqHb0HsCmDW/LYPbGKocPnbD6+rqo= From: Paul Cercueil To: devel@uclibc-ng.org Date: Tue, 6 Feb 2024 13:10:53 +0100 Message-ID: <20240206121053.399112-2-paul@crapouillou.net> In-Reply-To: <20240206121053.399112-1-paul@crapouillou.net> References: <20240206121053.399112-1-paul@crapouillou.net> MIME-Version: 1.0 X-MailFrom: paul@crapouillou.net X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: WJ3EX2KAW4XBOXCOBJT7APDQ7MAHTUUF X-Message-ID-Hash: WJ3EX2KAW4XBOXCOBJT7APDQ7MAHTUUF X-Mailman-Approved-At: Tue, 06 Feb 2024 13:18:39 +0100 CC: Paul Cercueil X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH 2/2] sys/stat.h: Make fchmod() available if __USE_XOPEN2K List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The fchmod() function is present in POSIX 2001.12. Signed-off-by: Paul Cercueil --- include/sys/stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sys/stat.h b/include/sys/stat.h index 6b6ff0047..99a6382a0 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -302,7 +302,7 @@ extern int lchmod (const char *__file, __mode_t __mode) #endif /* Set file access permissions of the file FD is open on to MODE. */ -#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED +#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K extern int fchmod (int __fd, __mode_t __mode) __THROW; #endif