summaryrefslogtreecommitdiffstats
path: root/sys/sys/stat.h
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2006-08-04 23:47:30 +0000
committerjb <jb@FreeBSD.org>2006-08-04 23:47:30 +0000
commit994d82fb7cb35bd819b2e002a40d281a12621be6 (patch)
tree0e5ee41fa67ac78f6478302786d010d5c546fe74 /sys/sys/stat.h
parent9314783f4bb899beb97fbd82a7c322c7467a9470 (diff)
downloadFreeBSD-src-994d82fb7cb35bd819b2e002a40d281a12621be6.zip
FreeBSD-src-994d82fb7cb35bd819b2e002a40d281a12621be6.tar.gz
Add OpenSolaris compatibility definitions for stat64 and fstat64 which
are only visible if _SOLARIS_C_SOURCE is defined. Note thar FreeBSD stat() and fstat() are 64-bit functions now and Solaris still persists with both 32- and 64-bit versions. When I query this, I am referred to: <http://www.unix.org/version2/whatsnew/lfs20mar.html>. But when you look at the main page of unix.org you will see that the Single Unix Specification <http://www.unix.org/version3/> is the most recent standard they are pushing. And there are no stat64() fstat64() functions defined there. I guess this just goes to prove that there are so many standards, you can take your pick.
Diffstat (limited to 'sys/sys/stat.h')
-rw-r--r--sys/sys/stat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index 10a3739..d3572c3 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -304,6 +304,14 @@ struct nstat {
#endif /* __BSD_VISIBLE */
+/*
+ * Solaris compatibility definitions.
+ */
+#ifdef _SOLARIS_C_SOURCE
+#define stat64 stat
+#define fstat64 fstat
+#endif
+
#ifndef _KERNEL
__BEGIN_DECLS
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud