#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <iosfwd>
#include <rpa/synchro.h>
#include <rpa/futilities.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
Namespaces | |
namespace | rpa |
Classes | |
class | rpa::mmap_ctrl |
class | rpa::mmap_ctrl::segment |
class | rpa::tmp_buffer |
class | rpa::FILE_ctrl |
class | rpa::fd_ctrl |
Defines | |
#define | RPA_STDIO_UNLOCKED 1 |
Functions | |
bool | rpa::fexists (const char *aFile) |
Just tells whether a file exists. Debugging only. | |
off_t | rpa::fposition (FILE *aF) |
This returns the current offset from the file beginning. | |
void | rpa::fsetposition (FILE *aF, off_t aPos) |
This wraps a fseek with some error detection code. | |
off_t | rpa::fposition (int aFd) |
void | rpa::fsetposition (int aFd, off_t aPos) |
bool | rpa::frewinded (FILE *myF) |
This tells whether a file is rewinded to its beginning. | |
bool | rpa::frewinded (int aFilDes) |
This tells whether a file is rewinded to its beginning. | |
void | rpa::frewind (int aFilDes) |
Rewinds a file to its beginning. | |
int | rpa::fileno_nolock (FILE *aFilPtr) |
Returns the int file descriptor of the FILE ptr. | |
int | rpa::ferror_nolock (FILE *aFilPtr) |
Does the same as 'ferror' but assumes an exclusive access to the file. | |
size_t | rpa::fread_nolock (void *ptr, size_t size, size_t n, FILE *stream) |
size_t | rpa::fwrite_nolock (const void *ptr, size_t size, size_t n, FILE *stream) |
static size_t | rpa::rpa_getpagesize (void) |
bool | rpa::mmap_loop (FILE *aF, const visitor &aVisit, size_t aPagSiz) |
Moves data from shared memory to a POSIX file. | |
bool | rpa::mmap_loop (int aFilDes, const visitor &aVisit, size_t aPagSiz) |
Moves data from shared memory to an integer file descriptor. | |
bool | rpa::FILE_loop (FILE *aF, const visitor &aVisit, size_t aBufSiz) |
Moves data from a POSIX FILE to another. | |
bool | rpa::fd_loop (int aFilDes, const visitor &aVisit, size_t aBufSiz) |
Moves data from an integer file descriptor to another. | |
void | rpa::tmpnam_vconcat (char *aBuf, const char *aPattern,...) |
Handy function for creating temporary file names. For testing purpose. |
#define RPA_STDIO_UNLOCKED 1 |