mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:02:45 +00:00 
			
		
		
		
	Everywhere: Run clang-format
This commit is contained in:
		
							parent
							
								
									0376c127f6
								
							
						
					
					
						commit
						086969277e
					
				
					 1665 changed files with 8479 additions and 8479 deletions
				
			
		|  | @ -56,7 +56,7 @@ Inode& ProcFS::root_inode() | |||
|     return *m_root_inode; | ||||
| } | ||||
| 
 | ||||
| ProcFSInode::ProcFSInode(const ProcFS& fs, InodeIndex index) | ||||
| ProcFSInode::ProcFSInode(ProcFS const& fs, InodeIndex index) | ||||
|     : Inode(const_cast<ProcFS&>(fs), index) | ||||
| { | ||||
| } | ||||
|  | @ -93,12 +93,12 @@ ErrorOr<void> ProcFSInode::chown(UserID, GroupID) | |||
|     return EPERM; | ||||
| } | ||||
| 
 | ||||
| ErrorOr<NonnullRefPtr<ProcFSGlobalInode>> ProcFSGlobalInode::try_create(const ProcFS& fs, const ProcFSExposedComponent& component) | ||||
| ErrorOr<NonnullRefPtr<ProcFSGlobalInode>> ProcFSGlobalInode::try_create(ProcFS const& fs, ProcFSExposedComponent const& component) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSGlobalInode(fs, component)); | ||||
| } | ||||
| 
 | ||||
| ProcFSGlobalInode::ProcFSGlobalInode(const ProcFS& fs, const ProcFSExposedComponent& component) | ||||
| ProcFSGlobalInode::ProcFSGlobalInode(ProcFS const& fs, ProcFSExposedComponent const& component) | ||||
|     : ProcFSInode(fs, component.component_index()) | ||||
|     , m_associated_component(component) | ||||
| { | ||||
|  | @ -163,17 +163,17 @@ InodeMetadata ProcFSGlobalInode::metadata() const | |||
|     return metadata; | ||||
| } | ||||
| 
 | ||||
| ErrorOr<size_t> ProcFSGlobalInode::write_bytes(off_t offset, size_t count, const UserOrKernelBuffer& buffer, OpenFileDescription* fd) | ||||
| ErrorOr<size_t> ProcFSGlobalInode::write_bytes(off_t offset, size_t count, UserOrKernelBuffer const& buffer, OpenFileDescription* fd) | ||||
| { | ||||
|     return m_associated_component->write_bytes(offset, count, buffer, fd); | ||||
| } | ||||
| 
 | ||||
| ErrorOr<NonnullRefPtr<ProcFSDirectoryInode>> ProcFSDirectoryInode::try_create(const ProcFS& procfs, const ProcFSExposedComponent& component) | ||||
| ErrorOr<NonnullRefPtr<ProcFSDirectoryInode>> ProcFSDirectoryInode::try_create(ProcFS const& procfs, ProcFSExposedComponent const& component) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSDirectoryInode(procfs, component)); | ||||
| } | ||||
| 
 | ||||
| ProcFSDirectoryInode::ProcFSDirectoryInode(const ProcFS& fs, const ProcFSExposedComponent& component) | ||||
| ProcFSDirectoryInode::ProcFSDirectoryInode(ProcFS const& fs, ProcFSExposedComponent const& component) | ||||
|     : ProcFSGlobalInode(fs, component) | ||||
| { | ||||
| } | ||||
|  | @ -204,12 +204,12 @@ ErrorOr<NonnullRefPtr<Inode>> ProcFSDirectoryInode::lookup(StringView name) | |||
|     return component->to_inode(procfs()); | ||||
| } | ||||
| 
 | ||||
| ErrorOr<NonnullRefPtr<ProcFSLinkInode>> ProcFSLinkInode::try_create(const ProcFS& procfs, const ProcFSExposedComponent& component) | ||||
| ErrorOr<NonnullRefPtr<ProcFSLinkInode>> ProcFSLinkInode::try_create(ProcFS const& procfs, ProcFSExposedComponent const& component) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSLinkInode(procfs, component)); | ||||
| } | ||||
| 
 | ||||
| ProcFSLinkInode::ProcFSLinkInode(const ProcFS& fs, const ProcFSExposedComponent& component) | ||||
| ProcFSLinkInode::ProcFSLinkInode(ProcFS const& fs, ProcFSExposedComponent const& component) | ||||
|     : ProcFSGlobalInode(fs, component) | ||||
| { | ||||
| } | ||||
|  | @ -227,23 +227,23 @@ InodeMetadata ProcFSLinkInode::metadata() const | |||
|     return metadata; | ||||
| } | ||||
| 
 | ||||
| ProcFSProcessAssociatedInode::ProcFSProcessAssociatedInode(const ProcFS& fs, ProcessID associated_pid, InodeIndex determined_index) | ||||
| ProcFSProcessAssociatedInode::ProcFSProcessAssociatedInode(ProcFS const& fs, ProcessID associated_pid, InodeIndex determined_index) | ||||
|     : ProcFSInode(fs, determined_index) | ||||
|     , m_pid(associated_pid) | ||||
| { | ||||
| } | ||||
| 
 | ||||
| ErrorOr<size_t> ProcFSProcessAssociatedInode::write_bytes(off_t, size_t, const UserOrKernelBuffer&, OpenFileDescription*) | ||||
| ErrorOr<size_t> ProcFSProcessAssociatedInode::write_bytes(off_t, size_t, UserOrKernelBuffer const&, OpenFileDescription*) | ||||
| { | ||||
|     return ENOTSUP; | ||||
| } | ||||
| 
 | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessDirectoryInode>> ProcFSProcessDirectoryInode::try_create(const ProcFS& procfs, ProcessID pid) | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessDirectoryInode>> ProcFSProcessDirectoryInode::try_create(ProcFS const& procfs, ProcessID pid) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSProcessDirectoryInode(procfs, pid)); | ||||
| } | ||||
| 
 | ||||
| ProcFSProcessDirectoryInode::ProcFSProcessDirectoryInode(const ProcFS& procfs, ProcessID pid) | ||||
| ProcFSProcessDirectoryInode::ProcFSProcessDirectoryInode(ProcFS const& procfs, ProcessID pid) | ||||
|     : ProcFSProcessAssociatedInode(procfs, pid, SegmentedProcFSIndex::build_segmented_index_for_pid_directory(pid)) | ||||
| { | ||||
| } | ||||
|  | @ -312,12 +312,12 @@ ErrorOr<NonnullRefPtr<Inode>> ProcFSProcessDirectoryInode::lookup(StringView nam | |||
|     return ENOENT; | ||||
| } | ||||
| 
 | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessSubDirectoryInode>> ProcFSProcessSubDirectoryInode::try_create(const ProcFS& procfs, SegmentedProcFSIndex::ProcessSubDirectory sub_directory_type, ProcessID pid) | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessSubDirectoryInode>> ProcFSProcessSubDirectoryInode::try_create(ProcFS const& procfs, SegmentedProcFSIndex::ProcessSubDirectory sub_directory_type, ProcessID pid) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSProcessSubDirectoryInode(procfs, sub_directory_type, pid)); | ||||
| } | ||||
| 
 | ||||
| ProcFSProcessSubDirectoryInode::ProcFSProcessSubDirectoryInode(const ProcFS& procfs, SegmentedProcFSIndex::ProcessSubDirectory sub_directory_type, ProcessID pid) | ||||
| ProcFSProcessSubDirectoryInode::ProcFSProcessSubDirectoryInode(ProcFS const& procfs, SegmentedProcFSIndex::ProcessSubDirectory sub_directory_type, ProcessID pid) | ||||
|     : ProcFSProcessAssociatedInode(procfs, pid, SegmentedProcFSIndex::build_segmented_index_for_sub_directory(pid, sub_directory_type)) | ||||
|     , m_sub_directory_type(sub_directory_type) | ||||
| { | ||||
|  | @ -389,34 +389,34 @@ ErrorOr<NonnullRefPtr<Inode>> ProcFSProcessSubDirectoryInode::lookup(StringView | |||
|     } | ||||
| } | ||||
| 
 | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessPropertyInode>> ProcFSProcessPropertyInode::try_create_for_file_description_link(const ProcFS& procfs, unsigned file_description_index, ProcessID pid) | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessPropertyInode>> ProcFSProcessPropertyInode::try_create_for_file_description_link(ProcFS const& procfs, unsigned file_description_index, ProcessID pid) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSProcessPropertyInode(procfs, file_description_index, pid)); | ||||
| } | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessPropertyInode>> ProcFSProcessPropertyInode::try_create_for_thread_stack(const ProcFS& procfs, ThreadID stack_thread_index, ProcessID pid) | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessPropertyInode>> ProcFSProcessPropertyInode::try_create_for_thread_stack(ProcFS const& procfs, ThreadID stack_thread_index, ProcessID pid) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSProcessPropertyInode(procfs, stack_thread_index, pid)); | ||||
| } | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessPropertyInode>> ProcFSProcessPropertyInode::try_create_for_pid_property(const ProcFS& procfs, SegmentedProcFSIndex::MainProcessProperty main_property_type, ProcessID pid) | ||||
| ErrorOr<NonnullRefPtr<ProcFSProcessPropertyInode>> ProcFSProcessPropertyInode::try_create_for_pid_property(ProcFS const& procfs, SegmentedProcFSIndex::MainProcessProperty main_property_type, ProcessID pid) | ||||
| { | ||||
|     return adopt_nonnull_ref_or_enomem(new (nothrow) ProcFSProcessPropertyInode(procfs, main_property_type, pid)); | ||||
| } | ||||
| 
 | ||||
| ProcFSProcessPropertyInode::ProcFSProcessPropertyInode(const ProcFS& procfs, SegmentedProcFSIndex::MainProcessProperty main_property_type, ProcessID pid) | ||||
| ProcFSProcessPropertyInode::ProcFSProcessPropertyInode(ProcFS const& procfs, SegmentedProcFSIndex::MainProcessProperty main_property_type, ProcessID pid) | ||||
|     : ProcFSProcessAssociatedInode(procfs, pid, SegmentedProcFSIndex::build_segmented_index_for_main_property_in_pid_directory(pid, main_property_type)) | ||||
|     , m_parent_sub_directory_type(SegmentedProcFSIndex::ProcessSubDirectory::Reserved) | ||||
| { | ||||
|     m_possible_data.property_type = main_property_type; | ||||
| } | ||||
| 
 | ||||
| ProcFSProcessPropertyInode::ProcFSProcessPropertyInode(const ProcFS& procfs, unsigned file_description_index, ProcessID pid) | ||||
| ProcFSProcessPropertyInode::ProcFSProcessPropertyInode(ProcFS const& procfs, unsigned file_description_index, ProcessID pid) | ||||
|     : ProcFSProcessAssociatedInode(procfs, pid, SegmentedProcFSIndex::build_segmented_index_for_file_description(pid, file_description_index)) | ||||
|     , m_parent_sub_directory_type(SegmentedProcFSIndex::ProcessSubDirectory::OpenFileDescriptions) | ||||
| { | ||||
|     m_possible_data.property_index = file_description_index; | ||||
| } | ||||
| 
 | ||||
| ProcFSProcessPropertyInode::ProcFSProcessPropertyInode(const ProcFS& procfs, ThreadID thread_stack_index, ProcessID pid) | ||||
| ProcFSProcessPropertyInode::ProcFSProcessPropertyInode(ProcFS const& procfs, ThreadID thread_stack_index, ProcessID pid) | ||||
|     : ProcFSProcessAssociatedInode(procfs, pid, SegmentedProcFSIndex::build_segmented_index_for_thread_stack(pid, thread_stack_index)) | ||||
|     , m_parent_sub_directory_type(SegmentedProcFSIndex::ProcessSubDirectory::Stacks) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz