* include/cygwin/stat.h (S_TYPEISMQ): Define.

(S_TYPEISSEM): Dttio.
	(S_TYPEISSHM): Ditto.
This commit is contained in:
Corinna Vinschen 2007-03-06 14:56:44 +00:00
parent 70de8290c8
commit 74652ce13e
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-03-06 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/stat.h (S_TYPEISMQ): Define.
(S_TYPEISSEM): Dttio.
(S_TYPEISSHM): Ditto.
2007-03-06 Corinna Vinschen <corinna@vinschen.de> 2007-03-06 Corinna Vinschen <corinna@vinschen.de>
* fhandler_mailslot.cc (fhandler_mailslot::fstat): Set new stat member * fhandler_mailslot.cc (fhandler_mailslot::fstat): Set new stat member

View File

@ -88,6 +88,13 @@ struct stat
#define st_birthtime st_birthtim.tv_sec #define st_birthtime st_birthtim.tv_sec
#endif #endif
/* POSIX IPC objects are not implemented as distinct file types, so the
below macros have to return 0. The expression is supposed to catch
illegal usage with non-stat parameters. */
#define S_TYPEISMQ(buf) ((buf)->st_mode,0)
#define S_TYPEISSEM(buf) ((buf)->st_mode,0)
#define S_TYPEISSHM(buf) ((buf)->st_mode,0)
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif