mirror of https://github.com/containers/podman.git
				
				
				
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			296 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			296 B
		
	
	
	
		
			Go
		
	
	
	
| //go:build dragonfly || freebsd || illumos || linux
 | |
| // +build dragonfly freebsd illumos linux
 | |
| 
 | |
| package socket
 | |
| 
 | |
| import (
 | |
| 	"golang.org/x/sys/unix"
 | |
| )
 | |
| 
 | |
| const sysAccept = "accept4"
 | |
| 
 | |
| // accept wraps accept4(2).
 | |
| func accept(fd, flags int) (int, unix.Sockaddr, error) {
 | |
| 	return unix.Accept4(fd, flags)
 | |
| }
 |