mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:42:43 +00:00 
			
		
		
		
	 ac7a60225e
			
		
	
	
		ac7a60225e
		
	
	
	
	
		
			
			(Don't) use this to implement short-form output in ls. I'm too tired to make a nice column formatting algorithm. I just wanted something concise when I type "ls".
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			214 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			214 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <sys/cdefs.h>
 | |
| #include <sys/ioctl_numbers.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| struct winsize {
 | |
|     unsigned short ws_row;
 | |
|     unsigned short ws_col;
 | |
| };
 | |
| 
 | |
| int ioctl(int fd, unsigned request, ...);
 | |
| 
 | |
| __END_DECLS
 |