PUMA Library Reference Manual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Puma::SysCall Class Reference

#include <Puma/SysCall.h>

Description

Encapsulates system dependent file system operations.

Static Public Member Functions

static const char * mktemp (const char *prefix, ErrorSink *err=(ErrorSink *) 0)
 Create a temporary file name, needs to be freed by the caller. More...
 
static int open_excl (const char *path, int flags, ErrorSink *err=(ErrorSink *) 0)
 Open a file in exclusive file locking mode. More...
 
static int create_excl (const char *path, int mode, ErrorSink *err=(ErrorSink *) 0)
 Create and open a file in exclusive file locking mode. More...
 
static bool close_excl (int fd, ErrorSink *err=(ErrorSink *) 0)
 Close a file opened in exclusive file locking mode. More...
 
static int open (const char *path, int flags, ErrorSink *err=(ErrorSink *) 0)
 Open a file in non-exclusive mode. More...
 
static int create (const char *path, int mode, ErrorSink *err=(ErrorSink *) 0)
 Create and open a file in non-exclusive mode. More...
 
static bool close (int fd, ErrorSink *err=(ErrorSink *) 0)
 Close a file opened in non-exclusive mode. More...
 
static long read (int fd, void *buffer, size_t n, ErrorSink *err=(ErrorSink *) 0)
 Read n bytes from a file into d_son, CTree *new_son)Puma::CTreed_son, CTree *new_son)Puma::CTreeErrorSink *) 0)
 Puma::CTreed_son, CTree *new_son)read (int fd, void *buffefic long read (int fd, void *buffefic long ">read (int fd,="bottom">">read (int fd,="bottom">">read (int fd,="bottom">">read (int fd,="bottom">">read (int fd,="bottom">">read<"memItemRight" vali5class=d class="entry">">read (int fd,="bottom">">read (int fd,="bottom">