mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-29 15:28:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			327 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			327 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| in="$1"
 | |
| out="$2"
 | |
| 
 | |
| grep '^[0-9]' "$in" | sort -n | (
 | |
|     while read nr abi name entry compat; do
 | |
| 	abi=`echo "$abi" | tr '[a-z]' '[A-Z]'`
 | |
| 	if [ -n "$compat" ]; then
 | |
| 	    echo "__SYSCALL_${abi}($nr, $entry, $compat)"
 | |
| 	elif [ -n "$entry" ]; then
 | |
| 	    echo "__SYSCALL_${abi}($nr, $entry, $entry)"
 | |
| 	fi
 | |
|     done
 | |
| ) > "$out"
 | 
