git: plan9front

Download patch

ref: f5fc316da4e45531a97dae8df8869ffea28a480e
parent: e0db57f18648142b44f6a3b17b077c01ca39ff14
author: mia soweli <inbox@tachibana-labs.org>
date: Sun Apr 6 00:58:59 EDT 2025

ape: add Bstropen

This was missing from the previous commit, breaking the APE build.

--- a/sys/include/ape/bio.h
+++ b/sys/include/ape/bio.h
@@ -9,6 +9,7 @@
 
 #include <u.h>
 
+typedef	struct	Bstr	Bstr;
 typedef	struct	Biobuf	Biobuf;
 typedef	struct	Biobufhdr	Biobufhdr;
 
@@ -50,6 +51,12 @@
 	uchar	b[Bungetsize+Bsize];
 };
 
+struct	Bstr
+{
+	Biobufhdr;
+	uchar	b[];
+};
+
 /* Dregs, redefined as functions for backwards compatibility */
 #define	BGETC(bp)	Bgetc(bp)
 #define	BPUTC(bp,c)	Bputc(bp,c)
@@ -69,6 +76,7 @@
 vlong	Boffset(Biobufhdr*);
 Biobuf*	Bopen(char*, int);
 Biobuf*	Bfdopen(int, int);
+Bstr*	Bstropen(void*, int);
 int	Bprint(Biobufhdr*, char*, ...);
 int	Bvprint(Biobufhdr*, char*, va_list);
 int	Bputc(Biobufhdr*, int);
--