file.h(3)
π file.h β bestie edition π
okay so this is file.h from the Library Functions Manual, and it's literally the header that gives you files and dynamic loader services. that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
file.h β files and dynamic loader services. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
first up, the includes. you gotta pull in ALL of these, no skipping:
#include <cc++/config.h>
#include <cc++/missing.h>
#include <cc++/thread.h>
#include <cc++/exception.h>
#include <cstdio>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/types.h>
π Classes π
here's the roster, and honestly? iconic lineup:
class ost::Fileβ the main character. just...File.struct ost::File::_fcbβ a lil struct nested insideFile. iykyk.class ost::Dirβ a low level portable directory class.class ost::DirTreeβ a generic class to walk a hierarchical directory structure. she walks. πΆββοΈclass ost::RandomFileβ the purpose of this class is to define a base class for low level random file access that is portable between Win32 and Posix systems. cross-platform queen πclass ost::ThreadFileβ this class defines a database I/O file service that can be shared by multiple threads. sharing is caring fr frclass ost::SharedFileβ this class defines a database I/O file service that can be shared by multiple processes. now the processes are sharing, we love to see itclass ost::MappedFileβ create and map a disk file into memory. it's giving memory-mapped β¨class ost::DSOβ the DSO dynamic loader class is used to load object files. loading... loading... π
π¦ Namespaces π¦
just the one, and she's everywhere:
ost
π Macros π
these are all defined for you, don't come for me:
#define PATH_MAX 256
#define NAME_MAX 64
#define S_IRUSR 0400
#define S_IWUSR 0200
#define S_IRGRP 0040
#define S_IWGRP 0020
#define S_IROTH 0004
#define S_IWOTH 0002
β Typedefs β
typedef unsigned long ost::pos_ttypedef size_t ost::ccxx_size_t
π Detailed Description π
files and dynamic loader services. that's the description. short, sweet, ate. π
π₯ Macro Definition Documentation π₯
here they are again because the docs said so, and we respect the docs:
#define NAME_MAX 64#define PATH_MAX 256#define S_IRGRP 0040#define S_IROTH 0004#define S_IRUSR 0400#define S_IWGRP 0020#define S_IWOTH 0002#define S_IWUSR 0200
π§ Author π§
generated automatically by Doxygen for GNU CommonC++ from the source code. not a human author, a robot did this, and honestly? she served. π€π
okay bestie that's the whole page, no cap, every single flag and macro accounted for. this edition came from GNU CommonC++, dated Sun Dec 27 2020 β go forth and #include responsibly πβ¨π
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms