]> sourceware.org Git - newlib-cygwin.git/commitdiff
* include/cygwin/stat.h (S_TYPEISMQ): Define.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 6 Mar 2007 14:56:44 +0000 (14:56 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 6 Mar 2007 14:56:44 +0000 (14:56 +0000)
(S_TYPEISSEM): Dttio.
(S_TYPEISSHM): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/stat.h

index 3072289b181ee2d82840d477c107dd4cce2dcc2b..ac3f4008da64f8a4d23dbbc4d6b6f361e7a59679 100644 (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>
 
        * fhandler_mailslot.cc (fhandler_mailslot::fstat): Set new stat member
index 3fb011b056d64ca4c372700c201020914e0cffc2..31ddbf91d1fe92bc079d02c70ba09dcfa0f06ced 100644 (file)
@@ -88,6 +88,13 @@ struct stat
 #define st_birthtime st_birthtim.tv_sec
 #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
 }
 #endif
This page took 0.032176 seconds and 5 git commands to generate.