OSDN Git Service

* include/cygwin/stat.h (S_TYPEISMQ): Define.
authorcorinna <corinna>
Tue, 6 Mar 2007 14:56:44 +0000 (14:56 +0000)
committercorinna <corinna>
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 3072289..ac3f400 100644 (file)
@@ -1,5 +1,11 @@
 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
        st_birthtim to useful value.
        * fhandler_process.cc (fhandler_process::fstat): Ditto.
index 3fb011b..31ddbf9 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