mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			367 B
		
	
	
	
		
			Awk
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			367 B
		
	
	
	
		
			Awk
		
	
	
	
	
	
BEGIN { special = 0 }
 | 
						|
 | 
						|
/ERRNOS/ { nerrnos = split(errnos, errs)
 | 
						|
	     for (i = 1; i <= nerrnos; ++i)
 | 
						|
	       # Some systems define errno codes inside undefined #ifdefs,
 | 
						|
	       # and then never actually use them.
 | 
						|
	       printf "#ifdef %s\n  DO(\"%s\", %s);\n#endif\n", \
 | 
						|
		 errs[i], errs[i], errs[i]
 | 
						|
	     special = 1 }
 | 
						|
 | 
						|
 | 
						|
{ if (special == 0) print $0; special = 0 }
 |