Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								7a3ab6c517 
								
							 
						 
						
							
							
								
								Kernel: Make File::write() and File::read() return KResultOr<size_t>  
							
							... 
							
							
							
							Instead of returning a ssize_t where negative values mean error,
we now return KResultOr<size_t> and use the error state to report
errors exclusively. 
							
						 
						
							2020-08-04 18:17:16 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Sergey Bugaev 
								
							 
						 
						
							
							
							
							
								
							
							
								1b4e88fb59 
								
							 
						 
						
							
							
								
								Kernel: Allow File::close() to fail  
							
							... 
							
							
							
							And pass the result through to sys$close() return value.
Fixes https://github.com/SerenityOS/serenity/issues/427  
							
						 
						
							2020-06-02 21:49:47 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								b3736c1b1e 
								
							 
						 
						
							
							
								
								Kernel: Use a FlatPtr for the "argument" to ioctl()  
							
							... 
							
							
							
							Since it's often used to pass pointers, it should really be a FlatPtr. 
							
						 
						
							2020-05-23 15:25:43 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Conrad Pankoff 
								
							 
						 
						
							
							
							
							
								
							
							
								a3edeb5868 
								
							 
						 
						
							
							
								
								Kernel: Add explicit offset parameter to File::read etc  
							
							
							
						 
						
							2020-04-10 11:59:30 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								a356e48150 
								
							 
						 
						
							
							
								
								Kernel: Move all code into the Kernel namespace  
							
							
							
						 
						
							2020-02-16 01:27:42 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								94ca55cefd 
								
							 
						 
						
							
							
								
								Meta: Add license header to source files  
							
							... 
							
							
							
							As suggested by Joshua, this commit adds the 2-clause BSD license as a
comment block to the top of every source file.
For the first pass, I've just added myself for simplicity. I encourage
everyone to add themselves as copyright holders of any file they've
added or modified in some significant way. If I've added myself in
error somewhere, feel free to replace it with the appropriate copyright
holder instead.
Going forward, all new source files should include a license header. 
							
						 
						
							2020-01-18 09:45:54 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								1b2ef8582c 
								
							 
						 
						
							
							
								
								Kernel: Make File's can_read/can_write take a const FileDescription&  
							
							... 
							
							
							
							Asking a File if we could possibly read or write it will never mutate
the asking FileDescription&, so it should be const. 
							
						 
						
							2019-11-04 14:03:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Sergey Bugaev 
								
							 
						 
						
							
							
							
							
								
							
							
								dadf6337ef 
								
							 
						 
						
							
							
								
								Kernel: Customize absolute_path() for more file types  
							
							
							
						 
						
							2019-08-11 16:30:43 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								27f699ef0c 
								
							 
						 
						
							
							
								
								AK: Rename the common integer typedefs to make it obvious what they are.  
							
							... 
							
							
							
							These types can be picked up by including <AK/Types.h>:
* u8, u16, u32, u64 (unsigned)
* i8, i16, i32, i64 (signed) 
							
						 
						
							2019-07-03 21:20:13 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								90b1354688 
								
							 
						 
						
							
							
								
								AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.  
							
							
							
						 
						
							2019-06-21 18:37:47 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								08cd75ac4b 
								
							 
						 
						
							
							
								
								Kernel: Rename FileDescriptor to FileDescription.  
							
							... 
							
							
							
							After reading a bunch of POSIX specs, I've learned that a file descriptor
is the number that refers to a file description, not the description itself.
So this patch renames FileDescriptor to FileDescription, and Process now has
FileDescription* file_description(int fd). 
							
						 
						
							2019-06-07 09:36:51 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								8cbb7f101f 
								
							 
						 
						
							
							
								
								Kernel: Have File virtuals take a FileDescriptor& rather than a Process&.  
							
							... 
							
							
							
							This will allow us to implement different behaviors depending on the role
of the descriptor a File is being accessed through. 
							
						 
						
							2019-04-29 13:58:40 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								88f03f86ff 
								
							 
						 
						
							
							
								
								Kernel: Have TTY subclasses cache their tty_name/pts_name.  
							
							
							
						 
						
							2019-04-16 00:35:02 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								ab43658c55 
								
							 
						 
						
							
							
								
								Kernel: Move devices into Kernel/Devices/.  
							
							
							
						 
						
							2019-04-03 12:36:40 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								9fca94269e 
								
							 
						 
						
							
							
								
								Kernel: Move TTY-related files into Kernel/TTY/.  
							
							
							
						 
						
							2019-04-03 12:28:45 +02:00