]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
Creation of temporary files is now thread-safe (ugh).
[libucw.git] / lib / fastbuf.h
index c5e1deb860f8610ed5cbb5eba03f6723e78c9cd7..27f0f584cefc28143d275e63be00a4bbcc7ae8fb 100644 (file)
@@ -88,6 +88,9 @@ struct fastbuf *bfdopen(int fd, uns buflen);
 struct fastbuf *bfdopen_shared(int fd, uns buflen);
 void bfilesync(struct fastbuf *b);
 
+#define TEMP_FILE_NAME_LEN 256
+void temp_file_name(byte *name);
+
 /* FastIO on in-memory streams */
 
 struct fastbuf *fbmem_create(unsigned blocksize);      /* Create stream and return its writing fastbuf */