2022-05-23 22:06:11 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_
|
2022-06-12 18:47:20 +00:00
|
|
|
#include "libc/nexgen32e/threaded.h"
|
2022-05-23 22:06:11 +00:00
|
|
|
#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;
|
|
|
|
|
2022-06-12 18:47:20 +00:00
|
|
|
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)
|
2022-06-09 03:01:28 +00:00
|
|
|
|
2022-05-23 22:06:11 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_ */
|