diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-04-19 08:02:59 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-04-19 08:02:59 +0000 |
commit | 060e5c9785aa9acc906b9e9124e4a22a03d02d46 (patch) | |
tree | 8bf7ba4d8ec7ff7cb40569b50284641934d5854c /newlib/libc/include/sys/signal.h | |
parent | 6d9b9e6b0c85df441523a183a39da9696d5d8b34 (diff) | |
download | cygnal-060e5c9785aa9acc906b9e9124e4a22a03d02d46.tar.gz cygnal-060e5c9785aa9acc906b9e9124e4a22a03d02d46.tar.bz2 cygnal-060e5c9785aa9acc906b9e9124e4a22a03d02d46.zip |
* libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
per POSIX. Explain in comment.
Diffstat (limited to 'newlib/libc/include/sys/signal.h')
-rw-r--r-- | newlib/libc/include/sys/signal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 8aaf9d584..881df8334 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -76,11 +76,12 @@ typedef struct { * * (1) Routines stored in sa_handler should take a single int as * their argument although the POSIX standard does not require this. + * This is not longer true since at least POSIX.1-2008 * (2) The fields sa_handler and sa_sigaction may overlap, and a conforming * application should not use both simultaneously. */ -typedef void (*_sig_func_ptr)(); +typedef void (*_sig_func_ptr)(int); struct sigaction { int sa_flags; /* Special flags to affect behavior of signal */ |