aboutsummaryrefslogtreecommitdiff
path: root/tests/unistd/truncate.out
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unistd/truncate.out')
-rw-r--r--tests/unistd/truncate.out25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/unistd/truncate.out b/tests/unistd/truncate.out
new file mode 100644
index 00000000..2ab0f305
--- /dev/null
+++ b/tests/unistd/truncate.out
@@ -0,0 +1,25 @@
+st_size: 6
+
+ftruncate(10): 0
+errno: 0
+st_size: 10
+
+ftruncate(4): 0
+errno: 0
+st_size: 4
+
+ftruncate(-1): -1
+errno: 22
+st_size: 4
+
+truncate(2): 0
+errno: 0
+st_size: 2
+
+truncate(readonly, 2): -1
+errno: 13
+st_size: 6
+
+ftruncate(readonly, 4): -1
+errno: 22
+st_size: 6