mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
tsan: remove usage of libcrypt and libncurses headers
https://github.com/llvm/llvm-project/pull/153351 Closes #24736.
This commit is contained in:
parent
e25168d01b
commit
e37fc57495
2 changed files with 0 additions and 38 deletions
|
|
@ -70,14 +70,8 @@
|
|||
#include <semaphore.h>
|
||||
#include <signal.h>
|
||||
#include <stddef.h>
|
||||
#include <md5.h>
|
||||
#include <sha224.h>
|
||||
#include <sha256.h>
|
||||
#include <sha384.h>
|
||||
#include <sha512.h>
|
||||
#include <stdio.h>
|
||||
#include <stringlist.h>
|
||||
#include <term.h>
|
||||
#include <termios.h>
|
||||
#include <time.h>
|
||||
#include <ttyent.h>
|
||||
|
|
@ -378,22 +372,6 @@ const int si_SEGV_MAPERR = SEGV_MAPERR;
|
|||
const int si_SEGV_ACCERR = SEGV_ACCERR;
|
||||
const int unvis_valid = UNVIS_VALID;
|
||||
const int unvis_validpush = UNVIS_VALIDPUSH;
|
||||
|
||||
const unsigned MD5_CTX_sz = sizeof(MD5_CTX);
|
||||
const unsigned MD5_return_length = MD5_DIGEST_STRING_LENGTH;
|
||||
|
||||
#define SHA2_CONST(LEN) \
|
||||
const unsigned SHA##LEN##_CTX_sz = sizeof(SHA##LEN##_CTX); \
|
||||
const unsigned SHA##LEN##_return_length = SHA##LEN##_DIGEST_STRING_LENGTH; \
|
||||
const unsigned SHA##LEN##_block_length = SHA##LEN##_BLOCK_LENGTH; \
|
||||
const unsigned SHA##LEN##_digest_length = SHA##LEN##_DIGEST_LENGTH
|
||||
|
||||
SHA2_CONST(224);
|
||||
SHA2_CONST(256);
|
||||
SHA2_CONST(384);
|
||||
SHA2_CONST(512);
|
||||
|
||||
#undef SHA2_CONST
|
||||
} // namespace __sanitizer
|
||||
|
||||
using namespace __sanitizer;
|
||||
|
|
|
|||
|
|
@ -708,22 +708,6 @@ extern unsigned IOCTL_KDSKBMODE;
|
|||
extern const int si_SEGV_MAPERR;
|
||||
extern const int si_SEGV_ACCERR;
|
||||
|
||||
extern const unsigned MD5_CTX_sz;
|
||||
extern const unsigned MD5_return_length;
|
||||
|
||||
#define SHA2_EXTERN(LEN) \
|
||||
extern const unsigned SHA##LEN##_CTX_sz; \
|
||||
extern const unsigned SHA##LEN##_return_length; \
|
||||
extern const unsigned SHA##LEN##_block_length; \
|
||||
extern const unsigned SHA##LEN##_digest_length
|
||||
|
||||
SHA2_EXTERN(224);
|
||||
SHA2_EXTERN(256);
|
||||
SHA2_EXTERN(384);
|
||||
SHA2_EXTERN(512);
|
||||
|
||||
#undef SHA2_EXTERN
|
||||
|
||||
struct __sanitizer_cap_rights {
|
||||
u64 cr_rights[2];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue