[PATCH] linux/mips: handle wait status 0x7f specially for WIFSIGNALED and WIFSTOPPED
Joseph Myers
josmyers@redhat.com
Thu Feb 12 17:03:45 GMT 2026
On Thu, 12 Feb 2026, Xi Ruoyao wrote:
> +/* Nonzero if STATUS indicates termination by a signal. */
> +static __inline int
> +__WIFSIGNALED (int status)
> +{
> + return ((signed char) ((status & 0x7f) + 1) >> 1) > 0 || status == 0x7f;
> +}
> +
> +/* Nonzero if STATUS indicates the child is stopped. */
> +static __inline int
> +__WIFSTOPPED (int status)
The identifier "status" is in the user's namespace.
--
Joseph S. Myers
josmyers@redhat.com
More information about the Libc-alpha
mailing list