Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-03-06 17:56:44 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-03-06 17:56:44 +0300
commit74652ce13eb9f1301a3515384af272da6dd76633 (patch)
tree661181dcf7cbbb13f67f094b10f7232598fd5b5e /winsup
parent70de8290c83f19354784c85a0ed97c825a741efe (diff)
* include/cygwin/stat.h (S_TYPEISMQ): Define.
(S_TYPEISSEM): Dttio. (S_TYPEISSHM): Ditto.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/include/cygwin/stat.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3072289b1..ac3f4008d 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/include/cygwin/stat.h b/winsup/cygwin/include/cygwin/stat.h
index 3fb011b05..31ddbf91d 100644
--- a/winsup/cygwin/include/cygwin/stat.h
+++ b/winsup/cygwin/include/cygwin/stat.h
@@ -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