mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-31 22:10:34 +03:00 
			
		
		
		
	So far accept4 was only supported on archs using socketcall for x86. This patch adds support for the remaining archs.
		
			
				
	
	
		
			15 lines
		
	
	
		
			331 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			331 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| #include <kernel-features.h>
 | |
| #include <sys/syscall.h>
 | |
| #if !defined __NR_accept4 && defined __NR_socketcall
 | |
| # define socket	accept4
 | |
| # ifdef __ASSUME_ACCEPT4
 | |
| #  define __socket accept4
 | |
| # else
 | |
| #  define __socket __internal_accept4
 | |
| # endif
 | |
| # define NARGS 4
 | |
| # define NEED_CANCELLATION
 | |
| # define NO_WEAK_ALIAS
 | |
| # include <socket.S>
 | |
| #endif
 |