---
name: "file.h"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/file.h"
---

# file.h(3)

Files and dynamic loader services.

## NAME

file.h - Files and dynamic loader services.

## SYNOPSIS

`#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

class **ost::File**\
 struct **ost::File::\_fcb**\
 class **ost::Dir**\
 A low level portable directory class.  class **ost::DirTree**\
 A generic class to walk a hierarchical directory structure.  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.  class **ost::ThreadFile**\
 This class defines a database I/O file service that can be shared by multiple threads.  class **ost::SharedFile**\
 This class defines a database I/O file service that can be shared by multiple processes.  class **ost::MappedFile**\
 Create and map a disk file into memory.  class **ost::DSO**\
 The **DSO** dynamic loader class is used to load object files.

### Namespaces

 **ost**\

### Macros

\#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\_t**\
 typedef size\_t **ost::ccxx\_size\_t**\

## Detailed Description

Files and dynamic loader services.

## Macro Definition Documentation

### #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.
