mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
23e235b7a5
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.
97 lines
2.9 KiB
C
97 lines
2.9 KiB
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_BAUD_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_BAUD_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const uint32_t B0;
|
|
extern const uint32_t B50;
|
|
extern const uint32_t B75;
|
|
extern const uint32_t B110;
|
|
extern const uint32_t B134;
|
|
extern const uint32_t B150;
|
|
extern const uint32_t B200;
|
|
extern const uint32_t B300;
|
|
extern const uint32_t B600;
|
|
extern const uint32_t B1200;
|
|
extern const uint32_t B1800;
|
|
extern const uint32_t B2400;
|
|
extern const uint32_t B4800;
|
|
extern const uint32_t B9600;
|
|
extern const uint32_t B19200;
|
|
extern const uint32_t B38400;
|
|
extern const uint32_t B57600;
|
|
extern const uint32_t B115200;
|
|
extern const uint32_t B230400;
|
|
extern const uint32_t B500000;
|
|
extern const uint32_t B576000;
|
|
extern const uint32_t B1000000;
|
|
extern const uint32_t B1152000;
|
|
extern const uint32_t B1500000;
|
|
extern const uint32_t B2000000;
|
|
extern const uint32_t B2500000;
|
|
extern const uint32_t B3000000;
|
|
extern const uint32_t B3500000;
|
|
extern const uint32_t B4000000;
|
|
|
|
#define B0 0
|
|
#define B50 B50
|
|
#define B75 B75
|
|
#define B110 B110
|
|
#define B134 B134
|
|
#define B150 B150
|
|
#define B200 B200
|
|
#define B300 B300
|
|
#define B600 B600
|
|
#define B1200 B1200
|
|
#define B1800 B1800
|
|
#define B2400 B2400
|
|
#define B4800 B4800
|
|
#define B9600 B9600
|
|
#define B19200 B19200
|
|
#define B38400 B38400
|
|
#define B57600 B57600
|
|
#define B115200 B115200
|
|
#define B230400 B230400
|
|
#define B500000 B500000
|
|
#define B576000 B576000
|
|
#define B1000000 B1000000
|
|
#define B1152000 B1152000
|
|
#define B1500000 B1500000
|
|
#define B2000000 B2000000
|
|
#define B2500000 B2500000
|
|
#define B3000000 B3000000
|
|
#define B3500000 B3500000
|
|
#define B4000000 B4000000
|
|
|
|
#define __tmpcosmo_B50 -953383397
|
|
#define __tmpcosmo_B75 1130536802
|
|
#define __tmpcosmo_B110 -659509311
|
|
#define __tmpcosmo_B134 -131437328
|
|
#define __tmpcosmo_B150 -1673428193
|
|
#define __tmpcosmo_B200 2138567959
|
|
#define __tmpcosmo_B300 -1445271060
|
|
#define __tmpcosmo_B600 1252327384
|
|
#define __tmpcosmo_B1200 -389937088
|
|
#define __tmpcosmo_B1800 773974105
|
|
#define __tmpcosmo_B2400 -1936595377
|
|
#define __tmpcosmo_B4800 -1608072774
|
|
#define __tmpcosmo_B9600 -1161161922
|
|
#define __tmpcosmo_B19200 91389144
|
|
#define __tmpcosmo_B38400 239735293
|
|
#define __tmpcosmo_B57600 -1507679301
|
|
#define __tmpcosmo_B115200 217987560
|
|
#define __tmpcosmo_B230400 -1641848795
|
|
#define __tmpcosmo_B500000 1083827308
|
|
#define __tmpcosmo_B576000 1010987036
|
|
#define __tmpcosmo_B1000000 -1265517687
|
|
#define __tmpcosmo_B1152000 1805492829
|
|
#define __tmpcosmo_B1500000 1858564109
|
|
#define __tmpcosmo_B2000000 -597557560
|
|
#define __tmpcosmo_B2500000 1415439593
|
|
#define __tmpcosmo_B3000000 907032447
|
|
#define __tmpcosmo_B3500000 -610258643
|
|
#define __tmpcosmo_B4000000 -1412738484
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_BAUD_H_ */
|