mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-01 06:28:21 +00:00
- Finish cleaning up the stdio unlocked APIs - Make __cxa_finalize() properly thread safe - Don't log locks if threads aren't being used - Add some more mutex guards to places using _mmi - Specific lock names now appear in the --ftrace logs - Fix mkdeps.com generating invalid Makefiles sometimes - Simplify and fix bugs in the test runner infrastructure - Fix issue where sometimes some functions wouldn't be logged
25 lines
863 B
C
25 lines
863 B
C
#ifndef COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_
|
|
#include "libc/nexgen32e/threaded.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
hidden extern int __vforked;
|
|
hidden extern bool __time_critical;
|
|
hidden extern unsigned __sighandrvas[NSIG];
|
|
hidden extern unsigned __sighandflags[NSIG];
|
|
hidden extern const struct NtSecurityAttributes kNtIsInheritable;
|
|
|
|
void __fds_lock(void);
|
|
void __fds_unlock(void);
|
|
void __sig_lock(void);
|
|
void __sig_unlock(void);
|
|
|
|
#define __fds_lock() (__threaded ? __fds_lock() : 0)
|
|
#define __fds_unlock() (__threaded ? __fds_unlock() : 0)
|
|
#define __sig_lock() (__threaded ? __sig_lock() : 0)
|
|
#define __sig_unlock() (__threaded ? __sig_unlock() : 0)
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_ */
|