mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +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
3
Makefile
3
Makefile
|
@ -123,6 +123,9 @@ o/$(MODE): \
|
||||||
o/$(MODE)/examples \
|
o/$(MODE)/examples \
|
||||||
o/$(MODE)/third_party
|
o/$(MODE)/third_party
|
||||||
|
|
||||||
|
.PHONY: o/$(MODE)/.
|
||||||
|
o/$(MODE)/.: o/$(MODE)
|
||||||
|
|
||||||
# check if we're using o//third_party/make/make.com
|
# check if we're using o//third_party/make/make.com
|
||||||
# we added sandboxing to guarantee cosmo's makefile is hermetic
|
# we added sandboxing to guarantee cosmo's makefile is hermetic
|
||||||
# it also shaves away 200ms of startup latency with native $(uniq)
|
# it also shaves away 200ms of startup latency with native $(uniq)
|
||||||
|
|
|
@ -46,7 +46,6 @@ o/$(MODE)/ape: $(APE)
|
||||||
o/$(MODE)/ape/aarch64.lds: \
|
o/$(MODE)/ape/aarch64.lds: \
|
||||||
ape/aarch64.lds \
|
ape/aarch64.lds \
|
||||||
libc/zip.internal.h \
|
libc/zip.internal.h \
|
||||||
libc/intrin/bits.h \
|
|
||||||
libc/thread/tls.h \
|
libc/thread/tls.h \
|
||||||
libc/calls/struct/timespec.h \
|
libc/calls/struct/timespec.h \
|
||||||
libc/macros.internal.h \
|
libc/macros.internal.h \
|
||||||
|
@ -274,7 +273,6 @@ o/$(MODE)/ape/ape.lds: \
|
||||||
ape/macros.internal.h \
|
ape/macros.internal.h \
|
||||||
ape/relocations.h \
|
ape/relocations.h \
|
||||||
ape/ape.internal.h \
|
ape/ape.internal.h \
|
||||||
libc/intrin/bits.h \
|
|
||||||
libc/thread/tls.h \
|
libc/thread/tls.h \
|
||||||
libc/calls/struct/timespec.h \
|
libc/calls/struct/timespec.h \
|
||||||
libc/thread/thread.h \
|
libc/thread/thread.h \
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_
|
#ifndef COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_
|
||||||
#define COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_
|
#define COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
extern const char __comment_start[] __attribute__((__weak__));
|
extern const char __comment_start[] __attribute__((__weak__));
|
||||||
|
@ -25,5 +24,4 @@ extern uint8_t __bss_start[] __attribute__((__weak__));
|
||||||
extern uint8_t __bss_end[] __attribute__((__weak__));
|
extern uint8_t __bss_end[] __attribute__((__weak__));
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_C11_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_C11_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_C11_H_
|
#define COSMOPOLITAN_DSP_CORE_C11_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fixed-point 8-bit rounded mean kernel.
|
* Fixed-point 8-bit rounded mean kernel.
|
||||||
|
@ -17,5 +16,4 @@ __funline unsigned char C11(unsigned char al, unsigned char bl) {
|
||||||
return al;
|
return al;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C11_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C11_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_C121_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_C121_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_C121_H_
|
#define COSMOPOLITAN_DSP_CORE_C121_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
__funline unsigned char C121(unsigned char al, unsigned char bl,
|
__funline unsigned char C121(unsigned char al, unsigned char bl,
|
||||||
|
@ -16,5 +15,4 @@ __funline unsigned char C121(unsigned char al, unsigned char bl,
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C121_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C121_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_C121S_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_C121S_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_C121S_H_
|
#define COSMOPOLITAN_DSP_CORE_C121S_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
__funline signed char C121S(signed char al, signed char bl, signed char cl) {
|
__funline signed char C121S(signed char al, signed char bl, signed char cl) {
|
||||||
short ax;
|
short ax;
|
||||||
|
@ -13,5 +12,4 @@ __funline signed char C121S(signed char al, signed char bl, signed char cl) {
|
||||||
return ax;
|
return ax;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C121S_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C121S_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_C1331_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_C1331_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_C1331_H_
|
#define COSMOPOLITAN_DSP_CORE_C1331_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Byte sized kernel for resampling memory in half.
|
* Byte sized kernel for resampling memory in half.
|
||||||
|
@ -24,5 +23,4 @@ __funline unsigned char C1331(unsigned char al, unsigned char bl,
|
||||||
return al;
|
return al;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C1331_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C1331_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_C1331S_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_C1331S_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_C1331S_H_
|
#define COSMOPOLITAN_DSP_CORE_C1331S_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Byte sized kernel for resampling difference samples in half.
|
* Byte sized kernel for resampling difference samples in half.
|
||||||
|
@ -22,5 +21,4 @@ __funline signed char C1331S(signed char al, signed char bl, signed char cl,
|
||||||
return ax;
|
return ax;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C1331S_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C1331S_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_C161_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_C161_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_C161_H_
|
#define COSMOPOLITAN_DSP_CORE_C161_H_
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
#define EXTRA_SHARP 2
|
#define EXTRA_SHARP 2
|
||||||
|
|
||||||
|
@ -28,5 +27,4 @@ __funline unsigned char C161(unsigned char al, unsigned char bl,
|
||||||
return MIN(255, MAX(0, ax));
|
return MIN(255, MAX(0, ax));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C161_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C161_H_ */
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_DSP_CORE_C161S_H_
|
#define COSMOPOLITAN_DSP_CORE_C161S_H_
|
||||||
#include "dsp/core/c161.h"
|
#include "dsp/core/c161.h"
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
__funline signed char C161S(signed char al, signed char bl, signed char cl) {
|
__funline signed char C161S(signed char al, signed char bl, signed char cl) {
|
||||||
short ax, bx, cx;
|
short ax, bx, cx;
|
||||||
|
@ -20,5 +19,4 @@ __funline signed char C161S(signed char al, signed char bl, signed char cl) {
|
||||||
return al;
|
return al;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C161S_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C161S_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_C331_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_C331_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_C331_H_
|
#define COSMOPOLITAN_DSP_CORE_C331_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,5 +24,4 @@ __funline unsigned char C331(unsigned char al, unsigned char bl,
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_C331_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_C331_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_GAMMA_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_GAMMA_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_GAMMA_H_
|
#define COSMOPOLITAN_DSP_CORE_GAMMA_H_
|
||||||
#include "libc/math.h"
|
#include "libc/math.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
#define COMPANDLUMA(X, ...) COMPANDLUMA_(X, __VA_ARGS__)
|
#define COMPANDLUMA(X, ...) COMPANDLUMA_(X, __VA_ARGS__)
|
||||||
#define COMPANDLUMA_(X, K1, K2, K3, K4) \
|
#define COMPANDLUMA_(X, K1, K2, K3, K4) \
|
||||||
|
@ -19,5 +18,4 @@
|
||||||
#define COMPANDLUMA_BT1886(X) COMPANDLUMA(X, COMPANDLUMA_BT1886_MAGNUM)
|
#define COMPANDLUMA_BT1886(X) COMPANDLUMA(X, COMPANDLUMA_BT1886_MAGNUM)
|
||||||
#define UNCOMPANDLUMA_BT1886(X) UNCOMPANDLUMA(X, COMPANDLUMA_BT1886_MAGNUM)
|
#define UNCOMPANDLUMA_BT1886(X) UNCOMPANDLUMA(X, COMPANDLUMA_BT1886_MAGNUM)
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_GAMMA_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_GAMMA_H_ */
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_HALF_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_HALF_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_HALF_H_
|
#define COSMOPOLITAN_DSP_CORE_HALF_H_
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Divides integer in half w/ rounding.
|
* Divides integer in half w/ rounding.
|
||||||
*/
|
*/
|
||||||
#define HALF(X) (((X) + 1) / 2)
|
#define HALF(X) (((X) + 1) / 2)
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_HALF_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_HALF_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_ILLUMINANT_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_ILLUMINANT_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_ILLUMINANT_H_
|
#define COSMOPOLITAN_DSP_CORE_ILLUMINANT_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
extern const double kBradford[3][3];
|
extern const double kBradford[3][3];
|
||||||
|
@ -27,5 +26,4 @@ void *GetChromaticAdaptationMatrix(double[3][3], const double[3],
|
||||||
const double[3]);
|
const double[3]);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_ILLUMINANT_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_ILLUMINANT_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_ITUROUND_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_ITUROUND_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_ITUROUND_H_
|
#define COSMOPOLITAN_DSP_CORE_ITUROUND_H_
|
||||||
#include "libc/math.h"
|
#include "libc/math.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An ITU recommended rounding function.
|
* An ITU recommended rounding function.
|
||||||
|
@ -19,5 +18,4 @@ __funline int ituroundf(float x) {
|
||||||
return floorf(x + .5f);
|
return floorf(x + .5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_ITUROUND_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_ITUROUND_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_KS8_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_KS8_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_KS8_H_
|
#define COSMOPOLITAN_DSP_CORE_KS8_H_
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs 16-bit scaled rounded madd w/ eight coefficients or fewer.
|
* Performs 16-bit scaled rounded madd w/ eight coefficients or fewer.
|
||||||
|
@ -43,5 +42,4 @@
|
||||||
x1; \
|
x1; \
|
||||||
})
|
})
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_KS8_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_KS8_H_ */
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_DSP_CORE_KSS8_H_
|
#define COSMOPOLITAN_DSP_CORE_KSS8_H_
|
||||||
#include "libc/limits.h"
|
#include "libc/limits.h"
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs 16-bit scaled rounded saturated madd w/ eight coefficients or fewer.
|
* Performs 16-bit scaled rounded saturated madd w/ eight coefficients or fewer.
|
||||||
|
@ -39,5 +38,4 @@
|
||||||
x1; \
|
x1; \
|
||||||
})
|
})
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_KSS8_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_KSS8_H_ */
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "libc/limits.h"
|
#include "libc/limits.h"
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#include "libc/math.h"
|
#include "libc/math.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @fileoverview Fixed point arithmetic macros.
|
* @fileoverview Fixed point arithmetic macros.
|
||||||
|
@ -23,5 +22,4 @@ long GetIntegerCoefficients(long[static 6], const double[static 6], long, long,
|
||||||
long GetIntegerCoefficients8(long[static 8], const double[static 8], long, long,
|
long GetIntegerCoefficients8(long[static 8], const double[static 8], long, long,
|
||||||
long);
|
long);
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_Q_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_Q_H_ */
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "dsp/core/core.h"
|
#include "dsp/core/core.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/intrin/safemacros.internal.h"
|
#include "libc/intrin/safemacros.internal.h"
|
||||||
#include "libc/limits.h"
|
#include "libc/limits.h"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_CORE_TWIXT8_H_
|
#ifndef COSMOPOLITAN_DSP_CORE_TWIXT8_H_
|
||||||
#define COSMOPOLITAN_DSP_CORE_TWIXT8_H_
|
#define COSMOPOLITAN_DSP_CORE_TWIXT8_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,5 +18,4 @@ __funline unsigned char twixt8(unsigned char al, unsigned char bl,
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_CORE_TWIXT8_H_ */
|
#endif /* COSMOPOLITAN_DSP_CORE_TWIXT8_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_MPEG_BLOCKSET_H_
|
#ifndef COSMOPOLITAN_DSP_MPEG_BLOCKSET_H_
|
||||||
#define COSMOPOLITAN_DSP_MPEG_BLOCKSET_H_
|
#define COSMOPOLITAN_DSP_MPEG_BLOCKSET_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
#define PLM_BLOCK_SET(DEST, DEST_INDEX, DEST_WIDTH, SOURCE_INDEX, \
|
#define PLM_BLOCK_SET(DEST, DEST_INDEX, DEST_WIDTH, SOURCE_INDEX, \
|
||||||
SOURCE_WIDTH, BLOCK_SIZE, OP) \
|
SOURCE_WIDTH, BLOCK_SIZE, OP) \
|
||||||
|
@ -18,5 +17,4 @@
|
||||||
} \
|
} \
|
||||||
} while (false)
|
} while (false)
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_MPEG_BLOCKSET_H_ */
|
#endif /* COSMOPOLITAN_DSP_MPEG_BLOCKSET_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_MPEG_BUFFER_H_
|
#ifndef COSMOPOLITAN_DSP_MPEG_BUFFER_H_
|
||||||
#define COSMOPOLITAN_DSP_MPEG_BUFFER_H_
|
#define COSMOPOLITAN_DSP_MPEG_BUFFER_H_
|
||||||
#include "dsp/mpeg/mpeg.h"
|
#include "dsp/mpeg/mpeg.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct FILE;
|
struct FILE;
|
||||||
|
@ -159,5 +158,4 @@ forceinline uint16_t plm_buffer_read_vlc_uint(plm_buffer_t *self,
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_MPEG_BUFFER_H_ */
|
#endif /* COSMOPOLITAN_DSP_MPEG_BUFFER_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_MPEG_DEMUX_H_
|
#ifndef COSMOPOLITAN_DSP_MPEG_DEMUX_H_
|
||||||
#define COSMOPOLITAN_DSP_MPEG_DEMUX_H_
|
#define COSMOPOLITAN_DSP_MPEG_DEMUX_H_
|
||||||
#include "dsp/mpeg/mpeg.h"
|
#include "dsp/mpeg/mpeg.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define START_PACK 0xBA
|
#define START_PACK 0xBA
|
||||||
|
@ -27,5 +26,4 @@ plm_packet_t *plm_demux_decode_packet(plm_demux_t *self, int start_code);
|
||||||
plm_packet_t *plm_demux_get_packet(plm_demux_t *self);
|
plm_packet_t *plm_demux_get_packet(plm_demux_t *self);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_MPEG_DEMUX_H_ */
|
#endif /* COSMOPOLITAN_DSP_MPEG_DEMUX_H_ */
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_MPEG_IDCT_H_
|
#ifndef COSMOPOLITAN_DSP_MPEG_IDCT_H_
|
||||||
#define COSMOPOLITAN_DSP_MPEG_IDCT_H_
|
#define COSMOPOLITAN_DSP_MPEG_IDCT_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
void plm_video_idct(int *);
|
void plm_video_idct(int *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_MPEG_IDCT_H_ */
|
#endif /* COSMOPOLITAN_DSP_MPEG_IDCT_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_MPEG_MPEG_H_
|
#ifndef COSMOPOLITAN_DSP_MPEG_MPEG_H_
|
||||||
#define COSMOPOLITAN_DSP_MPEG_MPEG_H_
|
#define COSMOPOLITAN_DSP_MPEG_MPEG_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct FILE;
|
struct FILE;
|
||||||
|
@ -446,5 +445,4 @@ plm_samples_t *plm_audio_decode(plm_audio_t *self);
|
||||||
extern long plmpegdecode_latency_;
|
extern long plmpegdecode_latency_;
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_MPEG_MPEG_H_ */
|
#endif /* COSMOPOLITAN_DSP_MPEG_MPEG_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_MPEG_VIDEO_H_
|
#ifndef COSMOPOLITAN_DSP_MPEG_VIDEO_H_
|
||||||
#define COSMOPOLITAN_DSP_MPEG_VIDEO_H_
|
#define COSMOPOLITAN_DSP_MPEG_VIDEO_H_
|
||||||
#include "dsp/mpeg/mpeg.h"
|
#include "dsp/mpeg/mpeg.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -58,5 +57,4 @@ void plm_video_process_macroblock_16(plm_video_t *, uint8_t *restrict,
|
||||||
uint8_t *restrict, int, int, bool);
|
uint8_t *restrict, int, int, bool);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_MPEG_VIDEO_H_ */
|
#endif /* COSMOPOLITAN_DSP_MPEG_VIDEO_H_ */
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_SCALE_CDECIMATE2XUINT8X8_H_
|
#ifndef COSMOPOLITAN_DSP_SCALE_CDECIMATE2XUINT8X8_H_
|
||||||
#define COSMOPOLITAN_DSP_SCALE_CDECIMATE2XUINT8X8_H_
|
#define COSMOPOLITAN_DSP_SCALE_CDECIMATE2XUINT8X8_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
void *cDecimate2xUint8x8(unsigned long n, unsigned char[n],
|
void *cDecimate2xUint8x8(unsigned long n, unsigned char[n],
|
||||||
const signed char[8]);
|
const signed char[8]);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_SCALE_CDECIMATE2XUINT8X8_H_ */
|
#endif /* COSMOPOLITAN_DSP_SCALE_CDECIMATE2XUINT8X8_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_SCALE_SCALE_H_
|
#ifndef COSMOPOLITAN_DSP_SCALE_SCALE_H_
|
||||||
#define COSMOPOLITAN_DSP_SCALE_SCALE_H_
|
#define COSMOPOLITAN_DSP_SCALE_SCALE_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
extern long gyarados_latency_;
|
extern long gyarados_latency_;
|
||||||
|
@ -33,5 +32,4 @@ void *EzGyarados(long, long, long, void *, long, long, long, const void *, long,
|
||||||
long, long, long, long, long, double, double, double, double);
|
long, long, long, long, long, double, double, double, double);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_SCALE_SCALE_H_ */
|
#endif /* COSMOPOLITAN_DSP_SCALE_SCALE_H_ */
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "dsp/tty/quant.h"
|
#include "dsp/tty/quant.h"
|
||||||
#include "dsp/tty/ttyrgb.h"
|
#include "dsp/tty/ttyrgb.h"
|
||||||
#include "third_party/intel/xmmintrin.internal.h"
|
#include "third_party/intel/xmmintrin.internal.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct TtyRgb rgb2tty24f_(ttyrgb_m128);
|
struct TtyRgb rgb2tty24f_(ttyrgb_m128);
|
||||||
|
@ -30,5 +29,4 @@ char *setbgfg24_(char *, struct TtyRgb, struct TtyRgb);
|
||||||
struct TtyRgb rgb2ansi8_(int, int, int);
|
struct TtyRgb rgb2ansi8_(int, int, int);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_TTY_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_DSP_TTY_INTERNAL_H_ */
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "dsp/tty/itoa8.h"
|
#include "dsp/tty/itoa8.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
|
|
||||||
struct Itoa8 kItoa8;
|
struct Itoa8 kItoa8;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_TTY_ITOA8_H_
|
#ifndef COSMOPOLITAN_DSP_TTY_ITOA8_H_
|
||||||
#define COSMOPOLITAN_DSP_TTY_ITOA8_H_
|
#define COSMOPOLITAN_DSP_TTY_ITOA8_H_
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct Itoa8 {
|
struct Itoa8 {
|
||||||
|
@ -17,5 +16,4 @@ forceinline char *itoa8(char *p, uint8_t c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_TTY_ITOA8_H_ */
|
#endif /* COSMOPOLITAN_DSP_TTY_ITOA8_H_ */
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
#define DSP_TTY_QUANT_H_
|
#define DSP_TTY_QUANT_H_
|
||||||
#include "dsp/tty/ttyrgb.h"
|
#include "dsp/tty/ttyrgb.h"
|
||||||
#include "libc/assert.h"
|
#include "libc/assert.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/limits.h"
|
#include "libc/limits.h"
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define TL 0
|
#define TL 0
|
||||||
|
@ -90,5 +88,4 @@ forceinline bool ttyeq(struct TtyRgb x, struct TtyRgb y) {
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* DSP_TTY_QUANT_H_ */
|
#endif /* DSP_TTY_QUANT_H_ */
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#define kTtyIdScreen 83
|
#define kTtyIdScreen 83
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct FILE;
|
struct FILE;
|
||||||
|
@ -55,5 +54,4 @@ void ttyhisto(uint32_t[hasatleast 256], uint8_t[hasatleast 256],
|
||||||
const uint8_t *, const uint8_t *, size_t);
|
const uint8_t *, const uint8_t *, size_t);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_TTY_TTY_H_ */
|
#endif /* COSMOPOLITAN_DSP_TTY_TTY_H_ */
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#include "dsp/tty/ttyrgb.h"
|
#include "dsp/tty/ttyrgb.h"
|
||||||
#include "dsp/tty/windex.h"
|
#include "dsp/tty/windex.h"
|
||||||
#include "libc/assert.h"
|
#include "libc/assert.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/intrin/safemacros.internal.h"
|
#include "libc/intrin/safemacros.internal.h"
|
||||||
#include "libc/limits.h"
|
#include "libc/limits.h"
|
||||||
#include "libc/log/check.h"
|
#include "libc/log/check.h"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_TTY_RGB_H_
|
#ifndef COSMOPOLITAN_DSP_TTY_RGB_H_
|
||||||
#define COSMOPOLITAN_DSP_TTY_RGB_H_
|
#define COSMOPOLITAN_DSP_TTY_RGB_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct TtyRgb {
|
struct TtyRgb {
|
||||||
|
@ -8,5 +7,4 @@ struct TtyRgb {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_TTY_RGB_H_ */
|
#endif /* COSMOPOLITAN_DSP_TTY_RGB_H_ */
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_TTY_WINDEX_H_
|
#ifndef COSMOPOLITAN_DSP_TTY_WINDEX_H_
|
||||||
#define COSMOPOLITAN_DSP_TTY_WINDEX_H_
|
#define COSMOPOLITAN_DSP_TTY_WINDEX_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
extern unsigned (*windex)(uint16_t *, size_t);
|
extern unsigned (*windex)(uint16_t *, size_t);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_TTY_WINDEX_H_ */
|
#endif /* COSMOPOLITAN_DSP_TTY_WINDEX_H_ */
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#ifndef COSMOPOLITAN_DSP_TTY_XTERMNAME_H_
|
#ifndef COSMOPOLITAN_DSP_TTY_XTERMNAME_H_
|
||||||
#define COSMOPOLITAN_DSP_TTY_XTERMNAME_H_
|
#define COSMOPOLITAN_DSP_TTY_XTERMNAME_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
extern const char kXtermName[];
|
extern const char kXtermName[];
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_DSP_TTY_XTERMNAME_H_ */
|
#endif /* COSMOPOLITAN_DSP_TTY_XTERMNAME_H_ */
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/fmt/conv.h"
|
#include "libc/fmt/conv.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/intrin/safemacros.internal.h"
|
#include "libc/intrin/safemacros.internal.h"
|
||||||
#include "libc/inttypes.h"
|
#include "libc/inttypes.h"
|
||||||
#include "libc/log/check.h"
|
#include "libc/log/check.h"
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
#ifndef COSMOPOLITAN_EXAMPLES_PACKAGE_LIB_MYPRINT_H_
|
#ifndef COSMOPOLITAN_EXAMPLES_PACKAGE_LIB_MYPRINT_H_
|
||||||
#define COSMOPOLITAN_EXAMPLES_PACKAGE_LIB_MYPRINT_H_
|
#define COSMOPOLITAN_EXAMPLES_PACKAGE_LIB_MYPRINT_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
void MyPrint(const char *);
|
void MyPrint(const char *);
|
||||||
void MyAsm(const char *);
|
void MyAsm(const char *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_EXAMPLES_PACKAGE_LIB_MYPRINT_H_ */
|
#endif /* COSMOPOLITAN_EXAMPLES_PACKAGE_LIB_MYPRINT_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_AR_H_
|
#ifndef COSMOPOLITAN_LIBC_AR_H_
|
||||||
#define COSMOPOLITAN_LIBC_AR_H_
|
#define COSMOPOLITAN_LIBC_AR_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define ARMAG "!<arch>\n"
|
#define ARMAG "!<arch>\n"
|
||||||
|
@ -18,5 +17,4 @@ struct ar_hdr {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_AR_H_ */
|
#endif /* COSMOPOLITAN_LIBC_AR_H_ */
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include "libc/calls/struct/timeval.h"
|
#include "libc/calls/struct/timeval.h"
|
||||||
#include "libc/intrin/asan.internal.h"
|
#include "libc/intrin/asan.internal.h"
|
||||||
#include "libc/intrin/asmflag.h"
|
#include "libc/intrin/asmflag.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
forceinline bool __asan_is_valid_timespec(const struct timespec *ts) {
|
forceinline bool __asan_is_valid_timespec(const struct timespec *ts) {
|
||||||
|
@ -25,5 +24,4 @@ forceinline bool __asan_is_valid_timeval(const struct timeval *tv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_ASAN_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_ASAN_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_BLOCKCANCEL_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_BLOCKCANCEL_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_BLOCKCANCEL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_BLOCKCANCEL_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define BLOCK_CANCELATION \
|
#define BLOCK_CANCELATION \
|
||||||
|
@ -17,5 +16,4 @@ int _pthread_block_cancelation(void);
|
||||||
void _pthread_allow_cancelation(int);
|
void _pthread_allow_cancelation(int);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_BLOCKCANCEL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_BLOCKCANCEL_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_CACHESTAT_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_CACHESTAT_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_CACHESTAT_H_
|
#define COSMOPOLITAN_LIBC_CALLS_CACHESTAT_H_
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct cachestat_range {
|
struct cachestat_range {
|
||||||
|
@ -30,5 +29,4 @@ struct cachestat {
|
||||||
int cachestat(int, struct cachestat_range *, struct cachestat *, uint32_t);
|
int cachestat(int, struct cachestat_range *, struct cachestat *, uint32_t);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_LANDLOCK_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_LANDLOCK_H_ */
|
|
@ -65,7 +65,6 @@
|
||||||
#define tmpfd __tmpfd
|
#define tmpfd __tmpfd
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
/*───────────────────────────────────────────────────────────────────────────│─╗
|
/*───────────────────────────────────────────────────────────────────────────│─╗
|
||||||
│ cosmopolitan § system calls ─╬─│┼
|
│ cosmopolitan § system calls ─╬─│┼
|
||||||
|
@ -260,5 +259,4 @@ int __wifsignaled(int) pureconst;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_SYSCALLS_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_SYSCALLS_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_CP_INTERNAL_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_CP_INTERNAL_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_CP_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_CP_INTERNAL_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int begin_cancelation_point(void);
|
int begin_cancelation_point(void);
|
||||||
|
@ -21,5 +20,4 @@ void end_cancelation_point(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_CP_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_CP_INTERNAL_H_ */
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
|
#include "libc/calls/blockcancel.internal.h"
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
#include "libc/calls/syscall-nt.internal.h"
|
#include "libc/calls/syscall-nt.internal.h"
|
||||||
#include "libc/calls/syscall-sysv.internal.h"
|
#include "libc/calls/syscall-sysv.internal.h"
|
||||||
|
@ -62,7 +63,9 @@ int fchmodat(int dirfd, const char *path, uint32_t mode, int flags) {
|
||||||
rc = sys_fchmodat2(dirfd, path, mode, flags);
|
rc = sys_fchmodat2(dirfd, path, mode, flags);
|
||||||
if (rc == -1 && errno == ENOSYS) {
|
if (rc == -1 && errno == ENOSYS) {
|
||||||
errno = serrno;
|
errno = serrno;
|
||||||
|
BLOCK_CANCELATION;
|
||||||
rc = sys_fchmodat_linux(dirfd, path, mode, flags);
|
rc = sys_fchmodat_linux(dirfd, path, mode, flags);
|
||||||
|
ALLOW_CANCELATION;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
rc = sys_fchmodat(dirfd, path, mode, flags);
|
rc = sys_fchmodat(dirfd, path, mode, flags);
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "libc/elf/def.h"
|
#include "libc/elf/def.h"
|
||||||
#include "libc/elf/tinyelf.internal.h"
|
#include "libc/elf/tinyelf.internal.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/bits.h"
|
#include "libc/serialize.h"
|
||||||
#include "libc/intrin/directmap.internal.h"
|
#include "libc/intrin/directmap.internal.h"
|
||||||
#include "libc/nt/memory.h"
|
#include "libc/nt/memory.h"
|
||||||
#include "libc/nt/runtime.h"
|
#include "libc/nt/runtime.h"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "libc/cosmo.h"
|
#include "libc/cosmo.h"
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/bits.h"
|
#include "libc/serialize.h"
|
||||||
#include "libc/limits.h"
|
#include "libc/limits.h"
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#include "libc/nt/runtime.h"
|
#include "libc/nt/runtime.h"
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/asan.internal.h"
|
#include "libc/intrin/asan.internal.h"
|
||||||
#include "libc/intrin/asmflag.h"
|
#include "libc/intrin/asmflag.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/intrin/strace.internal.h"
|
#include "libc/intrin/strace.internal.h"
|
||||||
#include "libc/intrin/weaken.h"
|
#include "libc/intrin/weaken.h"
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int sys_getgroups(int size, uint32_t list[]);
|
int sys_getgroups(int size, uint32_t list[]);
|
||||||
|
@ -11,5 +10,4 @@ const char *DescribeGidList(char[128], int, int, const uint32_t list[]);
|
||||||
DescribeGidList(alloca(128), rc, length, gidlist)
|
DescribeGidList(alloca(128), rc, length, gidlist)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_ */
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
#define kSigactionMinRva 8 /* >SIG_{ERR,DFL,IGN,...} */
|
#define kSigactionMinRva 8 /* >SIG_{ERR,DFL,IGN,...} */
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define kIoMotion ((const int8_t[3]){1, 0, 0})
|
#define kIoMotion ((const int8_t[3]){1, 0, 0})
|
||||||
|
@ -54,5 +53,4 @@ bool __iswsl1(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_INTERNAL_H_ */
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "libc/calls/termios.h"
|
#include "libc/calls/termios.h"
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/bits.h"
|
#include "libc/serialize.h"
|
||||||
#include "libc/intrin/cmpxchg.h"
|
#include "libc/intrin/cmpxchg.h"
|
||||||
#include "libc/intrin/strace.internal.h"
|
#include "libc/intrin/strace.internal.h"
|
||||||
#include "libc/intrin/weaken.h"
|
#include "libc/intrin/weaken.h"
|
||||||
|
@ -66,7 +66,7 @@ static struct HostAdapterInfoNode {
|
||||||
struct sockaddr netmask;
|
struct sockaddr netmask;
|
||||||
struct sockaddr broadcast;
|
struct sockaddr broadcast;
|
||||||
short flags;
|
short flags;
|
||||||
} * __hostInfo;
|
} *__hostInfo;
|
||||||
|
|
||||||
static int ioctl_default(int fd, unsigned long request, void *arg) {
|
static int ioctl_default(int fd, unsigned long request, void *arg) {
|
||||||
int rc;
|
int rc;
|
||||||
|
|
|
@ -10,11 +10,9 @@
|
||||||
#define IPC_EXCL 02000
|
#define IPC_EXCL 02000
|
||||||
#define IPC_NOWAIT 04000
|
#define IPC_NOWAIT 04000
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int ftok(const char *, int);
|
int ftok(const char *, int);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_IPC_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_IPC_H_ */
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/serialize.h"
|
||||||
#include "libc/intrin/bits.h"
|
#include "libc/proc/execve.internal.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if executable image is supported by APE Loader.
|
* Returns true if executable image is supported by APE Loader.
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
*/
|
*/
|
||||||
#define LANDLOCK_ACCESS_FS_TRUNCATE 0x4000ul
|
#define LANDLOCK_ACCESS_FS_TRUNCATE 0x4000ul
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
enum landlock_rule_type {
|
enum landlock_rule_type {
|
||||||
|
@ -58,5 +57,4 @@ int landlock_create_ruleset(const struct landlock_ruleset_attr *, size_t,
|
||||||
uint32_t);
|
uint32_t);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_LANDLOCK_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_LANDLOCK_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_MAKEDEV_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_MAKEDEV_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_MAKEDEV_H_
|
#define COSMOPOLITAN_LIBC_CALLS_MAKEDEV_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
uint64_t makedev(uint32_t, uint32_t);
|
uint64_t makedev(uint32_t, uint32_t);
|
||||||
uint32_t major(uint64_t);
|
uint32_t major(uint64_t);
|
||||||
|
@ -10,5 +9,4 @@ uint32_t minor(uint64_t);
|
||||||
#define minor(x) minor(x)
|
#define minor(x) minor(x)
|
||||||
#define makedev(x, y) makedev(x, y)
|
#define makedev(x, y) makedev(x, y)
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_MAKEDEV_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_MAKEDEV_H_ */
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/bits.h"
|
#include "libc/serialize.h"
|
||||||
#include "libc/stdio/rand.h"
|
#include "libc/stdio/rand.h"
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_MOUNT_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_MOUNT_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_MOUNT_H_
|
#define COSMOPOLITAN_LIBC_CALLS_MOUNT_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int mount(const char *, const char *, const char *, unsigned long,
|
int mount(const char *, const char *, const char *, unsigned long,
|
||||||
|
@ -13,5 +12,4 @@ int umount2(const char *, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_MOUNT_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_MOUNT_H_ */
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/bits.h"
|
#include "libc/serialize.h"
|
||||||
#include "libc/stdio/rand.h"
|
#include "libc/stdio/rand.h"
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
#include "libc/sysv/consts/o.h"
|
#include "libc/sysv/consts/o.h"
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_COMPAT_OPENBSD_H_
|
#ifndef COSMOPOLITAN_LIBC_COMPAT_OPENBSD_H_
|
||||||
#define COSMOPOLITAN_LIBC_COMPAT_OPENBSD_H_
|
#define COSMOPOLITAN_LIBC_COMPAT_OPENBSD_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
typedef unsigned char u_char;
|
typedef unsigned char u_char;
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_COMPAT_OPENBSD_H_ */
|
#endif /* COSMOPOLITAN_LIBC_COMPAT_OPENBSD_H_ */
|
||||||
|
|
|
@ -7,11 +7,9 @@
|
||||||
#define PLEDGE_PENALTY_MASK 0x000f
|
#define PLEDGE_PENALTY_MASK 0x000f
|
||||||
#define PLEDGE_STDERR_LOGGING 0x0010
|
#define PLEDGE_STDERR_LOGGING 0x0010
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
extern int __pledge_mode;
|
extern int __pledge_mode;
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_PLEDGE_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_PLEDGE_H_ */
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_PLEDGE_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_PLEDGE_INTERNAL_H_
|
||||||
#include "libc/calls/pledge.h"
|
#include "libc/calls/pledge.h"
|
||||||
#include "libc/intrin/promises.internal.h"
|
#include "libc/intrin/promises.internal.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct Pledges {
|
struct Pledges {
|
||||||
|
@ -17,5 +16,4 @@ int sys_pledge_linux(unsigned long, int);
|
||||||
int ParsePromises(const char *, unsigned long *, unsigned long);
|
int ParsePromises(const char *, unsigned long *, unsigned long);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_PLEDGE_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_PLEDGE_INTERNAL_H_ */
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/atomic.h"
|
#include "libc/intrin/atomic.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/intrin/strace.internal.h"
|
#include "libc/intrin/strace.internal.h"
|
||||||
#include "libc/macros.internal.h"
|
#include "libc/macros.internal.h"
|
||||||
#include "libc/mem/mem.h"
|
#include "libc/mem/mem.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_PRCTL_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_PRCTL_INTERNAL_H_
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/sysv/consts/nrlinux.h"
|
#include "libc/sysv/consts/nrlinux.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
forceinline int sys_prctl(int op, long a, long b, long c, long d) {
|
forceinline int sys_prctl(int op, long a, long b, long c, long d) {
|
||||||
|
@ -34,5 +33,4 @@ forceinline int sys_prctl(int op, long a, long b, long c, long d) {
|
||||||
}
|
}
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_PRCTL_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_PRCTL_INTERNAL_H_ */
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#define CPU_WHICH_TID 1
|
#define CPU_WHICH_TID 1
|
||||||
#define CPU_WHICH_PID 2
|
#define CPU_WHICH_PID 2
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int sys_sched_get_priority_max(int);
|
int sys_sched_get_priority_max(int);
|
||||||
|
@ -41,5 +40,4 @@ int sys_sched_getaffinity_freebsd(int level, int which, int id, size_t setsize,
|
||||||
void *mask) asm("sys_sched_getaffinity");
|
void *mask) asm("sys_sched_getaffinity");
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_SCHED_SYSV_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_SCHED_SYSV_INTERNAL_H_ */
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#define SIG_HANDLED_NO_RESTART 1
|
#define SIG_HANDLED_NO_RESTART 1
|
||||||
#define SIG_HANDLED_SA_RESTART 2
|
#define SIG_HANDLED_SA_RESTART 2
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct Signals {
|
struct Signals {
|
||||||
|
@ -28,5 +27,4 @@ void __sig_generate(int, int);
|
||||||
void __sig_init(void);
|
void __sig_init(void);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_SIGNALS_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_SIGNALS_INTERNAL_H_ */
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#include "libc/calls/ucontext.h"
|
#include "libc/calls/ucontext.h"
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/intrin/asan.internal.h"
|
#include "libc/intrin/asan.internal.h"
|
||||||
#include "libc/intrin/bits.h"
|
|
||||||
#include "libc/intrin/describeflags.internal.h"
|
#include "libc/intrin/describeflags.internal.h"
|
||||||
#include "libc/intrin/dll.h"
|
#include "libc/intrin/dll.h"
|
||||||
#include "libc/intrin/strace.internal.h"
|
#include "libc/intrin/strace.internal.h"
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "libc/calls/struct/siginfo.h"
|
#include "libc/calls/struct/siginfo.h"
|
||||||
#include "libc/calls/struct/sigset.h"
|
#include "libc/calls/struct/sigset.h"
|
||||||
#include "libc/calls/struct/timespec.h"
|
#include "libc/calls/struct/timespec.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int sigwait(const sigset_t *, int *);
|
int sigwait(const sigset_t *, int *);
|
||||||
|
@ -11,5 +10,4 @@ int sigtimedwait(const sigset_t *, siginfo_t *, const struct timespec *);
|
||||||
int sigwaitinfo(const sigset_t *, siginfo_t *);
|
int sigwaitinfo(const sigset_t *, siginfo_t *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_SIGTIMEDWAIT_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_SIGTIMEDWAIT_H_ */
|
||||||
|
|
|
@ -3,12 +3,10 @@
|
||||||
#include "libc/calls/struct/siginfo-meta.internal.h"
|
#include "libc/calls/struct/siginfo-meta.internal.h"
|
||||||
#include "libc/calls/struct/sigset.h"
|
#include "libc/calls/struct/sigset.h"
|
||||||
#include "libc/calls/struct/timespec.h"
|
#include "libc/calls/struct/timespec.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int sys_sigtimedwait(const sigset_t *, union siginfo_meta *,
|
int sys_sigtimedwait(const sigset_t *, union siginfo_meta *,
|
||||||
const struct timespec *, size_t);
|
const struct timespec *, size_t);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_SIGTIMEDWAIT_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_SIGTIMEDWAIT_INTERNAL_H_ */
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include "libc/nt/struct/securityattributes.h"
|
#include "libc/nt/struct/securityattributes.h"
|
||||||
#include "libc/thread/thread.h"
|
#include "libc/thread/thread.h"
|
||||||
#include "libc/thread/tls.h"
|
#include "libc/thread/tls.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
extern int __vforked;
|
extern int __vforked;
|
||||||
|
@ -21,5 +20,4 @@ void __fds_unlock(void);
|
||||||
#define __vforked (__tls_enabled && (__get_tls()->tib_flags & TIB_FLAG_VFORKED))
|
#define __vforked (__tls_enabled && (__get_tls()->tib_flags & TIB_FLAG_VFORKED))
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_ */
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#define EXTRA_MAGIC 0x45585401
|
#define EXTRA_MAGIC 0x45585401
|
||||||
#define SVE_MAGIC 0x53564501
|
#define SVE_MAGIC 0x53564501
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct _aarch64_ctx {
|
struct _aarch64_ctx {
|
||||||
|
@ -40,5 +39,4 @@ struct sve_context {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_AARCH64_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_AARCH64_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define BPF_MAXINSNS 4096
|
#define BPF_MAXINSNS 4096
|
||||||
|
@ -1328,5 +1327,4 @@ struct btf_ptr {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_ */
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#define CPU_SETSIZE 1024
|
#define CPU_SETSIZE 1024
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
typedef struct cpu_set_t {
|
typedef struct cpu_set_t {
|
||||||
|
@ -55,5 +54,4 @@ int CPU_COUNT_S(size_t, const cpu_set_t *);
|
||||||
#define CPU_ISSET_S(i, size, set) _CPU_S(i, size, set, &)
|
#define CPU_ISSET_S(i, size, set) _CPU_S(i, size, set, &)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_CPUSET_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_CPUSET_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct dirent { /* linux getdents64 abi */
|
struct dirent { /* linux getdents64 abi */
|
||||||
|
@ -29,5 +28,4 @@ int scandir(const char *, struct dirent ***, int (*)(const struct dirent *),
|
||||||
int (*)(const struct dirent **, const struct dirent **));
|
int (*)(const struct dirent **, const struct dirent **));
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define kFdEmpty 0
|
#define kFdEmpty 0
|
||||||
|
@ -35,5 +34,4 @@ struct Fds {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define BPF_MAJOR_VERSION 1
|
#define BPF_MAJOR_VERSION 1
|
||||||
|
@ -55,5 +54,4 @@ struct sock_fprog {
|
||||||
#define BPF_LL_OFF SKF_LL_OFF
|
#define BPF_LL_OFF SKF_LL_OFF
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct flock { /* cosmopolitan abi */
|
struct flock { /* cosmopolitan abi */
|
||||||
|
@ -13,5 +12,4 @@ struct flock { /* cosmopolitan abi */
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_ */
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_INTERNAL_H_
|
||||||
#include "libc/calls/struct/flock.h"
|
#include "libc/calls/struct/flock.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
const char *DescribeFlock(char[300], int, const struct flock *);
|
const char *DescribeFlock(char[300], int, const struct flock *);
|
||||||
#define DescribeFlock(c, l) DescribeFlock(alloca(300), c, l)
|
#define DescribeFlock(c, l) DescribeFlock(alloca(300), c, l)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
struct FrameBufferColorMap {
|
struct FrameBufferColorMap {
|
||||||
uint32_t start;
|
uint32_t start;
|
||||||
|
@ -11,5 +10,4 @@ struct FrameBufferColorMap {
|
||||||
uint16_t *transp;
|
uint16_t *transp;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
struct FrameBufferFixedScreenInfo {
|
struct FrameBufferFixedScreenInfo {
|
||||||
char id[16];
|
char id[16];
|
||||||
|
@ -20,5 +19,4 @@ struct FrameBufferFixedScreenInfo {
|
||||||
uint16_t reserved[2];
|
uint16_t reserved[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
|
|
||||||
struct FrameBufferBitField {
|
struct FrameBufferBitField {
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
|
@ -40,5 +39,4 @@ struct FrameBufferVirtualScreenInfo {
|
||||||
uint32_t reserved[4];
|
uint32_t reserved[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
typedef struct fsid_t {
|
typedef struct fsid_t {
|
||||||
|
@ -8,5 +7,4 @@ typedef struct fsid_t {
|
||||||
} fsid_t;
|
} fsid_t;
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct iovec {
|
struct iovec {
|
||||||
|
@ -15,5 +14,4 @@ ssize_t vmsplice(int, const struct iovec *, int64_t, uint32_t);
|
||||||
ssize_t writev(int, const struct iovec *, int);
|
ssize_t writev(int, const struct iovec *, int);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_ */
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "libc/calls/struct/fd.internal.h"
|
#include "libc/calls/struct/fd.internal.h"
|
||||||
#include "libc/calls/struct/iovec.h"
|
#include "libc/calls/struct/iovec.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
ssize_t __robust_writev(int, struct iovec *, int);
|
ssize_t __robust_writev(int, struct iovec *, int);
|
||||||
|
@ -28,5 +27,4 @@ const char *DescribeIovec(char[300], ssize_t, const struct iovec *, int);
|
||||||
#define DescribeIovec(x, y, z) DescribeIovec(alloca(300), x, y, z)
|
#define DescribeIovec(x, y, z) DescribeIovec(alloca(300), x, y, z)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_
|
||||||
#include "libc/calls/struct/timeval.h"
|
#include "libc/calls/struct/timeval.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct itimerval {
|
struct itimerval {
|
||||||
|
@ -13,5 +12,4 @@ int getitimer(int, struct itimerval *);
|
||||||
int setitimer(int, const struct itimerval *, struct itimerval *);
|
int setitimer(int, const struct itimerval *, struct itimerval *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_ */
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_INTERNAL_H_
|
||||||
#include "libc/calls/struct/itimerval.h"
|
#include "libc/calls/struct/itimerval.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int sys_getitimer(int, struct itimerval *);
|
int sys_getitimer(int, struct itimerval *);
|
||||||
|
@ -13,5 +12,4 @@ const char *DescribeItimerval(char[90], int, const struct itimerval *);
|
||||||
#define DescribeItimerval(rc, ts) DescribeItimerval(alloca(90), rc, ts)
|
#define DescribeItimerval(rc, ts) DescribeItimerval(alloca(90), rc, ts)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_
|
||||||
#include "libc/calls/struct/sigaltstack.h"
|
#include "libc/calls/struct/sigaltstack.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct sigaltstack_bsd {
|
struct sigaltstack_bsd {
|
||||||
|
@ -11,5 +10,4 @@ struct sigaltstack_bsd {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_ */
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_
|
||||||
#include "libc/calls/struct/stat.h"
|
#include "libc/calls/struct/stat.h"
|
||||||
#include "libc/calls/struct/timespec.h"
|
#include "libc/calls/struct/timespec.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define METASTAT(x, field) \
|
#define METASTAT(x, field) \
|
||||||
|
@ -115,5 +114,4 @@ union metastat {
|
||||||
void __stat2cosmo(struct stat *restrict, const union metastat *);
|
void __stat2cosmo(struct stat *restrict, const union metastat *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_
|
||||||
#include "libc/calls/struct/termios.h"
|
#include "libc/calls/struct/termios.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct termios_xnu {
|
struct termios_xnu {
|
||||||
|
@ -31,5 +30,4 @@ union metatermios {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct rlimit {
|
struct rlimit {
|
||||||
|
@ -12,5 +11,4 @@ int getrlimit(int, struct rlimit *);
|
||||||
int setrlimit(int, const struct rlimit *);
|
int setrlimit(int, const struct rlimit *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_ */
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_INTERNAL_H_
|
||||||
#include "libc/calls/struct/rlimit.h"
|
#include "libc/calls/struct/rlimit.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int sys_getrlimit(int, struct rlimit *);
|
int sys_getrlimit(int, struct rlimit *);
|
||||||
|
@ -13,5 +12,4 @@ const char *DescribeRlimit(char[64], int, const struct rlimit *);
|
||||||
#define DescribeRlimit(rc, rl) DescribeRlimit(alloca(64), rc, rl)
|
#define DescribeRlimit(rc, rl) DescribeRlimit(alloca(64), rc, rl)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_
|
||||||
#include "libc/calls/struct/timeval.h"
|
#include "libc/calls/struct/timeval.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct rusage {
|
struct rusage {
|
||||||
|
@ -29,5 +28,4 @@ int wait4(int, int *, int, struct rusage *);
|
||||||
void rusage_add(struct rusage *, const struct rusage *);
|
void rusage_add(struct rusage *, const struct rusage *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_
|
||||||
#include "libc/calls/struct/rusage.h"
|
#include "libc/calls/struct/rusage.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
int __sys_getrusage(int, struct rusage *);
|
int __sys_getrusage(int, struct rusage *);
|
||||||
|
@ -12,5 +11,4 @@ void __rusage2linux(struct rusage *);
|
||||||
int sys_getrusage_nt(int, struct rusage *);
|
int sys_getrusage_nt(int, struct rusage *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_
|
||||||
#include "libc/calls/struct/timespec.h"
|
#include "libc/calls/struct/timespec.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct sched_param {
|
struct sched_param {
|
||||||
|
@ -17,5 +16,4 @@ int sched_setparam(int, const struct sched_param *);
|
||||||
int sched_setscheduler(int, int, const struct sched_param *);
|
int sched_setscheduler(int, int, const struct sched_param *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_ */
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_INTERNAL_H_
|
||||||
#include "libc/calls/struct/sched_param.h"
|
#include "libc/calls/struct/sched_param.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
const char *DescribeSchedParam(char[32], const struct sched_param *);
|
const char *DescribeSchedParam(char[32], const struct sched_param *);
|
||||||
#define DescribeSchedParam(x) DescribeSchedParam(alloca(32), x)
|
#define DescribeSchedParam(x) DescribeSchedParam(alloca(32), x)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_INTERNAL_H_ */
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#define SECCOMP_ADDFD_FLAG_SETFD (1UL << 0)
|
#define SECCOMP_ADDFD_FLAG_SETFD (1UL << 0)
|
||||||
#define SECCOMP_ADDFD_FLAG_SEND (1UL << 1)
|
#define SECCOMP_ADDFD_FLAG_SEND (1UL << 1)
|
||||||
|
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define SECCOMP_IOC_MAGIC '!'
|
#define SECCOMP_IOC_MAGIC '!'
|
||||||
|
@ -76,5 +75,4 @@ struct seccomp_notif_addfd {
|
||||||
};
|
};
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SECCOMP_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SECCOMP_H_ */
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_H_
|
||||||
#include "libc/calls/struct/siginfo.h"
|
#include "libc/calls/struct/siginfo.h"
|
||||||
#include "libc/calls/struct/sigset.h"
|
#include "libc/calls/struct/sigset.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
typedef void (*sighandler_t)(int);
|
typedef void (*sighandler_t)(int);
|
||||||
|
@ -22,5 +21,4 @@ sighandler_t signal(int, sighandler_t);
|
||||||
int sigaction(int, const struct sigaction *, struct sigaction *);
|
int sigaction(int, const struct sigaction *, struct sigaction *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_H_ */
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "libc/calls/struct/sigaction.h"
|
#include "libc/calls/struct/sigaction.h"
|
||||||
#include "libc/calls/struct/siginfo.h"
|
#include "libc/calls/struct/siginfo.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct sigaction_linux {
|
struct sigaction_linux {
|
||||||
|
@ -73,5 +72,4 @@ const char *DescribeSigaction(char[256], int, const struct sigaction *);
|
||||||
void _init_onntconsoleevent(void);
|
void _init_onntconsoleevent(void);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_INTERNAL_H_ */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
struct sigaltstack {
|
struct sigaltstack {
|
||||||
|
@ -14,5 +13,4 @@ typedef struct sigaltstack stack_t;
|
||||||
int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
|
int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_ */
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_INTERNAL_H_
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_INTERNAL_H_
|
||||||
#include "libc/calls/struct/sigaltstack.h"
|
#include "libc/calls/struct/sigaltstack.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
const char *DescribeSigaltstk(char[128], int, const struct sigaltstack *);
|
const char *DescribeSigaltstk(char[128], int, const struct sigaltstack *);
|
||||||
#define DescribeSigaltstk(rc, ss) DescribeSigaltstk(alloca(128), rc, ss)
|
#define DescribeSigaltstk(rc, ss) DescribeSigaltstk(alloca(128), rc, ss)
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
||||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_INTERNAL_H_ */
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_INTERNAL_H_ */
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue