mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-19 09:00:31 +00:00
Fix bugs in cosmocc toolchain
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from https://github.com/ahgamut/musl-cross-make/ which fixes the issues we were having with our C language extension for symbolic constants. This change also performs some code cleanup and bug fixes to getaddrinfo(). It's now possible to compile projects like ncurses, readline and python without needing to patch anything upstream, except maybe a line or two. Pretty soon it should be possible to build a Linux distro on Cosmo.
This commit is contained in:
parent
22f81a8d50
commit
23e235b7a5
272 changed files with 3491 additions and 4350 deletions
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_MAP_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_MAP_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -37,25 +36,21 @@ COSMOPOLITAN_C_END_
|
|||
#define MAP_TYPE 15
|
||||
#define MAP_FIXED 16
|
||||
|
||||
#define MAP_32BIT SYMBOLIC(MAP_32BIT)
|
||||
#define MAP_ANONYMOUS SYMBOLIC(MAP_ANONYMOUS)
|
||||
#define MAP_CONCEAL SYMBOLIC(MAP_CONCEAL)
|
||||
#define MAP_DENYWRITE SYMBOLIC(MAP_DENYWRITE)
|
||||
#define MAP_EXECUTABLE SYMBOLIC(MAP_EXECUTABLE)
|
||||
#define MAP_FIXED_NOREPLACE SYMBOLIC(MAP_FIXED_NOREPLACE)
|
||||
#define MAP_HASSEMAPHORE SYMBOLIC(MAP_HASSEMAPHORE)
|
||||
#define MAP_HUGETLB SYMBOLIC(MAP_HUGETLB)
|
||||
#define MAP_HUGE_MASK SYMBOLIC(MAP_HUGE_MASK)
|
||||
#define MAP_HUGE_SHIFT SYMBOLIC(MAP_HUGE_SHIFT)
|
||||
#define MAP_INHERIT SYMBOLIC(MAP_INHERIT)
|
||||
#define MAP_LOCKED SYMBOLIC(MAP_LOCKED)
|
||||
#define MAP_NONBLOCK SYMBOLIC(MAP_NONBLOCK)
|
||||
#define MAP_NORESERVE SYMBOLIC(MAP_NORESERVE)
|
||||
#define MAP_NOSYNC SYMBOLIC(MAP_NOSYNC)
|
||||
#define MAP_POPULATE SYMBOLIC(MAP_POPULATE)
|
||||
#define MAP_SHARED_VALIDATE SYMBOLIC(MAP_SHARED_VALIDATE)
|
||||
#define MAP_ANONYMOUS MAP_ANONYMOUS
|
||||
#define MAP_CONCEAL MAP_CONCEAL
|
||||
#define MAP_EXECUTABLE MAP_EXECUTABLE
|
||||
#define MAP_FIXED_NOREPLACE MAP_FIXED_NOREPLACE
|
||||
#define MAP_HASSEMAPHORE MAP_HASSEMAPHORE
|
||||
#define MAP_POPULATE MAP_POPULATE
|
||||
|
||||
#define MAP_ANON MAP_ANONYMOUS
|
||||
#define MAP_NOCORE MAP_CONCEAL
|
||||
|
||||
#define __tmpcosmo_MAP_ANONYMOUS 582365471
|
||||
#define __tmpcosmo_MAP_CONCEAL -155176713
|
||||
#define __tmpcosmo_MAP_EXECUTABLE 140777257
|
||||
#define __tmpcosmo_MAP_FIXED_NOREPLACE -1715515271
|
||||
#define __tmpcosmo_MAP_HASSEMAPHORE 674508674
|
||||
#define __tmpcosmo_MAP_POPULATE -2076654178
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MAP_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue