This adds support for building on Plan 9 x86-32. The compat/plan9 directory contains these items: - replacements for the 'head' and 'printf' shell commands - wrapper for main() to disable FPU exceptions Larger required changes to the system are described in the documentation. Signed-off-by: Mans Rullgard <mans@mansr.com>
		
			
				
	
	
		
			11 lines
		
	
	
		
			118 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			118 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| n=10
 | |
| 
 | |
| case "$1" in
 | |
|     -n)  n=$2;      shift 2 ;;
 | |
|     -n*) n=${1#-n}; shift   ;;
 | |
| esac
 | |
| 
 | |
| exec sed ${n}q "$@"
 |