From patchwork Wed May 20 15:20:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 6830 Received: (qmail 46665 invoked by alias); 20 May 2015 15:21:00 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 46430 invoked by uid 89); 20 May 2015 15:20:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Message-ID: <555CA657.2050300@arm.com> Date: Wed, 20 May 2015 16:20:55 +0100 From: Szabolcs Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: GNU C Library CC: Marcus Shawcroft , Ramana Radhakrishnan Subject: [PATCH][BZ 18234] struct stat is not posix conform X-MC-Unique: p0VyPDLUQSG0Rg9CqkwfGA-1 the generic definition of struct stat on linux miss the st_atim, st_mtim and st_ctim members when _POSIX_C_SOURCE is defined (affects at least aarch64 and arm). i did not see regressions on aarch64. 2015-05-20 Szabolcs Nagy [BZ #18234] * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat): Make st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8. diff --git a/sysdeps/unix/sysv/linux/generic/bits/stat.h b/sysdeps/unix/sysv/linux/generic/bits/stat.h index 42cb198..82e6b1d 100644 --- a/sysdeps/unix/sysv/linux/generic/bits/stat.h +++ b/sysdeps/unix/sysv/linux/generic/bits/stat.h @@ -66,7 +66,7 @@ struct stat __blksize_t st_blksize; /* Optimal block size for I/O. */ int __pad2; __field64(__blkcnt_t, __blkcnt64_t, st_blocks); /* 512-byte blocks */ -#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