From 40fb3cd661f5df19d037921819389f690972e60d Mon Sep 17 00:00:00 2001 From: Philip Guenther <guenther@cvs.openbsd.org> Date: Tue, 4 Jun 2013 02:23:57 +0000 Subject: Since we now have shm_{open,unlink}(), add the S_TYPEIS{MQ,SEM,SHM}() macros that are mandated by POSIX ok matthew@ tedu@ --- sys/sys/stat.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys') 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 */ -- cgit v1.2.3