From c7e1700e0e7cf6504b72db482e5b2dd417e64f23 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun, 12 Jul 2009 18:25:30 -0300
Subject: [PATCH 19/25] preload/posix: Add truncate(), ftruncate(), unlink() and rename()

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 preload/posix/modules/posix.io.mod |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/preload/posix/modules/posix.io.mod b/preload/posix/modules/posix.io.mod
index 23b99d4..62b918a 100644
--- a/preload/posix/modules/posix.io.mod
+++ b/preload/posix/modules/posix.io.mod
@@ -59,6 +59,16 @@ ssize_t writev(int fd, const struct iovec *iov, int iovcnt);
 	on error: -1
 	valid errnos: EBADFD EFAULT EFBIG EINTR EINVAL EIO ENOSPC
 
+int truncate(const char *path, off_t length);
+	on error: -1
+	valid errnos: EACCES EFAULT EFBIG EINTR EINVAL EIO EISDIR ELOOP \
+		ENAMETOOLONG ENOENT ENOTDIR EPERM EROFS ETXTBSY
+
+int ftruncate(int fd, off_t length);
+	on error: -1
+	valid errnos: EACCES EBADF EFAULT EFBIG EINTR EINVAL EIO EISDIR ELOOP \
+		ENAMETOOLONG ENOENT ENOTDIR EPERM EROFS ETXTBSY
+
 
 fiu name base: posix/io/dir/
 
@@ -83,6 +93,16 @@ int closedir(DIR *dirp);
 	on error: -1
 	valid errnos: EBADF
 
+int unlink(const char *pathname);
+        on error: -1
+	valid errnos: EACCES EBUSY EFAULT EIO EISDIR ELOOP ENAMETOOLONG ENOENT \
+		ENOMEM ENOTDIR EPERM EROFS
+
+int rename(const char *oldpath, const char *newpath);
+	on error: -1
+	valid errnos: EACCES EBUSY EFAULT EINVAL EISDIR ELOOP EMLINK ENAMETOOLONG \
+		ENOENT ENOMEM ENOSPC ENOTDIR ENOTEMPTY EPERM EROFS EXDEV
+
 
 fiu name base: posix/io/stat/
 
-- 
1.6.2.2.646.gb214

