mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
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)
This commit is contained in:
parent
c4c4bbc5ba
commit
27f699ef0c
208 changed files with 1603 additions and 1621 deletions
|
@ -16,7 +16,7 @@
|
|||
#include <Kernel/KResult.h>
|
||||
#include <Kernel/Lock.h>
|
||||
|
||||
static const dword mepoch = 476763780;
|
||||
static const u32 mepoch = 476763780;
|
||||
|
||||
class Inode;
|
||||
class FileDescription;
|
||||
|
@ -30,7 +30,7 @@ public:
|
|||
virtual ~FS();
|
||||
|
||||
unsigned fsid() const { return m_fsid; }
|
||||
static FS* from_fsid(dword);
|
||||
static FS* from_fsid(u32);
|
||||
static void sync();
|
||||
static void lock_all();
|
||||
|
||||
|
@ -46,12 +46,12 @@ public:
|
|||
virtual unsigned free_inode_count() const { return 0; }
|
||||
|
||||
struct DirectoryEntry {
|
||||
DirectoryEntry(const char* name, InodeIdentifier, byte file_type);
|
||||
DirectoryEntry(const char* name, int name_length, InodeIdentifier, byte file_type);
|
||||
DirectoryEntry(const char* name, InodeIdentifier, u8 file_type);
|
||||
DirectoryEntry(const char* name, int name_length, InodeIdentifier, u8 file_type);
|
||||
char name[256];
|
||||
int name_length { 0 };
|
||||
InodeIdentifier inode;
|
||||
byte file_type { 0 };
|
||||
u8 file_type { 0 };
|
||||
};
|
||||
|
||||
virtual RefPtr<Inode> create_inode(InodeIdentifier parentInode, const String& name, mode_t, off_t size, dev_t, int& error) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue