Release redbean 2.0.18

This commit is contained in:
Justine Tunney 2022-09-04 06:57:59 -07:00
parent 8dd4ec68d0
commit 6a04bc3318
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
4 changed files with 16 additions and 16 deletions

View file

@ -17,13 +17,16 @@
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/calls/calls.h"
#include "libc/log/check.h"
#include "libc/mem/mem.h"
#include "libc/runtime/gc.internal.h"
#include "libc/stdio/stdio.h"
#include "libc/stdio/temp.h"
#include "libc/str/str.h"
#include "libc/testlib/ezbench.h"
#include "libc/testlib/hyperion.h"
#include "libc/testlib/testlib.h"
#include "libc/x/x.h"
#include "net/http/escape.h"
char *o;
@ -69,7 +72,7 @@ void makefile1(void) {
char *p;
size_t n;
p = EscapeJsStringLiteral(&o, &y, kHyperion, kHyperionSize, &n);
f = fopen("/tmp/a", "wb");
f = tmpfile();
fwrite(p, n, 1, f);
fclose(f);
}
@ -79,7 +82,7 @@ void makefile2(void) {
char *p;
size_t n;
p = EscapeJsStringLiteral(&o, &y, kHyperion, kHyperionSize, &n);
fd = creat("/tmp/a", 0644);
fd = tmpfd();
write(fd, p, n);
close(fd);
}