mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:02:44 +00:00 
			
		
		
		
	Add support for removing directories.
It's really only supported in Ext2FS since SynthFS doesn't really want you mucking around with its files. This is pretty neat though :^) I ran into some trouble with HashMap while working on this but opted to work around it and leave that for a separate investigation.
This commit is contained in:
		
							parent
							
								
									031c62a21e
								
							
						
					
					
						commit
						c95228b128
					
				
					 19 changed files with 185 additions and 40 deletions
				
			
		|  | @ -2101,6 +2101,16 @@ int Process::sys$unlink(const char* pathname) | |||
|     return 0; | ||||
| } | ||||
| 
 | ||||
| int Process::sys$rmdir(const char* pathname) | ||||
| { | ||||
|     if (!validate_read_str(pathname)) | ||||
|         return -EFAULT; | ||||
|     int error; | ||||
|     if (!VFS::the().rmdir(String(pathname), *cwd_inode(), error)) | ||||
|         return error; | ||||
|     return 0; | ||||
| } | ||||
| 
 | ||||
| int Process::sys$read_tsc(dword* lsw, dword* msw) | ||||
| { | ||||
|     if (!validate_write_typed(lsw)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling