From patchwork Wed Feb 28 08:45:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1905613 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" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=MlHAdxaa; 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 4Tl7Gz2Nlxz23qW for ; Wed, 28 Feb 2024 19:45:45 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id F00503530769; Wed, 28 Feb 2024 09:45:29 +0100 (CET) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=MlHAdxaa; dkim-atps=neutral Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by helium.openadk.org (Postfix) with ESMTPS id E75CB353075D for ; Wed, 28 Feb 2024 09:45:22 +0100 (CET) Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d230b90040so12350601fa.0 for ; Wed, 28 Feb 2024 00:45:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709109921; x=1709714721; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PcEtWOhQTtJCqkpSDk1ZnCpivx0H1TywJJZGbN1kJuo=; b=MlHAdxaac+l/Tt/0sO7BmwZJsftWVlDGcGsWD2LdM8D1C2raajl6l/3xUGgCvvQ+mZ yr/fVU90Tf5nUkKG3HBFhFT6EAa4F51Of04jSshjuWQfzAuSaVLZLAioVURdDzIOL+PH PIdZrg1aadOOF6F/ZIMq6aCm8iSlia4M4PfvefvHWX+TanL9WiRMhDwNHjfoEimfTRaH u7oeaLpsadvfK82RVAO4Xt0UdKCzddiDylHzNlnKP2iUFypY9NN3FsqVEqe+lDFyNIVB UiS9ik1e/CooFhrxFyroVp5rZ7/n0A4UaIb3t+FuM+ZFB3QHKEIUBjF/dOWYhf/oheP8 XRNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709109921; x=1709714721; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PcEtWOhQTtJCqkpSDk1ZnCpivx0H1TywJJZGbN1kJuo=; b=Zd5yG0urk5tnh7on07mGQq6X/l5fQmlP/4Ir0ABseUX2Ku53Aiy5rTjt1llIMCdngR QzDQFIhqLXJ32007+1i8zkvKEf8QTfE0AEzRUojJ5celbOja+t/UMDfO5tZEp/o4VNNz QxchePndumX37Z00CNRGKQ/Qioo4haHBnzHeQXRNjkkdRZbfeCroaabsdOad/lxZtF49 lSZsh/tv4o8GkHw3lQulso8+7aDy7EtLPLh69P9QJtHTQYfiDPV1tg0Of7rJfv+wKCgw B4+HXQsroeziyqpxxPsD1AjeGHoVbXFebRTpJBwB5zF/oStl+Bwwa+/8e6VBnOcfW4bj zNYA== X-Gm-Message-State: AOJu0Yxy9LQRfQAoIiNsvI/u+UnQfLhTbY82bfavUOzzYYHjH3n3gAaZ QhnSBNDt8NARDj0wiMz1HkSyzmLgGlVNlpIngT2O8opDzbfup/BNrZUYstGQ X-Google-Smtp-Source: AGHT+IE6ri4AtD0/+OTfhtNNC+x61fGaoZ9fVWDP36O2exuAFkZjQGiD/S41yK0dt8SwABv5CM3hug== X-Received: by 2002:a2e:8895:0:b0:2d2:bb5f:cf07 with SMTP id k21-20020a2e8895000000b002d2bb5fcf07mr977546lji.3.1709109921109; Wed, 28 Feb 2024 00:45:21 -0800 (PST) Received: from localhost.localdomain ([2a00:1370:817a:d2b8:9296:d6ce:150d:51eb]) by smtp.gmail.com with ESMTPSA id v17-20020a2e87d1000000b002d2c0d2df05sm176544ljj.48.2024.02.28.00.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:45:20 -0800 (PST) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Wed, 28 Feb 2024 11:45:08 +0300 Message-ID: <20240228084509.2212329-2-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240228084509.2212329-1-dm.chestnykh@gmail.com> References: <20240228084509.2212329-1-dm.chestnykh@gmail.com> MIME-Version: 1.0 Message-ID-Hash: MYNSQON2VY466UOFKMTXDE2SBIXCI4IU X-Message-ID-Hash: MYNSQON2VY466UOFKMTXDE2SBIXCI4IU X-MailFrom: dm.chestnykh@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Dmitry Chestnykh X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH 2/3] libc: always redirect *stat() family to statx() with time64 enabled. List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Dmitry Chestnykh --- libc/sysdeps/linux/common/fstat64.c | 2 +- libc/sysdeps/linux/common/fstatat64.c | 4 ++-- libc/sysdeps/linux/common/lstat64.c | 2 +- libc/sysdeps/linux/common/stat64.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libc/sysdeps/linux/common/fstat64.c b/libc/sysdeps/linux/common/fstat64.c index 20a9acf01..359c22af6 100644 --- a/libc/sysdeps/linux/common/fstat64.c +++ b/libc/sysdeps/linux/common/fstat64.c @@ -9,7 +9,7 @@ #include <_lfs_64.h> #include -#ifdef __NR_fstat64 +#if defined(__NR_fstat64) && !defined(__UCLIBC_USE_TIME64__) # include # include # include "xstatconv.h" diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c index fdd17a0b7..16dbf9215 100644 --- a/libc/sysdeps/linux/common/fstatat64.c +++ b/libc/sysdeps/linux/common/fstatat64.c @@ -23,7 +23,7 @@ # define __NR_fstatat64 __NR_newfstatat #endif -#ifdef __NR_fstatat64 +#if defined(__NR_fstatat64) && !defined(__UCLIBC_USE_TIME64__) # include # include "xstatconv.h" int fstatat64(int fd, const char *file, struct stat64 *buf, int flag) @@ -57,7 +57,7 @@ int fstatat64(int fd, const char *file, struct stat64 *buf, int flag) STATX_BASIC_STATS, &tmp); if (r == 0) - __cp_stat64_statx ((struct stat *)buf, &tmp); + __cp_stat64_statx ((struct stat64 *)buf, &tmp); return r; } diff --git a/libc/sysdeps/linux/common/lstat64.c b/libc/sysdeps/linux/common/lstat64.c index 61892994e..efc5b1b7f 100644 --- a/libc/sysdeps/linux/common/lstat64.c +++ b/libc/sysdeps/linux/common/lstat64.c @@ -11,7 +11,7 @@ #include #include -#if defined __NR_fstatat64 && !defined __NR_lstat +#if defined __NR_fstatat64 && !defined __NR_lstat && !defined(__UCLIBC_USE_TIME64__) # include int lstat64(const char *file_name, struct stat64 *buf) diff --git a/libc/sysdeps/linux/common/stat64.c b/libc/sysdeps/linux/common/stat64.c index fdd2c49a9..0875ba39d 100644 --- a/libc/sysdeps/linux/common/stat64.c +++ b/libc/sysdeps/linux/common/stat64.c @@ -10,7 +10,7 @@ #include #include -#if defined __NR_fstatat64 && !defined __NR_stat64 +#if defined __NR_fstatat64 && !defined __NR_stat64 && !defined(__UCLIBC_USE_TIME64__) #include #include