mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +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
1
third_party/nsync/mem/array.c
vendored
1
third_party/nsync/mem/array.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/nsync/array.internal.h"
|
||||
// clang-format off
|
||||
|
||||
void a_ensure_ (void *v, int delta, int sz) {
|
||||
typedef A_TYPE (void *) a_void_ptr;
|
||||
|
|
1
third_party/nsync/mem/nsync_counter.c
vendored
1
third_party/nsync/mem/nsync_counter.c
vendored
|
@ -31,7 +31,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
/* Internal details of nsync_counter. */
|
||||
struct nsync_counter_s_ {
|
||||
|
|
1
third_party/nsync/mem/nsync_cv.c
vendored
1
third_party/nsync/mem/nsync_cv.c
vendored
|
@ -35,7 +35,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
/* Initialize *cv. */
|
||||
void nsync_cv_init (nsync_cv *cv) {
|
||||
|
|
1
third_party/nsync/mem/nsync_debug.c
vendored
1
third_party/nsync/mem/nsync_debug.c
vendored
|
@ -26,7 +26,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
/* Routines for debugging. */
|
||||
|
||||
|
|
1
third_party/nsync/mem/nsync_mu_wait.c
vendored
1
third_party/nsync/mem/nsync_mu_wait.c
vendored
|
@ -27,7 +27,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
/* Attempt to remove waiter *w from *mu's
|
||||
waiter queue. If successful, leave the lock held in mode *l_type, and
|
||||
|
|
1
third_party/nsync/mem/nsync_note.c
vendored
1
third_party/nsync/mem/nsync_note.c
vendored
|
@ -30,7 +30,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
/* Locking discipline for the nsync_note implementation:
|
||||
|
||||
|
|
1
third_party/nsync/mem/nsync_once.c
vendored
1
third_party/nsync/mem/nsync_once.c
vendored
|
@ -27,7 +27,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
/* An once_sync_s struct contains a lock, and a condition variable on which
|
||||
threads may wait for an nsync_once to be initialized by another thread.
|
||||
|
|
1
third_party/nsync/mem/nsync_sem_wait.c
vendored
1
third_party/nsync/mem/nsync_sem_wait.c
vendored
|
@ -28,7 +28,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
/* Wait until one of:
|
||||
w->sem is non-zero----decrement it and return 0.
|
||||
|
|
1
third_party/nsync/mem/nsync_wait.c
vendored
1
third_party/nsync/mem/nsync_wait.c
vendored
|
@ -30,7 +30,6 @@ asm(".ident\t\"\\n\\n\
|
|||
*NSYNC (Apache 2.0)\\n\
|
||||
Copyright 2016 Google, Inc.\\n\
|
||||
https://github.com/google/nsync\"");
|
||||
// clang-format off
|
||||
|
||||
int nsync_wait_n (void *mu, void (*lock) (void *), void (*unlock) (void *),
|
||||
nsync_time abs_deadline,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue