aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/unistd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index fa7346298c08..2bd85a3708f7 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -489,7 +489,10 @@ int iruserok(unsigned long, int, const char *, const char *);
int iruserok_sa(const void *, int, int, const char *, const char *);
int issetugid(void);
char *mkdtemp(char *);
+#ifndef _MKNOD_DECLARED
int mknod(const char *, mode_t, dev_t);
+#define _MKNOD_DECLARED
+#endif
#ifndef _MKSTEMP_DECLARED
int mkstemp(char *);
#define _MKSTEMP_DECLARED