Arion 1.0.2-alpha
A high-performance C++ framework for emulating executable binaries.
 
Loading...
Searching...
No Matches
arion::ARION_FILE Struct Reference

Stores attributes related to a file which was opened during emulation. More...

#include <file_system_manager.hpp>

Public Member Functions

 ARION_FILE ()
 
 ARION_FILE (int fd, std::string path, int flags, mode_t mode)
 
 ARION_FILE (std::shared_ptr< ARION_FILE > arion_f)
 
 ARION_FILE (ARION_FILE *arion_f)
 

Public Attributes

int fd
 The UNIX file descriptor.
 
std::string path
 Path to the file.
 
int flags
 Flags which were used to open the file (like in "open" syscall).
 
mode_t mode
 Mode which was used to open the file (like in "open" syscall).
 
bool blocking = true
 True if the file was opened in blocking mode.
 
off_t saved_off = 0
 Offset where the cursor is positioned in the file.
 

Detailed Description

Stores attributes related to a file which was opened during emulation.

Constructor & Destructor Documentation

◆ ARION_FILE() [1/4]

arion::ARION_FILE::ARION_FILE ( )
inline

◆ ARION_FILE() [2/4]

arion::ARION_FILE::ARION_FILE ( int  fd,
std::string  path,
int  flags,
mode_t  mode 
)
inline

◆ ARION_FILE() [3/4]

arion::ARION_FILE::ARION_FILE ( std::shared_ptr< ARION_FILE arion_f)
inline

◆ ARION_FILE() [4/4]

arion::ARION_FILE::ARION_FILE ( ARION_FILE arion_f)
inline

Member Data Documentation

◆ blocking

bool arion::ARION_FILE::blocking = true

True if the file was opened in blocking mode.

◆ fd

int arion::ARION_FILE::fd

The UNIX file descriptor.

◆ flags

int arion::ARION_FILE::flags

Flags which were used to open the file (like in "open" syscall).

◆ mode

mode_t arion::ARION_FILE::mode

Mode which was used to open the file (like in "open" syscall).

◆ path

std::string arion::ARION_FILE::path

Path to the file.

◆ saved_off

off_t arion::ARION_FILE::saved_off = 0

Offset where the cursor is positioned in the file.


The documentation for this struct was generated from the following file: