]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/include/bio.h
ssh: document thumbfile options
[plan9front.git] / sys / include / bio.h
index f358c962c4410d47e06953d3f01c4e62c8a494fe..157e525c4b60fd169ae3e5a8573ddd5a50df7a70 100644 (file)
@@ -7,7 +7,7 @@ typedef struct  Biobufhdr       Biobufhdr;
 enum
 {
        Bsize           = 8*1024,
-       Bungetsize      = 4,            /* space for ungetc */
+       Bungetsize      = UTFmax+1,     /* space for ungetc */
        Bmagic          = 0x314159,
        Beof            = -1,
        Bbad            = -2,
@@ -59,6 +59,7 @@ int   Binits(Biobufhdr*, int, int, uchar*, int);
 int    Blinelen(Biobufhdr*);
 vlong  Boffset(Biobufhdr*);
 Biobuf*        Bopen(char*, int);
+Biobuf*        Bfdopen(int, int);
 int    Bprint(Biobufhdr*, char*, ...);
 int    Bvprint(Biobufhdr*, char*, va_list);
 int    Bputc(Biobufhdr*, int);
@@ -75,3 +76,4 @@ void  Blethal(Biobufhdr*, void(*)(char*));
 void   Berror(Biobufhdr*, char*, ...);
 
 #pragma        varargck        argpos  Bprint  2
+#pragma        varargck        argpos  Berror  2