From 669250d159e93a6933afa4cd25f410af801515ec Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 3 Dec 2003 22:50:48 +0000 Subject: 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. --- src/libbio/bcat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libbio/bcat.c') 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); -- cgit v1.2.3