summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-10-30 16:10:45 +0000
committerRichard Jones <rjones@redhat.com>2009-11-02 16:37:51 +0000
commit2eb19f526164a978c373a760deb30854d56b62ce (patch)
tree33798414007f6d8bdf78e6cef6a354efad642f18 /perl
parent00425c073e5c0743ef425cd12108a85ac36b15f4 (diff)
downloadlibguestfs-2eb19f526164a978c373a760deb30854d56b62ce.tar.gz
libguestfs-2eb19f526164a978c373a760deb30854d56b62ce.tar.xz
libguestfs-2eb19f526164a978c373a760deb30854d56b62ce.zip
New API calls: truncate, truncate_size, mkdir_mode, utimens, lchown.
truncate, truncate_size: Used to truncate files to a particular size, or to zero bytes. mkdir_mode: Like mkdir but allows you to also specify the initial permissions for the new directory. utimens: Set timestamp on a file with nanosecond accuracy. lchown: Corresponding to lchown(2) syscall (we already have chown). The implementation is complicated by the fact that we had to add an Int64 parameter type to the generator.
Diffstat (limited to 'perl')
-rw-r--r--perl/typemap1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/typemap b/perl/typemap
index 97788d30..752ca0d7 100644
--- a/perl/typemap
+++ b/perl/typemap
@@ -2,6 +2,7 @@ TYPEMAP
char * T_PV
const char * T_PV
guestfs_h * O_OBJECT_guestfs_h
+int64_t T_IV
INPUT
O_OBJECT_guestfs_h