mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 14:52:28 +00:00
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
This commit is contained in:
parent
96f979dfc5
commit
fa20edc44d
3057 changed files with 410 additions and 4398 deletions
3
third_party/mbedtls/test/everest_unravaged.c
vendored
3
third_party/mbedtls/test/everest_unravaged.c
vendored
|
@ -1,10 +1,10 @@
|
|||
#include "libc/intrin/bits.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "third_party/mbedtls/asn1.h"
|
||||
#include "third_party/mbedtls/bignum.h"
|
||||
#include "third_party/mbedtls/common.h"
|
||||
#include "third_party/mbedtls/error.h"
|
||||
#include "libc/serialize.h"
|
||||
#include "third_party/mbedtls/platform.h"
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
|
@ -12,7 +12,6 @@ Everest (Apache 2.0)\\n\
|
|||
Copyright 2016-2018 INRIA and Microsoft Corporation\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
|
||||
/* clang-format off */
|
||||
/*
|
||||
* ECDH with curve-optimized implementation multiplexing
|
||||
*
|
||||
|
|
2
third_party/mbedtls/test/lib.c
vendored
2
third_party/mbedtls/test/lib.c
vendored
|
@ -22,7 +22,6 @@
|
|||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/intrin/bits.h"
|
||||
#include "libc/intrin/describebacktrace.internal.h"
|
||||
#include "libc/intrin/safemacros.internal.h"
|
||||
#include "libc/limits.h"
|
||||
|
@ -49,6 +48,7 @@
|
|||
#include "third_party/mbedtls/config.h"
|
||||
#include "third_party/mbedtls/endian.h"
|
||||
#include "third_party/mbedtls/error.h"
|
||||
#include "libc/serialize.h"
|
||||
#include "third_party/mbedtls/platform.h"
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
|
|
2
third_party/mbedtls/test/lib.h
vendored
2
third_party/mbedtls/test/lib.h
vendored
|
@ -42,7 +42,6 @@
|
|||
#error oh no entropy
|
||||
#endif
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define WRITE mbedtls_test_write
|
||||
|
@ -249,5 +248,4 @@ int check_test(size_t);
|
|||
char *GetTlsError(long);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_MBEDTLS_TEST_LIB_H_ */
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_base64.c
vendored
1
third_party/mbedtls/test/test_suite_base64.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_ccm.c
vendored
1
third_party/mbedtls/test/test_suite_ccm.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_des.c
vendored
1
third_party/mbedtls/test/test_suite_des.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_dhm.c
vendored
1
third_party/mbedtls/test/test_suite_dhm.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_ecdh.c
vendored
1
third_party/mbedtls/test/test_suite_ecdh.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_ecdsa.c
vendored
1
third_party/mbedtls/test/test_suite_ecdsa.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_ecp.c
vendored
1
third_party/mbedtls/test/test_suite_ecp.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_error.c
vendored
1
third_party/mbedtls/test/test_suite_error.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_hkdf.c
vendored
1
third_party/mbedtls/test/test_suite_hkdf.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_md.c
vendored
1
third_party/mbedtls/test/test_suite_md.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_mdx.c
vendored
1
third_party/mbedtls/test/test_suite_mdx.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_mpi.c
vendored
1
third_party/mbedtls/test/test_suite_mpi.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_net.c
vendored
1
third_party/mbedtls/test/test_suite_net.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_oid.c
vendored
1
third_party/mbedtls/test/test_suite_oid.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_pem.c
vendored
1
third_party/mbedtls/test/test_suite_pem.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_pk.c
vendored
1
third_party/mbedtls/test/test_suite_pk.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_pkcs5.c
vendored
1
third_party/mbedtls/test/test_suite_pkcs5.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_random.c
vendored
1
third_party/mbedtls/test/test_suite_random.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_rsa.c
vendored
1
third_party/mbedtls/test/test_suite_rsa.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_shax.c
vendored
1
third_party/mbedtls/test/test_suite_shax.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_ssl.c
vendored
1
third_party/mbedtls/test/test_suite_ssl.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
1
third_party/mbedtls/test/test_suite_timing.c
vendored
1
third_party/mbedtls/test/test_suite_timing.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue