cosmopolitan/libc/sysv/consts/reboot.h
Justine Tunney 23e235b7a5
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.
2023-06-08 23:44:03 -07:00

44 lines
1.5 KiB
C

#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
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) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_ */