summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-06-04 02:23:57 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-06-04 02:23:57 +0000
commit40fb3cd661f5df19d037921819389f690972e60d (patch)
treecbe70704e05c7d6756e10da0013000957a2d04f3 /sys
parentdf90c0e9f49086358b666ad7758b37e842661635 (diff)
Since we now have shm_{open,unlink}(), add the S_TYPEIS{MQ,SEM,SHM}()
macros that are mandated by POSIX ok matthew@ tedu@
Diffstat (limited to 'sys')
-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 */