mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	Kernel: Move File.{cpp,h} into FileSystem/
Also tweak the kernel's Makefile to use -nostdinc and -nostdinc++. This prevents us from picking up random headers from ../Root, which may include older versions of kernel headers. Since we still need <initializer_list> for Vector, we specifically include the necessary GCC path. This is a bit hackish but it works for now.
This commit is contained in:
		
							parent
							
								
									6c87d3afa9
								
							
						
					
					
						commit
						f4cec2f110
					
				
					 11 changed files with 13 additions and 11 deletions
				
			
		
							
								
								
									
										30
									
								
								Kernel/FileSystem/File.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								Kernel/FileSystem/File.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| #include <Kernel/FileSystem/File.h> | ||||
| #include <Kernel/FileSystem/FileDescription.h> | ||||
| 
 | ||||
| File::File() | ||||
| { | ||||
| } | ||||
| 
 | ||||
| File::~File() | ||||
| { | ||||
| } | ||||
| 
 | ||||
| KResultOr<NonnullRefPtr<FileDescription>> File::open(int options) | ||||
| { | ||||
|     UNUSED_PARAM(options); | ||||
|     return FileDescription::create(this); | ||||
| } | ||||
| 
 | ||||
| void File::close() | ||||
| { | ||||
| } | ||||
| 
 | ||||
| int File::ioctl(FileDescription&, unsigned, unsigned) | ||||
| { | ||||
|     return -ENOTTY; | ||||
| } | ||||
| 
 | ||||
| KResultOr<Region*> File::mmap(Process&, FileDescription&, VirtualAddress, size_t, size_t, int) | ||||
| { | ||||
|     return KResult(-ENODEV); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling