p2  0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Aio_fs Class Reference

Public Member Functions

static PN aio_fs_cleanup (Potion *P, PN cl, PN self)
 
static PN aio_fs_close (Potion *P, PN cl, PN self, PN fd, PN cb, PN loop)
 
static PN aio_fs_open (Potion *P, PN cl, PN self, PN path, PN flags, PN mode, PN cb, PN loop)
 
static PN aio_fs_read (Potion *P, PN cl, PN self, PN fd, PN buf, PN nbufs, PN offset, PN cb, PN loop)
 
static PN aio_fs_write (Potion *P, PN cl, PN self, PN fd, PN buf, PN nbufs, PN offset, PN cb, PN loop)
 
static PN aio_fs_unlink (Potion *P, PN cl, PN self, PN path, PN cb, PN loop)
 
static PN aio_fs_mkdir (Potion *P, PN cl, PN self, PN path, PN mode, PN cb, PN loop)
 
static PN aio_fs_mkdtemp (Potion *P, PN cl, PN self, PN tpl, PN cb, PN loop)
 
static PN aio_fs_rmdir (Potion *P, PN cl, PN self, PN path, PN cb, PN loop)
 
static PN aio_fs_scandir (Potion *P, PN cl, PN self, PN path, PN flags, PN cb, PN loop)
 
static PN aio_fs_scandir_next (Potion *P, PN cl, PN self)
 
static PN aio_fs_stat (Potion *P, PN cl, PN self, PN path, PN cb, PN loop)
 
static PN aio_fs_fstat (Potion *P, PN cl, PN self, PN fd, PN cb, PN loop)
 
static PN aio_fs_rename (Potion *P, PN cl, PN self, PN path, PN newpath, PN cb, PN loop)
 
static PN aio_fs_fsync (Potion *P, PN cl, PN self, PN fd, PN cb, PN loop)
 
static PN aio_fs_fdatasync (Potion *P, PN cl, PN self, PN fd, PN cb, PN loop)
 

Detailed Description

Create an empty unitialized Aio_fs filesystem request.

The fs_* methods execute a blocking system call asynchronously (in a thread pool) and call the specified callback in the specified loop after completion. If the user gives NULL as the callback the blocking system call will be called synchronously. req should be a pointer to an uninitialized Aio_fs object.

aio_fs_req_cleanup() must be called after completion of the fs method to free any internal memory allocations associated with the request.

This class is disabled in a SANDBOX.

Member Function Documentation

static PN aio_fs_cleanup ( Potion P,
PN  cl,
PN  self 
)

must be called after completion of the Aio_fs methods to free any internal memory allocations associated with the request.

Definition at line 1587 of file aio.c.

static PN aio_fs_close ( Potion P,
PN  cl,
PN  self,
PN  fd,
PN  cb,
PN  loop 
)
Parameters
fdInteger
cbfs_cb
loopoptional

Definition at line 1596 of file aio.c.

static PN aio_fs_open ( Potion P,
PN  cl,
PN  self,
PN  path,
PN  flags,
PN  mode,
PN  cb,
PN  loop 
)
Parameters
pathString
flagsInteger
modeInteger
cbfs_cb
loopoptional

Definition at line 1610 of file aio.c.

static PN aio_fs_read ( Potion P,
PN  cl,
PN  self,
PN  fd,
PN  buf,
PN  nbufs,
PN  offset,
PN  cb,
PN  loop 
)
Parameters
pathString
fdInteger
bufByte buffer
lengthInteger
offsetInteger
cbfs_cb
loopoptional

Definition at line 1627 of file aio.c.

static PN aio_fs_write ( Potion P,
PN  cl,
PN  self,
PN  fd,
PN  buf,
PN  nbufs,
PN  offset,
PN  cb,
PN  loop 
)
Parameters
flagsInteger
modeInteger
cbfs_cb
loopoptional

Definition at line 1648 of file aio.c.

static PN aio_fs_unlink ( Potion P,
PN  cl,
PN  self,
PN  path,
PN  cb,
PN  loop 
)
Parameters
pathString
cbfs_cb
loopoptional

Definition at line 1666 of file aio.c.

static PN aio_fs_mkdir ( Potion P,
PN  cl,
PN  self,
PN  path,
PN  mode,
PN  cb,
PN  loop 
)
Parameters
pathString
modeInteger
cbfs_cb
loopoptional

Definition at line 1679 of file aio.c.

static PN aio_fs_mkdtemp ( Potion P,
PN  cl,
PN  self,
PN  tpl,
PN  cb,
PN  loop 
)
Parameters
tplString
cbfs_cb
loopoptional

Definition at line 1692 of file aio.c.

static PN aio_fs_rmdir ( Potion P,
PN  cl,
PN  self,
PN  path,
PN  cb,
PN  loop 
)
Parameters
pathString
cbfs_cb
loopoptional

Definition at line 1704 of file aio.c.

static PN aio_fs_scandir ( Potion P,
PN  cl,
PN  self,
PN  path,
PN  flags,
PN  cb,
PN  loop 
)
Parameters
pathString
flagsInteger
cbfs_cb
loopoptional

Definition at line 1717 of file aio.c.

static PN aio_fs_scandir_next ( Potion P,
PN  cl,
PN  self 
)
Returns
tuple of name, type. Or "", -1 if EOF

Definition at line 1729 of file aio.c.

static PN aio_fs_stat ( Potion P,
PN  cl,
PN  self,
PN  path,
PN  cb,
PN  loop 
)
Parameters
pathString
cbfs_cb
loopoptional

Definition at line 1743 of file aio.c.

static PN aio_fs_fstat ( Potion P,
PN  cl,
PN  self,
PN  fd,
PN  cb,
PN  loop 
)
Parameters
fdInteger
cbfs_cb
loopoptional

Definition at line 1755 of file aio.c.

static PN aio_fs_rename ( Potion P,
PN  cl,
PN  self,
PN  path,
PN  newpath,
PN  cb,
PN  loop 
)
Parameters
pathString
flagsInteger
modeInteger
cbfs_cb
loopoptional

Definition at line 1769 of file aio.c.

static PN aio_fs_fsync ( Potion P,
PN  cl,
PN  self,
PN  fd,
PN  cb,
PN  loop 
)
Parameters
fdInteger
cbfs_cb
loopoptional

Definition at line 1782 of file aio.c.

static PN aio_fs_fdatasync ( Potion P,
PN  cl,
PN  self,
PN  fd,
PN  cb,
PN  loop 
)
Parameters
fdInteger
cbfs_cb
loopoptional

Definition at line 1794 of file aio.c.


The documentation for this class was generated from the following file: