From 0512608dbc4ee38b871f686eb7435b4445d5ed9f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 26 Feb 2010 05:43:50 +0000 Subject: [PATCH] * include/cygwin/signal.h: Define SIGPWR as synonym for SIGLOST. * strsig.cc: Ditto. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/include/cygwin/signal.h | 1 + winsup/cygwin/include/cygwin/version.h | 3 ++- winsup/cygwin/strsig.cc | 3 ++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a7c9e5027..9943b7993 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2010-02-25 Yaakov Selkowitz + + * include/cygwin/signal.h: Define SIGPWR as synonym for SIGLOST. + * strsig.cc: Ditto. + * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR. + 2010-02-25 Corinna Vinschen * lc_era.h (lc_era_t): Fix apparent glibc bug in ja_JP era definition. diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h index a3cc90b22..25d501d1d 100644 --- a/winsup/cygwin/include/cygwin/signal.h +++ b/winsup/cygwin/include/cygwin/signal.h @@ -250,6 +250,7 @@ struct sigaction #define SIGPROF 27 /* profiling time alarm */ #define SIGWINCH 28 /* window changed */ #define SIGLOST 29 /* resource lost (eg, record-lock lost) */ +#define SIGPWR SIGLOST /* power failure */ #define SIGUSR1 30 /* user defined signal 1 */ #define SIGUSR2 31 /* user defined signal 2 */ diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 44d660430..7aeee3147 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -376,12 +376,13 @@ details. */ 220: Export accept4, SOCK_CLOEXEC, SOCK_NONBLOCK. 221: Export strfmon. 222: CW_INT_SETLOCALE added. + 223: SIGPWR added. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 222 +#define CYGWIN_VERSION_API_MINOR 223 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/strsig.cc b/winsup/cygwin/strsig.cc index 8bc8c1c8c..1ca9af1f6 100644 --- a/winsup/cygwin/strsig.cc +++ b/winsup/cygwin/strsig.cc @@ -49,7 +49,8 @@ struct sigdesc _s(SIGVTALRM, "Virtual timer expired"), /* 26 */ \ _s(SIGPROF, "Profiling timer expired"), /* 27 */ \ _s(SIGWINCH, "Window changed"), /* 28 */ \ - _s(SIGLOST, "Resource lost"), /* 29 */ \ + _s2(SIGPWR, "Power failure", /* 29 */ \ + SIGLOST, "Resource lost"), \ _s(SIGUSR1, "User defined signal 1"), /* 30 */ \ _s(SIGUSR2, "User defined signal 2"), /* 31 */ \ _s2(SIGRTMIN, "Real-time signal 0", /* 32 */ \