cosmopolitan/test/libc/str
Justine Tunney db0d8dd806 Support Linux binfmt_misc and APE loading on Apple
The "no modify self" variant of Actually Portable Executable is now
supported on all platforms. If you use `$(APE_NO_MODIFY_SELF)` then
ld.bfd will embed a 4096 byte ELF binary and a 4096 byte Macho file
which are installed on the fly to ${TMPDIR:-/tmp}, which enables us
launch the executable, without needing to copy the whole executable

To prevent it from copying a tiny executable to your temp directory
you need to install the `ape` command (renamed from ape-loader), to
a system path. For example:

    # FreeBSD / NetBSD / OpenBSD
    make -j8 o//ape/ape
    cp o//ape/ape /usr/bin/ape

    # Mac OS
    # make -j8 o//ape/ape.macho
    curl https://justine.lol/ape.macho >/usr/bin/ape
    chmod +x /usr/bin/ape

On Linux you can get even more performance with the new binfmt_misc
support which makes launching non-modifying APE binaries as fast as
launching ELF executables. Running the following command:

    # Linux
    ape/apeinstall.sh

Will copy APE loader to /usr/bin/ape and register with binfmt_misc
Lastly, this change also fixes a really interesting race condition
with OpenBSD thread joining.
2022-05-21 09:28:25 -07:00
..
a64l_test.c Implement better hypot function 2021-02-21 11:06:18 -08:00
blake2_test.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
blake2b256_tests.txt Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
bsr_test.c Change license 2020-12-27 17:18:44 -08:00
bzero_test.c Undiamond Python headers 2021-08-12 14:07:40 -07:00
classifypath_test.c Add NET_HTTP to the amalgamation 2022-05-16 14:47:49 -07:00
crc32c_test.c Change noinline to dontinline () 2021-11-12 15:12:18 -08:00
crc32z_test.c Make numerous improvements 2021-09-28 01:52:34 -07:00
getutf16_test.c Change license 2020-12-27 17:18:44 -08:00
highwayhash64_test.c Make numerous improvements 2021-09-28 01:52:34 -07:00
longsort_test.c Improve memory safety 2021-10-13 17:27:13 -07:00
memcasecmp_test.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
memccpy_test.c Fix Clang support 2021-02-06 00:29:09 -08:00
memcpy_test.c Make numerous improvements 2021-09-28 01:52:34 -07:00
memfrob_test.c Change license 2020-12-27 17:18:44 -08:00
memmem_test.c Mold the redbean binary to minimize page faults 2021-05-03 12:14:13 -07:00
memmove_test.c Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
pututf16_test.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
qsort_test.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
regex_test.c Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
sigset_test.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
str_test.c Flatten InfoZIP directory and fix build issues 2022-04-20 22:40:33 -07:00
strcasecmp_test.c Get more Python tests passing () 2021-08-16 15:26:31 -07:00
strcat_test.c Get more Python tests passing () 2021-08-16 15:26:31 -07:00
strchr_test.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
strclen_test.c Improve Python and Linenoise 2021-09-11 22:30:37 -07:00
strcmp_test.c Change noinline to dontinline () 2021-11-12 15:12:18 -08:00
strcpy_test.c Change license 2020-12-27 17:18:44 -08:00
strlcpy_test.c Fix strtol 2020-12-29 22:40:52 -08:00
strlen_test.c Add MODE=optlinux build mode () 2021-10-14 19:36:49 -07:00
strpbrk_test.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
strrchr_test.c Improve backwards compatibility with GNU Make 2021-05-02 07:48:59 -07:00
strsignal_test.c Add syscalls to Blinkenlights and fix bugs 2022-05-13 13:31:21 -07:00
strstr_test.c Mold the redbean binary to minimize page faults 2021-05-03 12:14:13 -07:00
strtok_r_test.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
strtolower_test.c Change license 2020-12-27 17:18:44 -08:00
test.mk Support Linux binfmt_misc and APE loading on Apple 2022-05-21 09:28:25 -07:00
towupper_test.c Improve Python and Linenoise 2021-09-11 22:30:37 -07:00
tpenc_test.c Implement more security stuff 2021-02-02 20:21:06 -08:00
tprecode8to16_test.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
tprecode16to8_test.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
undeflate_test.c Make some systemic improvements 2022-05-18 16:52:36 -07:00
wcsrchr_test.c Get more Python tests passing () 2021-08-16 15:26:31 -07:00