aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/types.h
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2005-03-22 01:19:18 +0000
committerDavid Schultz <das@FreeBSD.org>2005-03-22 01:19:18 +0000
commit3eea66586b6524d6bf76902b9075d6740bb6e7e7 (patch)
tree87aa2b0c0dfa25a01d68ae0f08668be118b8faf9 /sys/sys/types.h
parent3edf7a78b76a275c0212c939687e479f17aa86ab (diff)
downloadsrc-3eea66586b6524d6bf76902b9075d6740bb6e7e7.tar.gz
src-3eea66586b6524d6bf76902b9075d6740bb6e7e7.zip
- Declare mknod in stat.h (in addition to unistd.h), as per XSI.
- Use blksize_t and blkcnt_t in struct stat. - Hide non-standard fields in stat.h when !__BSD_VISIBLE. - Add restrict qualifiers in stat.h.
Notes
Notes: svn path=/head/; revision=143952
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 4910204a5057..27eecc68ad6c 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -117,6 +117,16 @@ typedef char * caddr_t; /* core address */
typedef __const char * c_caddr_t; /* core address, pointer to const */
typedef __volatile char *v_caddr_t; /* core address, pointer to volatile */
+#ifndef _BLKSIZE_T_DECLARED
+typedef __blksize_t blksize_t;
+#define _BLKSIZE_T_DECLARED
+#endif
+
+#ifndef _BLKCNT_T_DECLARED
+typedef __blkcnt_t blkcnt_t;
+#define _BLKCNT_T_DECLARED
+#endif
+
#ifndef _CLOCK_T_DECLARED
typedef __clock_t clock_t;
#define _CLOCK_T_DECLARED