From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 294D5383B781; Mon, 25 Jul 2022 14:07:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 294D5383B781 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] struct stat is not posix conformant on microblaze with __USE_FILE_OFFSET64 X-Act-Checkin: glibc X-Git-Author: Arnout Vandecappelle (Essensium/Mind) X-Git-Refname: refs/heads/master X-Git-Oldrev: 0c5605989f72457b50e4eccad3e99a28929d89ba X-Git-Newrev: 794c27446fd735526d9d782478edd1141b10e3ab Message-Id: <20220725140720.294D5383B781@sourceware.org> Date: Mon, 25 Jul 2022 14:07:20 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2022 14:07:20 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=794c27446fd735526d9d782478edd1141b10e3ab commit 794c27446fd735526d9d782478edd1141b10e3ab Author: Arnout Vandecappelle (Essensium/Mind) Date: Mon Jul 25 11:25:15 2022 +0200 struct stat is not posix conformant on microblaze with __USE_FILE_OFFSET64 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. Diff: --- 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