aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/signal.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-01-27 17:55:01 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-01-27 17:55:01 +0000
commitaa949be551c5d6d339784c938bfa39bc4eb39aba (patch)
tree48ad17d8a902fe3a7db457f0f1c2e91606416caa /sys/sys/signal.h
parent7900c60a92da9f0c91d86d68196c3b8f8c5fc849 (diff)
downloadsrc-aa949be551c5d6d339784c938bfa39bc4eb39aba.tar.gz
src-aa949be551c5d6d339784c938bfa39bc4eb39aba.zip
Convert ss_sp in stack_t and sigstack to void *.
POSIX requires these members to be of type void * rather than the char * inherited from 4BSD. NetBSD and OpenBSD both changed their fields to void * back in 1998. No new build failures were reported via an exp-run. PR: 206503 (exp-run) Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5092
Notes
Notes: svn path=/head/; revision=294930
Diffstat (limited to 'sys/sys/signal.h')
-rw-r--r--sys/sys/signal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 81e06a85d93c..259c39aed4f9 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -362,7 +362,7 @@ typedef struct sigaltstack {
#else
typedef struct {
#endif
- char *ss_sp; /* signal stack base */
+ void *ss_sp; /* signal stack base */
__size_t ss_size; /* signal stack length */
int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */
} stack_t;
@@ -406,8 +406,7 @@ struct osigcontext {
* Structure used in sigstack call.
*/
struct sigstack {
- /* XXX ss_sp's type should be `void *'. */
- char *ss_sp; /* signal stack pointer */
+ void *ss_sp; /* signal stack pointer */
int ss_onstack; /* current status */
};
#endif