mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	Kernel: Handle fstat() on sockets
This commit is contained in:
		
							parent
							
								
									b64cee4589
								
							
						
					
					
						commit
						8aef0a0755
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -54,6 +54,11 @@ KResult FileDescription::fstat(stat& buffer) | |||
|         buffer.st_mode = 001000; | ||||
|         return KSuccess; | ||||
|     } | ||||
|     if (is_socket()) { | ||||
|         memset(&buffer, 0, sizeof(buffer)); | ||||
|         buffer.st_mode = 0140000; | ||||
|         return KSuccess; | ||||
|     } | ||||
| 
 | ||||
|     if (!m_inode) | ||||
|         return KResult(-EBADF); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sergey Bugaev
						Sergey Bugaev