Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
File Struct Reference

File information. More...

#include <Devtab.hxx>

Public Attributes

FileIOdev
 file operations
 
union { 
 
   void *   priv 
 file reference specific data "pointer" More...
 
   void *   privPtr 
 file reference specific data "pointer" More...
 
   unsigned   privUint 
 file reference specific data "unsigned" More...
 
   int   privInt 
 file reference specific data "int" More...
 
};  
 Data that the device driver wants to store about this fd.
 
off_t offset
 current offset within file
 
int flags
 open flags
 
uint8_t inuse: 1
 true if this is an open fd.
 
uint8_t inshdn: 1
 true if this fd is in shutdown.
 
uint8_t device: 1
 true if this is a device, false if file system
 
uint8_t dir: 1
 true if this is a directory, else false
 
uint8_t dirty: 1
 true if this file is dirty and needs flush
 

Detailed Description

File information.

Definition at line 51 of file Devtab.hxx.

Member Data Documentation

◆ dev

FileIO* File::dev

file operations

Definition at line 53 of file Devtab.hxx.

◆ device

uint8_t File::device

true if this is a device, false if file system

Definition at line 66 of file Devtab.hxx.

◆ dir

uint8_t File::dir

true if this is a directory, else false

Definition at line 67 of file Devtab.hxx.

◆ dirty

uint8_t File::dirty

true if this file is dirty and needs flush

Definition at line 68 of file Devtab.hxx.

◆ flags

int File::flags

open flags

Definition at line 63 of file Devtab.hxx.

◆ inshdn

uint8_t File::inshdn

true if this fd is in shutdown.

Definition at line 65 of file Devtab.hxx.

◆ inuse

uint8_t File::inuse

true if this is an open fd.

Definition at line 64 of file Devtab.hxx.

◆ offset

off_t File::offset

current offset within file

Definition at line 62 of file Devtab.hxx.

◆ priv

void* File::priv

file reference specific data "pointer"

Definition at line 57 of file Devtab.hxx.

◆ privInt

int File::privInt

file reference specific data "int"

Definition at line 60 of file Devtab.hxx.

◆ privPtr

void* File::privPtr

file reference specific data "pointer"

Definition at line 58 of file Devtab.hxx.

◆ privUint

unsigned File::privUint

file reference specific data "unsigned"

Definition at line 59 of file Devtab.hxx.


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