20 #ifndef POSIX_FILEDESCRIPTOR_H 21 #define POSIX_FILEDESCRIPTOR_H 23 #include "pedigree/kernel/compiler.h" 24 #include "pedigree/kernel/processor/types.h" 25 #include "pedigree/kernel/utilities/SharedPointer.h" 26 #include "pedigree/kernel/utilities/String.h" 44 File *newFile, uint64_t newOffset = 0,
size_t newFd = 0xFFFFFFFF,
45 int fdFlags = 0,
int flFlags = 0,
LockedFile *lf = 0);
60 void setFlags(
int newFlags);
63 void addFlag(
int newFlag);
69 void setStatusFlags(
int newFlags);
72 void addStatusFlag(
int newFlag);
75 int getStatusFlags()
const;
uint64_t offset
Offset within the file for I/O.
LockedFile * lockedFile
Locked file, non-zero if there is an advisory lock on the file.
SharedPointer< class NetworkSyscalls > networkImpl
Network syscall implementation for this descriptor (if it's a socket).
size_t fd
Descriptor number.
File * file
Our open file pointer.
int flflags
File status flags (fcntl)
IoEvent * ioevent
IO event for reporting changes to files.