Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
FileIO.hpp File Reference
#include <orbit/legacy_namespaces.hpp>
#include <cstddef>
#include <fcntl.h>
#include <unistd.h>
Include dependency graph for FileIO.hpp:

Go to the source code of this file.

Namespaces

namespace  orbit
 
namespace  orbit::utils
 
namespace  orbit::utils::file
 

Functions

int orbit::utils::file::open_read_only (const char *path)
 Opens a file for reading (binary, close-on-exec); -1 on failure.
 
int orbit::utils::file::close (int fd)
 
long long orbit::utils::file::pread (int fd, void *buf, size_t count, long long offset)
 Reads up to count bytes at offset (64-bit on every platform); -1 on error.