hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
Namespaces | Typedefs | Functions
www.C File Reference
#include <hobbes/util/os.H>
#include "www.H"
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <fcntl.h>
Include dependency graph for www.C:

Namespaces

 hi
 

Typedefs

typedef hobbes::array< char > hi::cstr
 
typedef std::pair< const cstr *, const cstr * > hi::cstrpair
 

Functions

ssize_t sendfile (int toFD, int fromFD, off_t *o, size_t sz)
 
void hi::write (int fd, const char *s)
 
void hi::write (int fd, const std::string &s)
 
bool hi::fileExists (const std::string &x)
 
std::string hi::readLink (const std::string &path)
 
std::string hi::exeDir ()
 
bool hi::catPathToFSPath (const std::string &cat, const std::string &cpath, std::string *fsPath)
 
bool hi::sysPathToFSPath (const std::string &sysPath, std::string *fsPath)
 
bool hi::urlPathToFSPath (const std::string &urlPath, std::string *fsPath)
 
void hi::translateHxpFile (std::istream &in, std::ostream &out)
 
time_t hi::lastModification (const std::string &fpath)
 
const cstr * hi::linkTarget (const cstr *p)
 
const cstr * hi::slurpFile (const cstr *fpath)
 
const hobbes::array< const cstr *> * hi::csplit (const cstr *s, const cstr *ss)
 
long hi::unixTime ()
 
const cstr * hi::formatJSTime (long x)
 
const cstr * hi::jsEscape (const cstr *x)
 
std::string hi::urlDecode (const std::string &x)
 
std::string hi::htmlEncode (const std::string &x)
 
std::string hi::showType (hobbes::cc &c, const hobbes::QualTypePtr &t)
 
void hi::print404 (int fd, const std::string &fpath)
 

Function Documentation

◆ sendfile()

ssize_t sendfile ( int  toFD,
int  fromFD,
off_t *  o,
size_t  sz 
)