mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 05:20:28 +00:00
Improve system call support
This commit is contained in:
parent
63b867bd2f
commit
3085ac7837
65 changed files with 900 additions and 544 deletions
8
third_party/mbedtls/test/lib.c
vendored
8
third_party/mbedtls/test/lib.c
vendored
|
@ -17,10 +17,14 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/bits/bits.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/log/backtrace.internal.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/vendor.internal.h"
|
||||
#include "libc/nt/runtime.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/runtime/internal.h"
|
||||
#include "libc/runtime/symbols.internal.h"
|
||||
|
@ -28,6 +32,8 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "libc/sysv/consts/nr.h"
|
||||
#include "libc/x/x.h"
|
||||
#include "third_party/mbedtls/config.h"
|
||||
#include "third_party/mbedtls/endian.h"
|
||||
#include "third_party/mbedtls/error.h"
|
||||
|
@ -93,7 +99,7 @@ void mbedtls_test_platform_teardown(void) {
|
|||
}
|
||||
|
||||
wontreturn void exit(int rc) {
|
||||
if (rc) fwrite(output, 1, appendz(output).i, stderr);
|
||||
if (rc) xwrite(1, output, appendz(output).i);
|
||||
free(output);
|
||||
__cxa_finalize(0);
|
||||
_Exit(rc);
|
||||
|
|
5
third_party/mbedtls/test/test.mk
vendored
5
third_party/mbedtls/test/test.mk
vendored
|
@ -101,6 +101,7 @@ THIRD_PARTY_MBEDTLS_TEST_DIRECTDEPS = \
|
|||
LIBC_LOG \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_NT_KERNEL32 \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
|
@ -153,6 +154,10 @@ o/$(MODE)/third_party/mbedtls/test/lib.o: \
|
|||
o/$(MODE)/third_party/mbedtls/test: \
|
||||
$(THIRD_PARTY_MBEDTLS_TEST_CHECKS)
|
||||
|
||||
.PHONY: o/$(MODE)/third_party/mbedtls/test/TESTS
|
||||
o/$(MODE)/third_party/mbedtls/test/TESTS: \
|
||||
$(THIRD_PARTY_MBEDTLS_TEST_TESTS)
|
||||
|
||||
o/$(MODE)/third_party/mbedtls/test/test_suite_aes.cbc.com: o/$(MODE)/third_party/mbedtls/test/test_suite_aes.cbc.com.dbg
|
||||
o/$(MODE)/third_party/mbedtls/test/test_suite_aes.cbc.com.dbg: \
|
||||
$(THIRD_PARTY_MBEDTLS_TEST_DEPS) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue