diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-03-06 14:56:44 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-03-06 14:56:44 +0000 |
commit | 74652ce13eb9f1301a3515384af272da6dd76633 (patch) | |
tree | 661181dcf7cbbb13f67f094b10f7232598fd5b5e | |
parent | 70de8290c83f19354784c85a0ed97c825a741efe (diff) | |
download | newlib-74652ce13eb9f1301a3515384af272da6dd76633.zip newlib-74652ce13eb9f1301a3515384af272da6dd76633.tar.gz newlib-74652ce13eb9f1301a3515384af272da6dd76633.tar.bz2 |
* include/cygwin/stat.h (S_TYPEISMQ): Define.
(S_TYPEISSEM): Dttio.
(S_TYPEISSHM): Ditto.
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/stat.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3072289..ac3f400 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 3fb011b..31ddbf9 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 |