mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 17:27:56 +00:00
- Remove PAGESIZE constant - Fix realloc() documentation - Fix ttyname_r() error reporting - Make forking more reliable on Windows - Make execvp() a few microseconds faster - Make system() a few microseconds faster - Tighten up the socket-related magic numbers - Loosen restrictions on mmap() offset alignment - Improve GetProgramExecutableName() with getenv("_") - Use mkstemp() as basis for mktemp(), tmpfile(), tmpfd() - Fix flakes in pthread_cancel_test, unix_test, fork_test - Fix recently introduced futex stack overflow regression - Let sockets be passed as stdio to subprocesses on Windows - Improve security of bind() on Windows w/ SO_EXCLUSIVEADDRUSE
68 lines
1.7 KiB
C
68 lines
1.7 KiB
C
#ifndef _COSMO_H
|
|
#define _COSMO_H
|
|
|
|
#ifdef COSMO
|
|
#define COSMO_ALREADY_DEFINED
|
|
#else
|
|
#define COSMO
|
|
#endif
|
|
|
|
/**
|
|
* @fileoverview Curated Cosmopolitan non-POSIX C Libraries
|
|
*
|
|
* Users of the `cosmocc` toolchain can say, for example:
|
|
*
|
|
* #include <cosmo.h>
|
|
*
|
|
* main() {
|
|
* ShowCrashReports();
|
|
* kprintf("hello world\n");
|
|
* }
|
|
*
|
|
* Which will define the best stuff from Cosmopolitan Libc, which
|
|
* includes core runtime services, third party libraries we've curated,
|
|
* as well as internal libraries we made that are good enough to share.
|
|
*
|
|
* @see tool/script/cosmocc
|
|
*/
|
|
|
|
#include "libc/calls/calls.h"
|
|
#include "libc/calls/struct/timespec.h"
|
|
#include "libc/calls/struct/timeval.h"
|
|
#include "libc/cosmo.h"
|
|
#include "libc/dce.h"
|
|
#include "libc/elf/elf.h"
|
|
#include "libc/fmt/itoa.h"
|
|
#include "libc/fmt/leb128.h"
|
|
#include "libc/intrin/bsf.h"
|
|
#include "libc/intrin/bsr.h"
|
|
#include "libc/intrin/dll.h"
|
|
#include "libc/intrin/kprintf.h"
|
|
#include "libc/intrin/likely.h"
|
|
#include "libc/intrin/weaken.h"
|
|
#include "libc/mem/critbit0.h"
|
|
#include "libc/mem/gc.h"
|
|
#include "libc/mem/hook.internal.h"
|
|
#include "libc/nexgen32e/rdtsc.h"
|
|
#include "libc/nexgen32e/stackframe.h"
|
|
#include "libc/nexgen32e/x86feature.h"
|
|
#include "libc/runtime/runtime.h"
|
|
#include "libc/runtime/stack.h"
|
|
#include "libc/runtime/symbols.internal.h"
|
|
#include "libc/stdio/append.h"
|
|
#include "libc/stdio/rand.h"
|
|
#include "libc/str/blake2.h"
|
|
#include "libc/str/highwayhash64.h"
|
|
#include "libc/str/slice.h"
|
|
#include "libc/str/thompike.h"
|
|
#include "libc/str/unicode.h"
|
|
#include "libc/str/utf16.h"
|
|
#include "libc/sysv/errfuns.h"
|
|
|
|
#ifdef COSMO_ALREADY_DEFINED
|
|
#undef COSMO_ALREADY_DEFINED
|
|
#else
|
|
#undef COSMO
|
|
#endif
|
|
|
|
#endif /* _COSMO_H */
|