mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-22 18:40:29 +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,35 +1,46 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_ST_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_ST_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define ST_APPEND SYMBOLIC(ST_APPEND)
|
||||
#define ST_IMMUTABLE SYMBOLIC(ST_IMMUTABLE)
|
||||
#define ST_MANDLOCK SYMBOLIC(ST_MANDLOCK)
|
||||
#define ST_NOATIME SYMBOLIC(ST_NOATIME)
|
||||
#define ST_NODEV SYMBOLIC(ST_NODEV)
|
||||
#define ST_NODIRATIME SYMBOLIC(ST_NODIRATIME)
|
||||
#define ST_NOEXEC SYMBOLIC(ST_NOEXEC)
|
||||
#define ST_NOSUID SYMBOLIC(ST_NOSUID)
|
||||
#define ST_RDONLY SYMBOLIC(ST_RDONLY)
|
||||
#define ST_RELATIME SYMBOLIC(ST_RELATIME)
|
||||
#define ST_SYNCHRONOUS SYMBOLIC(ST_SYNCHRONOUS)
|
||||
#define ST_WRITE SYMBOLIC(ST_WRITE)
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const unsigned long ST_APPEND;
|
||||
extern const unsigned long ST_IMMUTABLE;
|
||||
extern const unsigned long ST_MANDLOCK;
|
||||
extern const unsigned long ST_NOATIME;
|
||||
extern const unsigned long ST_NODEV;
|
||||
extern const unsigned long ST_NODIRATIME;
|
||||
extern const unsigned long ST_NOEXEC;
|
||||
extern const unsigned long ST_NOSUID;
|
||||
extern const unsigned long ST_RDONLY;
|
||||
extern const unsigned long ST_RELATIME;
|
||||
extern const unsigned long ST_SYNCHRONOUS;
|
||||
extern const unsigned long ST_WRITE;
|
||||
extern const int ST_APPEND;
|
||||
extern const int ST_IMMUTABLE;
|
||||
extern const int ST_MANDLOCK;
|
||||
extern const int ST_NOATIME;
|
||||
extern const int ST_NODEV;
|
||||
extern const int ST_NODIRATIME;
|
||||
extern const int ST_NOEXEC;
|
||||
extern const int ST_NOSUID;
|
||||
extern const int ST_RDONLY;
|
||||
extern const int ST_RELATIME;
|
||||
extern const int ST_SYNCHRONOUS;
|
||||
extern const int ST_WRITE;
|
||||
|
||||
#define ST_APPEND ST_APPEND
|
||||
#define ST_IMMUTABLE ST_IMMUTABLE
|
||||
#define ST_MANDLOCK ST_MANDLOCK
|
||||
#define ST_NOATIME ST_NOATIME
|
||||
#define ST_NODEV ST_NODEV
|
||||
#define ST_NODIRATIME ST_NODIRATIME
|
||||
#define ST_NOEXEC ST_NOEXEC
|
||||
#define ST_NOSUID ST_NOSUID
|
||||
#define ST_RDONLY ST_RDONLY
|
||||
#define ST_RELATIME ST_RELATIME
|
||||
#define ST_SYNCHRONOUS ST_SYNCHRONOUS
|
||||
#define ST_WRITE ST_WRITE
|
||||
|
||||
#define __tmpcosmo_ST_APPEND -1388286836
|
||||
#define __tmpcosmo_ST_IMMUTABLE 1267544033
|
||||
#define __tmpcosmo_ST_MANDLOCK -2094813813
|
||||
#define __tmpcosmo_ST_NOATIME 771964228
|
||||
#define __tmpcosmo_ST_NODEV -836140326
|
||||
#define __tmpcosmo_ST_NODIRATIME 152697025
|
||||
#define __tmpcosmo_ST_NOEXEC 315123377
|
||||
#define __tmpcosmo_ST_NOSUID -1060040535
|
||||
#define __tmpcosmo_ST_RDONLY 237934379
|
||||
#define __tmpcosmo_ST_RELATIME -1170584536
|
||||
#define __tmpcosmo_ST_SYNCHRONOUS 1353832369
|
||||
#define __tmpcosmo_ST_WRITE -317138758
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue