summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-12-17 19:22:23 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-12-17 19:22:23 +0000
commitf10d3487709cba8fc9c90800b09966a8c86600d4 (patch)
tree109e8f0e0126fb09bc482335316e9a274e859b9d /newlib/libc/include/sys
parent314c2d2fedc5f377c50defafc1e296240f8dbd38 (diff)
downloadcygnal-f10d3487709cba8fc9c90800b09966a8c86600d4.tar.gz
cygnal-f10d3487709cba8fc9c90800b09966a8c86600d4.tar.bz2
cygnal-f10d3487709cba8fc9c90800b09966a8c86600d4.zip
2009-12-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock * libc/include/sys/stat.h: Use struct timespec st_*tim, blksize_t st_blksize, blkcnt_t st_blocks. Add st_*time compatibility macros.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/stat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index 06a71a978..9d8bdfb65 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -32,6 +32,13 @@ 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;
@@ -48,7 +55,15 @@ struct stat
long st_blocks;
long st_spare4[2];
#endif
+#endif
};
+
+#if defined(__rtems__)
+#define st_atime st_atim.tv_sec
+#define st_ctime st_ctim.tv_sec
+#define st_mtime st_mtim.tv_sec
+#endif
+
#endif
#define _IFMT 0170000 /* type of file */