search for: guestfs_hwrite

Displaying 2 results from an estimated 2 matches for "guestfs_hwrite".

2010 Aug 19
1
Proposed new libguestfs file APIS
...g, path); Open a file from the guest's filesystem. Return a handle. int guestfs_close_handle(g, handle); Close a file handle. ssize_t guestfs_hpread(g, handle, buf, size, offset); ssize_t guestfs_hread(g, handle, buf, size); ssize_t guestfs_hpwrite(g, handle, buf, size, offset); ssize_t guestfs_hwrite(g, handle, buf, size); Wrappers round pread(), read(), pwrite() and write() which operate on a handle. ssize_t guestfs_hseek(g, handle, offset, whence); Wrapper round lseek(). int guestfs_htruncate(g, handle, length); Wrapper round ftruncate(). In terms of the API, the handle would be...
2010 Aug 26
1
[PATCH] New APIs: hopen-device hopen-file hread hwrite hseek hclose hclose-all
...ot;, [Int "handle"; Int64 "offset"; + Int "whence"]), 273, [], + [], + "seek on an open handle", + "\ +This command updates the current position in C<handle>. This +affects the C<guestfs_hread> and C<guestfs_hwrite> calls. + +C<whence> determines the point of reference for C<offset>. It +must be one of: + +=over + +=item 0 + +C<offset> is relative to the beginning of the file. + +=item 1 + +C<offset> is relative to the current position. + +=item 2 + +C<offset> is relative to...