aboutsummaryrefslogtreecommitdiff
path: root/src/libbio/bcat.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-12-03 22:50:48 +0000
committerrsc <devnull@localhost>2003-12-03 22:50:48 +0000
commit669250d159e93a6933afa4cd25f410af801515ec (patch)
tree1f053fd518cf1a172863e07050e6e3bf13762f7d /src/libbio/bcat.c
parent5a82f26e50fbfbb3090b4cf839decf012637a00e (diff)
downloadplan9port-669250d159e93a6933afa4cd25f410af801515ec.tar.gz
plan9port-669250d159e93a6933afa4cd25f410af801515ec.tar.bz2
plan9port-669250d159e93a6933afa4cd25f410af801515ec.zip
Various fixes.
B - fixed usage, DISPLAY :0 vs :0.0 9term - fixed various terminal things rc - notice traps in Read _p9dir - only run disk code for disks dirread - getdirentries on FreeBSD and Linux are different w.r.t. meaning of off. notify - set up so signals interrupt system calls bprint - use bfmt.
Diffstat (limited to 'src/libbio/bcat.c')
-rw-r--r--src/libbio/bcat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libbio/bcat.c b/src/libbio/bcat.c
index dea346a5..7c9b39e9 100644
--- a/src/libbio/bcat.c
+++ b/src/libbio/bcat.c
@@ -22,8 +22,12 @@ main(int argc, char **argv)
{
int i;
Biobuf b, *bp;
+ Fmt fmt;
Binit(&bout, 1, O_WRONLY);
+ Bfmtinit(&fmt, &bout);
+ fmtprint(&fmt, "hello, world\n");
+ Bfmtflush(&fmt);
if(argc == 1){
Binit(&b, 0, O_RDONLY);