libadc-cxx 1.0.0
Structured logging for scientific computing
Loading...
Searching...
No Matches
Functions
mergefiles.ipp File Reference
#include <sys/sendfile.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <glob.h>
#include <cerrno>
#include <vector>
#include <string>
Include dependency graph for mergefiles.ipp:

Go to the source code of this file.

Functions

int glob_sendfile_join (const char *dest, const char *pattern, int perm, std::vector< std::string > &merged)
 use sendfile to join all files matching pattern in new dest file.
 

Function Documentation

◆ glob_sendfile_join()

int glob_sendfile_join ( const char *  dest,
const char *  pattern,
int  perm,
std::vector< std::string > &  merged 
)

use sendfile to join all files matching pattern in new dest file.

Parameters
destfile to write merge result.
patternglob pattern to match possible input files.
mergedlist of files added
Returns
0 and updated merged list or errno and merged content undefined.

Definition at line 16 of file mergefiles.ipp.