All checks were successful
		
		
	
	Test / Create distribution (push) Successful in 32s
				
			Test / Sandbox (push) Successful in 1m52s
				
			Test / Sandbox (race detector) (push) Successful in 3m14s
				
			Test / Planterette (push) Successful in 3m36s
				
			Test / Hakurei (race detector) (push) Successful in 4m31s
				
			Test / Hakurei (push) Successful in 2m3s
				
			Test / Flake checks (push) Successful in 1m13s
				
			This allows slightly easier use of the vanity url. This also provides some disambiguation between low level containers and hakurei app containers. Signed-off-by: Ophestra <cat@gensokyo.uk>
		
			
				
	
	
		
			29 lines
		
	
	
		
			584 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			584 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package seccomp
 | |
| 
 | |
| import "iter"
 | |
| 
 | |
| // Syscalls returns an iterator over all wired syscalls.
 | |
| func Syscalls() iter.Seq2[string, int] {
 | |
| 	return func(yield func(string, int) bool) {
 | |
| 		for name, num := range syscallNum {
 | |
| 			if !yield(name, num) {
 | |
| 				return
 | |
| 			}
 | |
| 		}
 | |
| 		for name, num := range syscallNumExtra {
 | |
| 			if !yield(name, num) {
 | |
| 				return
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // SyscallResolveName resolves a syscall number from its string representation.
 | |
| func SyscallResolveName(name string) (num int, ok bool) {
 | |
| 	if num, ok = syscallNum[name]; ok {
 | |
| 		return
 | |
| 	}
 | |
| 	num, ok = syscallNumExtra[name]
 | |
| 	return
 | |
| }
 |