From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by sourceware.org (Postfix) with ESMTPS id 239AB385AE5E for ; Mon, 25 Jul 2022 14:07:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 239AB385AE5E Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-10cf9f5b500so14859986fac.2 for ; Mon, 25 Jul 2022 07:07:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SSMmOiKCmyRpU9+Rip0BcC8rW56aM2VBtS+3m+xz8eE=; b=MVSlJF2Apcbn8pCC8UoI0ENSmWhJQIpsf6cAprM+DQwaskPuYMzCAA9Plhba2w95qy miztu+MsOVMkDMM/zXYOtKBvckECIUO+TDr7Vk0O/YciKpKDE1YwDP6wz927DCGUT3Pj 8UkSQTLPt1h5sO1VmGsDLyjPty2ePQu+9ec2/ZGGlDduutW57g30uFAxqZUSyhMsFN2x 91F1aizvZvQ1NA0wATGXN3oKawjVqrVMnWQjg4p1nqEGU+hCQLGwUq1z3nj8CjxOijwG qvBbIW16bOxDi9FDM+tdIxCDCVc6ZLTIH63bBYC3welTGZCPbtQ/wdlOvwhgBEUofnGa ip/A== X-Gm-Message-State: AJIora+Nm+0wgAXTCuXlq2AhH+LtLw6zNJGm1hVKiFWYWzblUkP5iUvN mvTLFWwW4ml5qsaOH8jVXZIlLzqhwIhvmw== X-Google-Smtp-Source: AGRyM1tbNGHeNbHKRgYXRbYnR7R3EFkkBBS0YCG9MfRIhrB3BQwFTY5UGp8QpRGBIdLMiV1HdI+/kQ== X-Received: by 2002:a05:6870:d350:b0:fe:1e87:ed13 with SMTP id h16-20020a056870d35000b000fe1e87ed13mr14759240oag.166.1658758063901; Mon, 25 Jul 2022 07:07:43 -0700 (PDT) Received: from mandiga.. ([2804:431:c7cb:8ded:4f4d:8cf0:4bc7:953b]) by smtp.gmail.com with ESMTPSA id w6-20020a056830280600b0061c71777dcfsm4983469otu.75.2022.07.25.07.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 07:07:43 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "Arnout Vandecappelle (Essensium/Mind)" Subject: [COMMITTED] struct stat is not posix conformant on microblaze with __USE_FILE_OFFSET64 Date: Mon, 25 Jul 2022 11:07:38 -0300 Message-Id: <20220725140738.550712-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2022 14:07:47 -0000 From: "Arnout Vandecappelle (Essensium/Mind)" Commit a06b40cdf5ba0d2ab4f9b4c77d21e45ff284fac7 updated stat.h to use __USE_XOPEN2K8 instead of __USE_MISC to add the st_atim, st_mtim and st_ctim members to struct stat. However, for microblaze, there are two definitions of struct stat, depending on the __USE_FILE_OFFSET64 macro. The second one was not updated. Change __USE_MISC to __USE_XOPEN2K8 in the __USE_FILE_OFFSET64 version of struct stat for microblaze. --- sysdeps/unix/sysv/linux/microblaze/bits/struct_stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/microblaze/bits/struct_stat.h b/sysdeps/unix/sysv/linux/microblaze/bits/struct_stat.h index a2787e8834..850697f4fa 100644 --- a/sysdeps/unix/sysv/linux/microblaze/bits/struct_stat.h +++ b/sysdeps/unix/sysv/linux/microblaze/bits/struct_stat.h @@ -89,7 +89,7 @@ struct stat __blksize_t st_blksize; /* Optimal block size for I/O. */ int __pad3; __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */ -# ifdef __USE_MISC +# ifdef __USE_XOPEN2K8 /* Nanosecond resolution timestamps are stored in a format * equivalent to 'struct timespec'. This is the type used * whenever possible but the Unix namespace rules do not allow the -- 2.34.1