mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	Lots of hacking to make a very simple "ls" utility.
I added a dead-simple malloc that only allows allocations < 4096 bytes. It just forwards the request to mmap() every time. I also added simplified versions of opendir() and readdir().
This commit is contained in:
		
							parent
							
								
									0c5bbac86e
								
							
						
					
					
						commit
						bca4b71bfa
					
				
					 19 changed files with 277 additions and 67 deletions
				
			
		|  | @ -66,6 +66,8 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3) | |||
|         break; | ||||
|     case Syscall::Spawn: | ||||
|         return current->sys$spawn((const char*)arg1); | ||||
|     case Syscall::GetDirEntries: | ||||
|         return current->sys$get_dir_entries((int)arg1, (void*)arg2, (size_t)arg3); | ||||
|     case Syscall::PosixOpen: | ||||
|         //kprintf("syscall: open('%s', %u)\n", arg1, arg2);
 | ||||
|         return current->sys$open((const char*)arg1, (size_t)arg2); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling