mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 05:59:10 +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,34 +1,44 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int RB_AUTOBOOT;
|
||||
extern const int RB_POWER_OFF;
|
||||
extern const int RB_POWERDOWN;
|
||||
extern const int RB_POWEROFF;
|
||||
extern const int RB_HALT_SYSTEM;
|
||||
extern const int RB_HALT;
|
||||
extern const int RB_SW_SUSPEND;
|
||||
extern const int RB_KEXEC;
|
||||
extern const int RB_ENABLE_CAD;
|
||||
extern const int RB_DISABLE_CAD;
|
||||
extern const int RB_NOSYNC;
|
||||
extern const unsigned RB_AUTOBOOT;
|
||||
extern const unsigned RB_POWER_OFF;
|
||||
extern const unsigned RB_POWERDOWN;
|
||||
extern const unsigned RB_POWEROFF;
|
||||
extern const unsigned RB_HALT_SYSTEM;
|
||||
extern const unsigned RB_HALT;
|
||||
extern const unsigned RB_SW_SUSPEND;
|
||||
extern const unsigned RB_KEXEC;
|
||||
extern const unsigned RB_ENABLE_CAD;
|
||||
extern const unsigned RB_DISABLE_CAD;
|
||||
extern const unsigned RB_NOSYNC;
|
||||
|
||||
#define RB_AUTOBOOT RB_AUTOBOOT
|
||||
#define RB_POWER_OFF RB_POWER_OFF
|
||||
#define RB_POWERDOWN RB_POWERDOWN
|
||||
#define RB_POWEROFF RB_POWEROFF
|
||||
#define RB_HALT_SYSTEM RB_HALT_SYSTEM
|
||||
#define RB_HALT RB_HALT
|
||||
#define RB_SW_SUSPEND RB_SW_SUSPEND
|
||||
#define RB_KEXEC RB_KEXEC
|
||||
#define RB_ENABLE_CAD RB_ENABLE_CAD
|
||||
#define RB_DISABLE_CAD RB_DISABLE_CAD
|
||||
#define RB_NOSYNC RB_NOSYNC
|
||||
|
||||
#define __tmpcosmo_RB_AUTOBOOT -326947148
|
||||
#define __tmpcosmo_RB_POWER_OFF 1173603271
|
||||
#define __tmpcosmo_RB_POWERDOWN -854151485
|
||||
#define __tmpcosmo_RB_POWEROFF 797029085
|
||||
#define __tmpcosmo_RB_HALT_SYSTEM -1641421503
|
||||
#define __tmpcosmo_RB_HALT -58428756
|
||||
#define __tmpcosmo_RB_SW_SUSPEND -1103940752
|
||||
#define __tmpcosmo_RB_KEXEC 1368646314
|
||||
#define __tmpcosmo_RB_ENABLE_CAD -749928233
|
||||
#define __tmpcosmo_RB_DISABLE_CAD -1190084958
|
||||
#define __tmpcosmo_RB_NOSYNC 1774609899
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define RB_AUTOBOOT SYMBOLIC(RB_AUTOBOOT)
|
||||
#define RB_POWER_OFF SYMBOLIC(RB_POWER_OFF)
|
||||
#define RB_POWERDOWN SYMBOLIC(RB_POWERDOWN)
|
||||
#define RB_POWEROFF SYMBOLIC(RB_POWEROFF)
|
||||
#define RB_HALT_SYSTEM SYMBOLIC(RB_HALT_SYSTEM)
|
||||
#define RB_HALT SYMBOLIC(RB_HALT)
|
||||
#define RB_SW_SUSPEND SYMBOLIC(RB_SW_SUSPEND)
|
||||
#define RB_KEXEC SYMBOLIC(RB_KEXEC)
|
||||
#define RB_ENABLE_CAD SYMBOLIC(RB_ENABLE_CAD)
|
||||
#define RB_DISABLE_CAD SYMBOLIC(RB_DISABLE_CAD)
|
||||
#define RB_NOSYNC SYMBOLIC(RB_NOSYNC)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue