summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/03_stdlib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2024-06-17 11:12:43 +0200
committerFelix Fietkau <nbd@nbd.name>2024-06-17 12:52:18 +0200
commite0bab40c85780f765bed78bd2e67f376b6883594 (patch)
tree5224addd7371df200d934dcd9ae81c068c11dbbc /tests/custom/03_stdlib
parent2a0240f349d2808a01ec3e006b6f0da9107b7a27 (diff)
fs: add truncate() file method
Trunates the file referenced by a file handle Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tests/custom/03_stdlib')
-rw-r--r--tests/custom/03_stdlib/40_proto1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/custom/03_stdlib/40_proto b/tests/custom/03_stdlib/40_proto
index 2a12966..6fed529 100644
--- a/tests/custom/03_stdlib/40_proto
+++ b/tests/custom/03_stdlib/40_proto
@@ -38,6 +38,7 @@ When invoked with two arguments, returns the given value.
Hello, World!
[
{
+ "truncate": "function truncate(...) { [native code] }",
"isatty": "function isatty(...) { [native code] }",
"error": "function error(...) { [native code] }",
"fileno": "function fileno(...) { [native code] }",