mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	SPDX tags make the licensing information easy to understand and clear, and they are machine parseable. See https://spdx.dev for more information.
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			632 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			632 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* PipeWire */
 | 
						|
/* SPDX-FileCopyrightText: Copyright © 2021 Red Hat, Inc. */
 | 
						|
/* SPDX-License-Identifier: MIT */
 | 
						|
 | 
						|
#include "config.h"
 | 
						|
 | 
						|
#ifndef HAVE_SIGABBREV_NP
 | 
						|
#include <stddef.h>
 | 
						|
#include <signal.h>
 | 
						|
 | 
						|
/* glibc >= 2.32 */
 | 
						|
static inline const char *sigabbrev_np(int sig)
 | 
						|
{
 | 
						|
#define SIGABBREV(a_) case SIG##a_: return #a_
 | 
						|
	switch(sig) {
 | 
						|
	SIGABBREV(INT);
 | 
						|
	SIGABBREV(ABRT);
 | 
						|
	SIGABBREV(BUS);
 | 
						|
	SIGABBREV(SEGV);
 | 
						|
	SIGABBREV(ALRM);
 | 
						|
	SIGABBREV(CHLD);
 | 
						|
	SIGABBREV(HUP);
 | 
						|
	SIGABBREV(PIPE);
 | 
						|
	SIGABBREV(CONT);
 | 
						|
	SIGABBREV(STOP);
 | 
						|
	SIGABBREV(ILL);
 | 
						|
	SIGABBREV(KILL);
 | 
						|
	SIGABBREV(TERM);
 | 
						|
	}
 | 
						|
#undef SIGABBREV
 | 
						|
 | 
						|
	return NULL;
 | 
						|
}
 | 
						|
 | 
						|
#endif /* HAVE_SIGABBREV_NP */
 |