mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-30 23:52:43 +00:00 
			
		
		
		
	 39a77559f1
			
		
	
	
		39a77559f1
		
	
	
	
	
		
			
			FIONREAD gets the number of bytes availible to read from a file descriptor without blocking. I only implemented it for regular files and sockets
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			256 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			256 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <sys/cdefs.h>
 | |
| #include <sys/ioctl_numbers.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| int ioctl(int fd, unsigned request, ...);
 | |
| 
 | |
| __END_DECLS
 |