summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-06-04 02:23:56 +0000
committerguenther <guenther@openbsd.org>2013-06-04 02:23:56 +0000
commit396586ed4150c1edb5c77cbeb1d1d697d0d3f076 (patch)
treea172d282f2775c06f6c957695b374a55f9a002b2
parentMove function declaration where they belong. (diff)
downloadwireguard-openbsd-396586ed4150c1edb5c77cbeb1d1d697d0d3f076.tar.xz
wireguard-openbsd-396586ed4150c1edb5c77cbeb1d1d697d0d3f076.zip
Since we now have shm_{open,unlink}(), add the S_TYPEIS{MQ,SEM,SHM}()
macros that are mandated by POSIX ok matthew@ tedu@
-rw-r--r--sys/sys/stat.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index 640e33ef893..8aac32ed145 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stat.h,v 1.21 2012/12/05 23:20:24 deraadt Exp $ */
+/* $OpenBSD: stat.h,v 1.22 2013/06/04 02:23:56 guenther Exp $ */
/* $NetBSD: stat.h,v 1.20 1996/05/16 22:17:49 cgd Exp $ */
/*-
@@ -143,6 +143,13 @@ struct stat {
#define S_ISSOCK(m) ((m & 0170000) == 0140000) /* socket */
#endif
+#if __POSIX_VISIBLE >= 200809
+/* manadated to be present, but permitted to always return zero */
+#define S_TYPEISMQ(m) 0
+#define S_TYPEISSEM(m) 0
+#define S_TYPEISSHM(m) 0
+#endif
+
#if __BSD_VISIBLE
#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 00777 */
/* 07777 */