From 6ea45f250c195daa9bd506a5305feff48fd67ab9 Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Sat, 24 Oct 2009 21:09:32 +0300 Subject: [PATCH] mqueues: Implement S_TYPEISMQ() macro. Since Issue 6 of POSIX standard S_TYPEISMQ(), S_TYPEISSEM() and S_TYPEISSHM() macros are unconditionally mandated. Here we add support for the message queues only. --- sys/sys/stat.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/sys/stat.h b/sys/sys/stat.h index f0377e212c..39c2d5062c 100644 --- a/sys/sys/stat.h +++ b/sys/sys/stat.h @@ -156,6 +156,14 @@ struct stat { #define S_ISWHT(m) (((m) & 0170000) == 0160000) /* whiteout */ #endif +/* + * The value of `buf' is a pointer to a `stat' data structure. Since we don't + * implement message queues as distinct file types, the following macro + * evaluates to zero. + * XXX: What about semaphores and shared memory objects ? + */ +#define S_TYPEISMQ(buf) (0) /* message queue */ + #ifndef _POSIX_SOURCE #define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */ /* 7777 */ -- 2.41.0