Blob
- Date:
- Message:
- 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.
- Actions:
- History | Blame | Raw File
1 #include "lib9.h"2 #include <bio.h>4 int5 Bprint(Biobuf *bp, char *fmt, ...)6 {7 va_list args;8 Fmt f;9 int n;11 if(Bfmtinit(&f, bp) < 0)12 return -1;13 va_start(args, fmt);14 f.args = args;15 n = dofmt(&f, fmt);16 va_end(args);17 if(n > 0 && Bfmtflush(&f) < 0)18 return -1;19 return n;20 }