mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 04:20:30 +00:00
Remove bool from public headers
This commit is contained in:
parent
dffee606cf
commit
1351d3cede
55 changed files with 105 additions and 98 deletions
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
|
||||
#define COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
#include "libc/stdbool.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -20,8 +19,8 @@ typedef struct {
|
|||
int64_t sem_dev; /* named only */
|
||||
int64_t sem_ino; /* named only */
|
||||
int sem_pid; /* unnamed only */
|
||||
bool sem_lazydelete; /* named only */
|
||||
bool sem_pshared;
|
||||
char sem_lazydelete; /* named only */
|
||||
char sem_pshared;
|
||||
int *sem_kernel;
|
||||
};
|
||||
void *sem_space[32];
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct CosmoFtrace { /* 16 */
|
||||
bool ft_once; /* 0 */
|
||||
bool ft_noreentry; /* 1 */
|
||||
char ft_once; /* 0 */
|
||||
char ft_noreentry; /* 1 */
|
||||
int ft_skew; /* 4 */
|
||||
int64_t ft_lastaddr; /* 8 */
|
||||
};
|
||||
|
@ -48,7 +48,7 @@ char *_mktls(struct CosmoTib **);
|
|||
void __bootstrap_tls(struct CosmoTib *, char *);
|
||||
|
||||
#ifdef __x86_64__
|
||||
extern bool __tls_enabled;
|
||||
extern char __tls_enabled;
|
||||
#define __tls_enabled_set(x) __tls_enabled = x
|
||||
#elif defined(__aarch64__)
|
||||
#define __tls_enabled true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue