mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
[orbis-kernel] WIP new io device implementation
Not used yet
This commit is contained in:
parent
679bf94b5c
commit
855b7ab75c
3 changed files with 111 additions and 0 deletions
26
orbis-kernel/include/orbis/stat.hpp
Normal file
26
orbis-kernel/include/orbis/stat.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include "orbis-config.hpp"
|
||||
#include "time.hpp"
|
||||
|
||||
namespace orbis {
|
||||
struct Stat {
|
||||
uint32_t dev; // inode's device
|
||||
uint32_t ino; // inode's number
|
||||
uint16_t mode; // inode protection mode
|
||||
uint16_t nlink; // number of hard links
|
||||
uint32_t uid; // user ID of the file's owner
|
||||
uint32_t gid; // group ID of the file's group
|
||||
uint32_t rdev; // device type
|
||||
timespec atim; // time of last access
|
||||
timespec mtim; // time of last data modification
|
||||
timespec ctim; // time of last file status change
|
||||
off_t size; // file size, in bytes
|
||||
int64_t blocks; // blocks allocated for file
|
||||
uint32_t blksize; // optimal blocksize for I/O
|
||||
uint32_t flags; // user defined flags for file
|
||||
uint32_t gen; // file generation number
|
||||
int32_t lspare;
|
||||
timespec birthtim; // time of file creation
|
||||
};
|
||||
} // namespace orbis
|
||||
Loading…
Add table
Add a link
Reference in a new issue