* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
-#include "ucw/fastbuf.h"
+#include <ucw/lib.h>
+#include <ucw/fastbuf.h>
#include <stdio.h>
#include <fcntl.h>
}
struct fastbuf *
-bopen_tmp(uns buflen)
+bopen_tmp(uint buflen)
{
return bopen_tmp_file(&(struct fb_params){ .type = FB_STD, .buffer_size = buflen });
}
int was_temp = bconfig(fb, BCONFIG_IS_TEMP_FILE, 0);
ASSERT(was_temp == 1);
if (rename(fb->name, name))
- die("Cannot rename %s to %s: %m", fb->name, name);
+ bthrow(fb, "tmp", "Cannot rename %s to %s: %m", fb->name, name);
bclose(fb);
}
#ifdef TEST
-#include "ucw/getopt.h"
+#include <ucw/getopt.h>
int main(int argc, char **argv)
{