about summary refs log tree commit diff stats
path: root/subx/065write-buffered.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/065write-buffered.subx')
-rw-r--r--subx/065write-buffered.subx18
1 files changed, 18 insertions, 0 deletions
diff --git a/subx/065write-buffered.subx b/subx/065write-buffered.subx
index 35f75199..88b14b2d 100644
--- a/subx/065write-buffered.subx
+++ b/subx/065write-buffered.subx
@@ -207,4 +207,22 @@ test-write-buffered-with-intermediate-flush:
     # . end
     c3/return
 
+== data
+
+# The buffered file for standard error.
+Stderr:
+    # file descriptor or (address stream)
+    2/imm32  # standard error
+    # current write index
+    0/imm32
+    # current read index
+    0/imm32
+    # length
+    8/imm32
+    # data
+    00 00 00 00 00 00 00 00  # 8 bytes
+
+# TODO: 8 bytes is too small. We'll need to grow the buffer for efficiency. But
+# I don't want to type in 1024 bytes here.
+
 # . . vim:nowrap:textwidth=0