mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:22:43 +00:00 
			
		
		
		
	 04b9dc2d30
			
		
	
	
		04b9dc2d30
		
	
	
	
	
		
			
			Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			376 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			376 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <Kernel/Syscall.h>
 | |
| #include <errno.h>
 | |
| #include <stdio.h>
 | |
| #include <sys/select.h>
 | |
| 
 | |
| extern "C" {
 | |
| 
 | |
| int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout)
 | |
| {
 | |
|     Syscall::SC_select_params params { nfds, readfds, writefds, exceptfds, timeout };
 | |
|     int rc = syscall(SC_select, ¶ms);
 | |
|     __RETURN_WITH_ERRNO(rc, rc, -1);
 | |
| }
 | |
| }
 |