mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Release redbean 2.0.18
This commit is contained in:
parent
8dd4ec68d0
commit
6a04bc3318
4 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue