diff --git a/include/linux/signal.h b/include/linux/signal.h index 8037b503ce91dcd821a9f1462538179b74702f8b..87abf0c29ed7b80f445c69275eb28dedc5cda4ab 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h @@ -16,6 +16,11 @@ static inline void copy_siginfo(struct siginfo *to, const struct siginfo *from) memcpy(to, from, sizeof(*to)); } +static inline void clear_siginfo(struct siginfo *info) +{ + memset(info, 0, sizeof(*info)); +} + int copy_siginfo_to_user(struct siginfo __user *to, const struct siginfo *from); enum siginfo_layout {