mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:22:07 +00:00
Kernel: Move all code into the Kernel namespace
This commit is contained in:
parent
d42f0f4661
commit
a356e48150
201 changed files with 907 additions and 111 deletions
|
@ -31,6 +31,8 @@
|
|||
#include <Kernel/KResult.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class Process;
|
||||
|
||||
inline constexpr u32 encoded_device(unsigned major, unsigned minor)
|
||||
|
@ -89,17 +91,17 @@ struct InodeMetadata {
|
|||
return mode & 0001;
|
||||
}
|
||||
|
||||
bool is_directory() const { return ::is_directory(mode); }
|
||||
bool is_character_device() const { return ::is_character_device(mode); }
|
||||
bool is_block_device() const { return ::is_block_device(mode); }
|
||||
bool is_directory() const { return Kernel::is_directory(mode); }
|
||||
bool is_character_device() const { return Kernel::is_character_device(mode); }
|
||||
bool is_block_device() const { return Kernel::is_block_device(mode); }
|
||||
bool is_device() const { return is_character_device() || is_block_device(); }
|
||||
bool is_regular_file() const { return ::is_regular_file(mode); }
|
||||
bool is_fifo() const { return ::is_fifo(mode); }
|
||||
bool is_symlink() const { return ::is_symlink(mode); }
|
||||
bool is_socket() const { return ::is_socket(mode); }
|
||||
bool is_sticky() const { return ::is_sticky(mode); }
|
||||
bool is_setuid() const { return ::is_setuid(mode); }
|
||||
bool is_setgid() const { return ::is_setgid(mode); }
|
||||
bool is_regular_file() const { return Kernel::is_regular_file(mode); }
|
||||
bool is_fifo() const { return Kernel::is_fifo(mode); }
|
||||
bool is_symlink() const { return Kernel::is_symlink(mode); }
|
||||
bool is_socket() const { return Kernel::is_socket(mode); }
|
||||
bool is_sticky() const { return Kernel::is_sticky(mode); }
|
||||
bool is_setuid() const { return Kernel::is_setuid(mode); }
|
||||
bool is_setgid() const { return Kernel::is_setgid(mode); }
|
||||
|
||||
KResult stat(stat& buffer) const
|
||||
{
|
||||
|
@ -136,3 +138,5 @@ struct InodeMetadata {
|
|||
unsigned major_device { 0 };
|
||||
unsigned minor_device { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue