All Classes Namespaces Functions Variables Groups Pages
QC_File.dox.h
namespace Qore {
class File : public ReadOnlyFile {
public:
nothing chown(softint uid, softint gid = -1);
public:
constructor(*string encoding);
public:
copy();
public:
destructor();
public:
int f_printf(string fmt, ...);
public:
int f_printf();
public:
int f_vprintf(string fmt, any fmt_args);
public:
int f_vprintf();
public:
string getCharset();
public:
hash getLockInfo();
public:
nothing getTerminalAttributes(TermIOS termios);
public:
TermIOS getTerminalAttributes();
public:
int lock(softint type = F_RDLCK, softint start = 0, softint len = 0, softint whence = SEEK_SET);
public:
nothing lockBlocking(softint type = F_RDLCK, softint start = 0, softint len = 0, softint whence = SEEK_SET);
public:
int open(string path, softint flags = O_RDONLY, softint mode = 0666, *string encoding);
public:
nothing open2(string path, softint flags = O_RDONLY, softint mode = 0666, *string encoding);
public:
int print(string data);
public:
int printf(string fmt, ...);
public:
int printf();
public:
nothing setCharset(*string encoding);
public:
nothing setTerminalAttributes(softint action = TCSANOW, TermIOS termios);
public:
int sync();
public:
int vprintf(string fmt, any fmt_args);
public:
int vprintf();
public:
int write(binary data);
public:
int write(string data);
public:
int writei1(int c);
public:
int writei2(int s);
public:
int writei2LSB(int s);
public:
int writei4(int i);
public:
int writei4LSB(int i);
public:
int writei8(int i);
public:
int writei8LSB(int i);
public:
static hash hlstat(string path);
public:
static hash hstat(string path);
public:
static list lstat(string path);
public:
static list stat(string path);
public:
static hash statvfs(string path);
};
const O_ACCMODE = O_ACCMODE;
const O_APPEND = O_APPEND;
const O_CREAT = O_CREAT;
const O_DIRECT = O_DIRECT;
const O_DIRECTORY = O_DIRECTORY;
const O_EXCL = O_EXCL;
const O_NDELAY = O_NDELAY;
const O_NOCTTY = O_NOCTTY;
const O_NOFOLLOW = O_NOFOLLOW;
const O_NONBLOCK = O_NONBLOCK;
const O_RDONLY = O_RDONLY;
const O_RDWR = O_RDWR;
const O_SYNC = O_SYNC;
const O_TRUNC = O_TRUNC;
const O_WRONLY = O_WRONLY;
const F_RDLCK = F_RDLCK;
const F_UNLCK = F_UNLCK;
const F_WRLCK = F_WRLCK;
const SEEK_CUR = SEEK_CUR;
const SEEK_END = SEEK_END;
const SEEK_SET = SEEK_SET;
};