From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59079 invoked by alias); 16 Aug 2019 08:52:59 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 59037 invoked by uid 9078); 16 Aug 2019 08:52:59 -0000 Date: Fri, 16 Aug 2019 08:52:00 -0000 Message-ID: <20190816085259.59035.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] stat.h: use POSIX-required timefields throughout X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 91172ce5913be33ca0ff491dc9fa59d963bec8d2 X-Git-Newrev: 72ff9acad2ab54e80a19ddaec0106065c817e3f6 X-SW-Source: 2019-q3/txt/msg00027.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=72ff9acad2ab54e80a19ddaec0106065c817e3f6 commit 72ff9acad2ab54e80a19ddaec0106065c817e3f6 Author: Corinna Vinschen Date: Fri Aug 16 10:52:17 2019 +0200 stat.h: use POSIX-required timefields throughout ...except in certain SysV R4 cases for backward compat. This is probably not required anymore, but it doesn't hurt to keep it in. Diff: --- newlib/libc/include/sys/stat.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index eee98db..a4aba28 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -34,33 +34,23 @@ struct stat gid_t st_gid; dev_t st_rdev; off_t st_size; -#if defined(__rtems__) - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - blksize_t st_blksize; - blkcnt_t st_blocks; -#else - /* SysV/sco doesn't have the rest... But Solaris, eabi does. */ #if defined(__svr4__) && !defined(__PPC__) && !defined(__sun__) time_t st_atime; time_t st_mtime; time_t st_ctime; #else - time_t st_atime; - long st_spare1; - time_t st_mtime; - long st_spare2; - time_t st_ctime; - long st_spare3; - blksize_t st_blksize; + struct timespec st_atim; + struct timespec st_mtim; + struct timespec st_ctim; + blksize_t st_blksize; blkcnt_t st_blocks; +#if !defined(__rtems__) long st_spare4[2]; #endif #endif }; -#if defined(__rtems__) +#if !(defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)) #define st_atime st_atim.tv_sec #define st_ctime st_ctim.tv_sec #define st_mtime st_mtim.tv_sec